Manage Flexible Discounts using APIs
NEW! AI Kit for 3YC Open Discounts
You can use the following APIs to get details of available flexible discounts and apply them while placing an order or creating or modifying a subscription:
- Get Flexible Discounts
- Get Flexible Discounts of a customer
- Create Order and Preview Order
- Get Order
- Get Order History of a customer
- Preview Renewal
- Preview Switch
- Apply flexible discounts when placing manual renewal orders
- Apply flexible discount in switch orders
- Create a subscription with flexible discount
- Get details of a specific subscription
- Get details of all subscriptions of a customer
- Update subscription with a flexible discount code
- Remove a flexible discount from a subscription
Get Flexible Discounts
Use the GET Flexible Discounts API to fetch flexible discounts that are applicable to a product:
Request
Sample Request URL: GET <ENV>/v3/flex-discounts?market-segment=COM&country=US
Query parameters
Note: Request query parameters such as Market segment and country are validated against the Partner contract data. You can also use other query parameters that are listed in the following table:
start-date=<today> to scope results to currently-live discounts only.Sample request URLs
- Sample request URL with all query parameters:
<ENV>/v3/flex-discounts?categories=STANDARD&market-segment=COM&country=US&offer-ids=65322535CA04A12,86322535CA04A12&flex-discount-code=BLACK_FRIDAY&include-eligible-reusable-discounts=true&start-date=2025-03-01&end-date=2025-03-31&limit=20&offset=0 - Sample request URL for Adobe Instant Deal Registration discovery:
<ENV>/v3/flex-discounts?categories=DEAL_REGISTRATION&market-segment=COM&country=US - Sample request URL where flexible discount ID is used:
<ENV>/v3/flex-discounts?country=US&market-segment=COM&flex-discount-id=55555555-1533-4564-ade1-cd6946a97f29 - Sample request URL when Get Flexible Discounts is for closed discount:
<ENV>/v3/flex-discounts?market-segment=COM&country=US&flex-discount-code=6JZ79GCABCWQYER6HFPJOD4E
Request Header
See Headers section.
Request Body
None.
Response
{
"limit": 20,
"offset": 0,
"count": 3,
"totalCount": 3,
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // INTRO - Fixed Price
"category": "INTRO",
"code": "INTRO-PHSP",
"name": "Intro Discount - Photoshop",
"description": "Intro Discount - Photoshop - 15.99",
"startDate": "2025-11-30T23:59:59Z",
"endDate": "2026-12-31T23:59:59Z",
"status": "ACTIVE",
"qualification": {
"baseOfferIds": [
"11083117CA01A12"
]
},
"outcomes": [
{
"type": "FIXED_PRICE",
"discountValues": [
{
"country": "US",
"currency": "USD",
"value": 15.99
}
]
}
]
},
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // STANDARD - Fixed Discount of REUSABLE status
"category": "STANDARD",
"code": "BLACK_FRIDAY",
"name": "BLACK_FRIDAY",
"description": "BLACK_FRIDAY - 10 USD off PHSP",
"startDate": "2025-11-01T23:59:59Z",
"endDate": "2025-12-31T23:59:59Z",
"status": "REUSABLE",
"discountLockEndDate": "2028-03-31T23:59:59Z",
"qualification": {
"baseOfferIds": [
"11083117CA01A12"
]
},
"outcomes": [
{
"type": "FIXED_DISCOUNT",
"discountValues": [
{
"country": "US",
"currency": "USD",
"value": 10
}
]
}
]
},
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // STANDARD - Percentage Discount
"category": "STANDARD",
"code": "NEW YEAR",
"name": "NEW YEAR",
"description": "NEW YEAR - 20% off on all Products",
"startDate": "2025-12-01T23:59:59Z",
"endDate": "2026-12-31T23:59:59Z",
"status": "ACTIVE",
"outcomes": [
{
"type": "PERCENTAGE_DISCOUNT",
"discountValues": [
{
"value": 20
}
]
}
]
}
],
"links": {
"self": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&include-eligbile-reusable-discounts=true&limit=20&offset=20",
"method": "GET",
"headers": []
},
// next link will be present only if the next resource is present
"next": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&include-eligbile-reusable-discounts=true&limit=20&offset=40",
"method": "GET",
"headers": []
},
// prev link will be present only if a previous resource is present
"prev": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&include-eligbile-reusable-discounts=true&limit=20&offset=0",
"method": "GET",
"headers": []
}
}
}
Response sample for a request that uses a closed discount code
When a closed discount code is included in the request, the following response structure is returned. The codeExpiryDate parameter indicates the date until which the closed discount remains valid.
Note: Certain parameters that apply to open discounts are not included in this response.
{
"limit": 20,
"offset": 0,
"count": 1,
"totalCount": 1,
"flexDiscounts": [
{
"code": "6JZ79FCABCWQYER6HFPJOD4E",
"codeExpiryDate": "2026-09-10T23:59:59Z",
"qualification": {
"baseOfferIds": [
"11074301CA01A12"
]
},
"outcomes": [
{
"type": "FIXED_PRICE",
"discountValues": [
{
"country": "US",
"currency": "USD",
"value": 365.0
}
]
}
]
}
],
"links": {
"self": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&flex-discount-code=6JZ79FCABCWQYER6HFPJOD4E&limit=20&offset=0",
"method": "GET",
"headers": []
}
}
}
Response parameters
flexDiscounts object
For proposed optional fields within qualification, see Evaluate qualification criteria. These additions are subject to rollout and do not change the existing fields listed below.
STANDARD, ON_DEMAND, INTRO, and DEAL_REGISTRATION. Adobe Instant Deal Registration entries have no partner-visible code or ID.DEAL_REGISTRATION.DEAL_REGISTRATION, because Adobe evaluates and applies Instant Deal Registration automatically.discountLockEndDate field in the response.ACTIVE or REUSABLE. Status of a DEAL_REGISTRATION entry: ACTIVE or EXPIRED. <br /> Note: Code-based flexible discounts with ACTIVE include both currently-running and future-dated discounts. The status field alone is not sufficient to determine whether a discount is live; compare startDate with the current date.Adobe Instant Deal Registration response example
{
"flexDiscounts": [
{
"category": "DEAL_REGISTRATION",
"name": "Acrobat Pro Q1 Instant Deal Registration",
"description": "10% Instant Deal Registration credit for qualifying partners on Acrobat Pro orders",
"startDate": "2026-01-01T00:00:00Z",
"endDate": "2026-04-10T23:59:59Z",
"status": "ACTIVE",
"qualification": {
"baseOfferIds": ["65304578CA01A12"]
},
"outcomes": [
{
"type": "PERCENTAGE_DISCOUNT",
"discountValues": [
{
"value": 10
}
]
}
]
}
]
}
For Adobe Instant Deal Registration entries in DEAL_REGISTRATION, the API returns the same fields used by the Recommendations discovery response: category, name, description, startDate, endDate, status, qualification.baseOfferIds, and outcomes. An entry has no partner-visible code or id; those fields apply only to code-based flexible discount categories. Its status is ACTIVE or EXPIRED. DEAL_REGISTRATION entries are not included in the default category set.
For the end-to-end capability and order response behavior, see Adobe Instant Deal Registration.
Sample Response (Failure)
On failure, the response includes the appropriate HTTP status code based on the reason or type of failure. For example, if the API key is invalid, the response has HTTP 403 (Forbidden):
{ "code": "4115", "message": "Api Key is invalid or missing" }
Evaluate qualification criteria
The following fields in the qualification object are available for GET /v3/flex-discounts, GET /v3/customers/{customer-id}/flex-discounts, and on-demand discounts in the Flexible Discounts flow. They also apply to the partner Sandbox.
Discovery does not guarantee eligibility
Adobe evaluates all applicable qualification rules when the order is submitted.
Qualification fields
baseOfferIdsretainContractQuantityAtRenewaltrue, the renewal quantity must be at least the total currentQuantity across the customer's subscriptions.orderTypesNEW, RENEWAL, or SWITCH. Seat additions use NEW.requirementSetsMatchrequirementSetsrequirementSets and requirementSetsMatch are omitted.requirementSets[].conditionsMatchrequirementSets[].conditionsCheck all applicable discount-wide fields and match at least one requirement set. All conditions within that set must match, while only one of multiple values in a condition must match. Do not combine conditions across requirement sets.
All qualification fields are optional. Missing fields do not imply false, zero, an empty list, or the absence of other qualification criteria.
Each condition includes a type, an entities array, and type-specific value fields. Entities can be customer, subscription, order, or partner. Conditions that compare two entities include both. Additional qualifiers are included where applicable, including benefitType, motionType, and offerType.
Condition types
These condition types are returned only when applicable and available.
typeentitiesCUSTOMER_STATUSES["customer"]values: NEW, EXISTING, or FORMEROWNED_OFFER_IDS["subscription"]offerIds: array of stringsbaseOfferIds identifies the target.NOT_OWNED_OFFER_IDS["subscription"]offerIds: array of stringsRENEWAL_WINDOW["customer"]value: BooleanENROLLEE_STATUSES["customer"]benefitType: THREE_YEAR_COMMIT; values: NEW, EXISTING, or NOT_ENROLLEDMINIMUM_QUANTITIES["customer"]benefitType: THREE_YEAR_COMMIT; offerType: LICENSE or CONSUMABLES; quantity: integerMINIMUM_UPGRADE_PERCENTAGE["order", "subscription"]motionType: UPGRADE; offerType: LICENSE or CONSUMABLES; value: integer percentage, 1-100SWITCH orders.RETENTION_RATE["order", "subscription"]offerType: LICENSE or CONSUMABLES; value: integer percentage, 1-100PARTNER_USAGE_CAP["partner"]max: integerReconcile criteria with customer data
Use Get details of a customer's subscriptions, GET /v3/customers/{customer-id}/subscriptions, to evaluate customer status and product ownership. Inspect the items array, including each subscription's offerId and status. For quantity-based conditions, also check currentQuantity.
Evaluate CUSTOMER_STATUSES within the relevant product scope. A customer can be existing for one product without owning another, so evaluate OWNED_OFFER_IDS and NOT_OWNED_OFFER_IDS separately from CUSTOMER_STATUSES.
NEWtotalCount: 0 and items: [] indicates that no subscriptions were returned for the customer.EXISTINGstatus: "1000".FORMERStatus-derivation limitation:
The qualification criteria do not define the FORMER status. If status cannot be determined, rely on Adobe's qualification at order submission.
For three-year commitment conditions, use Get Customer Account to evaluate the THREE_YEAR_COMMIT benefit. Compare the minimum quantities for the same offerType and derive enrollee status from the commitment and request data. The API does not return enrolleeStatus.
NOT_ENROLLED indicates no applicable commitment, NEW the first commitment term, and EXISTING a recommitment.** These classifications do not replace other discount checks. See 3YC eligibility.
Example: renewal retention response
This 200 OK response shows a renewal discount for an existing customer who owns the listed offer and retains the current contract quantity.
Request: GET <ENV>/v3/flex-discounts?market-segment=COM&country=US&limit=20&offset=0
{
"limit": 20,
"offset": 0,
"count": 1,
"totalCount": 1,
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"category": "STANDARD",
"code": "RETENTION_ACROBAT_PRO_25",
"name": "Acrobat Pro Teams 25% Retention",
"description": "25% off Acrobat Pro for Teams at renewal for existing customers who meet the 90% retention requirement.",
"startDate": "2026-01-15T08:00:00Z",
"endDate": "2026-12-16T07:59:00Z",
"status": "ACTIVE",
"qualification": {
"baseOfferIds": ["65304470CA01A12"],
"orderTypes": ["RENEWAL"],
"requirementSetsMatch": "ANY",
"requirementSets": [
{
"conditionsMatch": "ALL",
"conditions": [
{ "entities": ["customer"], "type": "CUSTOMER_STATUSES", "values": ["EXISTING"] },
{ "entities": ["subscription"], "type": "OWNED_OFFER_IDS", "offerIds": ["65304470CA01A12"] },
{ "entities": ["order", "subscription"], "type": "RETENTION_RATE", "offerType": "LICENSE", "value": 90, "unit": "PERCENTAGE" }
]
}
]
},
"outcomes": [
{ "type": "PERCENTAGE_DISCOUNT", "discountValues": [{ "value": 25 }] }
]
}
],
"links": {
"self": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&limit=20&offset=0",
"method": "GET",
"headers": []
}
}
}
Example: three-year commitment
This example requires a new or renewal order for a new or existing three-year-commitment enrollee with at least 100 licenses.
How to interpret the following example: Offer 65304470CA01A12 is eligible for either a NEW or RENEWAL order. The offer has one requirement set, and both conditions in the set must be met. The customer must be enrolled in THREE_YEAR_COMMIT with either NEW or EXISTING enrollee status and have a minimum commitment of 100 LICENSE units. The enrollee-status values are alternatives, so only one must match. For example, a minimum commitment of 99 licenses does not satisfy the requirement set, even if the enrollee status matches. Enrollee status refers to the customer's status in the three-year commitment, not whether the customer is new to VIP Marketplace.
{
"limit": 20,
"offset": 0,
"count": 1,
"totalCount": 1,
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-aaaa11112222",
"category": "STANDARD",
"code": "3YC_GROWTH",
"name": "3YC Growth Offer",
"description": "10% off for new and existing 3YC customers with a minimum commitment of 100 licenses.",
"startDate": "2026-02-01T08:00:00Z",
"endDate": "2026-10-29T06:59:00Z",
"status": "ACTIVE",
"qualification": {
"baseOfferIds": ["65304470CA01A12"],
"orderTypes": ["NEW", "RENEWAL"],
"requirementSetsMatch": "ANY",
"requirementSets": [
{
"conditionsMatch": "ALL",
"conditions": [
{ "entities": ["customer"], "benefitType": "THREE_YEAR_COMMIT", "type": "ENROLLEE_STATUSES", "values": ["NEW", "EXISTING"] },
{ "entities": ["customer"], "benefitType": "THREE_YEAR_COMMIT", "type": "MINIMUM_QUANTITIES", "offerType": "LICENSE", "quantity": 100 }
]
}
]
},
"outcomes": [
{ "type": "PERCENTAGE_DISCOUNT", "discountValues": [{ "value": 10 }] }
]
}
],
"links": {
"self": {
"uri": "/v3/flex-discounts?market-segment=COM&country=US&limit=20&offset=0",
"method": "GET",
"headers": []
}
}
}
Example: alternative requirement sets
This renewal discount applies to either a new customer or an existing customer who owns the listed offer. The ownership requirement applies only to the existing customer.
How to interpret the following example: The order must be a RENEWAL for offer 65304470CA01A12. With requirementSetsMatch: ANY, either requirement set can match: NEW customer status alone, or EXISTING customer status with ownership of the offer. An existing customer without ownership does not match.
{
"qualification": {
"baseOfferIds": ["65304470CA01A12"],
"orderTypes": ["RENEWAL"],
"requirementSetsMatch": "ANY",
"requirementSets": [
{
"conditionsMatch": "ALL",
"conditions": [
{ "entities": ["customer"], "type": "CUSTOMER_STATUSES", "values": ["NEW"] }
]
},
{
"conditionsMatch": "ALL",
"conditions": [
{ "entities": ["customer"], "type": "CUSTOMER_STATUSES", "values": ["EXISTING"] },
{ "entities": ["subscription"], "type": "OWNED_OFFER_IDS", "offerIds": ["65304470CA01A12"] }
]
}
]
}
}
Example: mid-term upgrade
This example requires a SWITCH order to 65304471CA01A12. The customer must own 65304470CA01A12, not own the target offer, and upgrade at least 100% of the current source licenses.
For 50 current source licenses, at least 50 licenses must be upgraded.
{
"qualification": {
"baseOfferIds": ["65304471CA01A12"],
"orderTypes": ["SWITCH"],
"requirementSetsMatch": "ANY",
"requirementSets": [
{
"conditionsMatch": "ALL",
"conditions": [
{ "entities": ["subscription"], "type": "NOT_OWNED_OFFER_IDS", "offerIds": ["65304471CA01A12"] },
{ "entities": ["subscription"], "type": "OWNED_OFFER_IDS", "offerIds": ["65304470CA01A12"] },
{ "entities": ["order", "subscription"], "motionType": "UPGRADE", "type": "MINIMUM_UPGRADE_PERCENTAGE", "offerType": "LICENSE", "value": 100 }
]
}
]
}
}
Compatibility and failure handling
Handle missing or unknown qualification fields and conditions without treating them as proof of eligibility.
A successful response may contain incomplete qualification criteria without indicating that the criteria are incomplete. If the required data is unavailable and no cached offer is available, the request returns 503 Service Unavailable.
Get flexible discounts of a customer
Use the /v3/customers/<customer-id>/flex-discounts endpoint to get details of reusable flexible discounts used by the customer and that are in the ACTIVE or REUSABLE state.
/v3/customers/<customer-id>/flex-discountsNote: Parameters included in the response of this endpoint are the same as that of Get Flexible Discounts API. So, for the descriptions and other details, see Get Flexible Discounts API.
The proposed additional qualification criteria also apply to this customer-context response. No additional query parameter is required. Customer context and discount reusability do not guarantee qualification for a subsequent order.
Request URL: /v3/customers/<customer-id>/flex-discounts?limit=30
The only query parameters supported in this endpoint are limit and offset.
Request Header
See Headers section.
Response
{
"limit": 20,
"offset": 0,
"count": 3,
"totalCount": 3,
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // STANDARD - Fixed Discount of REUSABLE status
"category": "STANDARD",
"code": "BLACK_FRIDAY",
"name": "BLACK_FRIDAY",
"description": "BLACK_FRIDAY - 10 USD off PHSP",
"startDate": "2025-11-01T23:59:59Z",
"endDate": "2025-12-31T23:59:59Z",
"status": "REUSABLE",
"discountLockEndDate": "2028-03-31T23:59:59Z",
"qualification": {
"baseOfferIds": [
"11083117CA01A12"
]
},
"outcomes": [
{
"type": "FIXED_DISCOUNT",
"discountValues": [
{
"country": "US",
"currency": "USD",
"value": 10
}
]
}
]
},
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // INTRO - Fixed Price
"category": "INTRO",
"code": "INTRO-PHSP",
"name": "Intro Discount - Photoshop",
"description": "Intro Discount - Photoshop - 15.99",
"startDate": "2025-11-30T23:59:59Z",
"endDate": "2026-12-31T23:59:59Z",
"discountLockEndDate": "2028-03-31T23:59:59Z",
"status": "ACTIVE",
"qualification": {
"baseOfferIds": [
"11083117CA01A12"
]
},
"outcomes": [
{
"type": "FIXED_PRICE",
"discountValues": [
{
"country": "US",
"currency": "USD",
"value": 15.99
}
]
}
]
},
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0", // STANDARD - Percentage Discount
"category": "STANDARD",
"code": "NEW YEAR",
"name": "NEW YEAR",
"description": "NEW YEAR - 20% off on all Products",
"startDate": "2025-12-01T23:59:59Z",
"endDate": "2026-12-31T23:59:59Z",
"discountLockEndDate": "2027-03-01T23:59:59Z",
"status": "ACTIVE",
"outcomes": [
{
"type": "PERCENTAGE_DISCOUNT",
"discountValues": [
{
"value": 20
}
]
}
]
}
],
"links": {
"self": {
"uri": "/v3/customers/<customer-id>/flex-discounts?limit=20&offset=20",
"method": "GET",
"headers": []
},
// next link will be present only if the next resource is present
"next": {
"uri": "/v3/customers/<customer-id>/flex-discounts?limit=20&offset=40",
"method": "GET",
"headers": []
},
// prev link will be present only if a previous resource is present
"prev": {
"uri": "/v3/customers/<customer-id>/flex-discounts?limit=20&offset=0",
"method": "GET",
"headers": []
}
}
}
Create Order and Preview Order
Pass the flexDiscountCodes at the lineItems level in the Create Order and Preview Order requests.
/v3/customers/<customer-id>/ordersNotes:
- Order creation will fail even if any line item contains an invalid flexible discount code.
- Currently, only one flexible discount code is allowed per line item in Order Preview.
- Adobe Instant Deal Registration does not use
flexDiscountCodes. Adobe resolves and applies eligible credits automatically, independently of whether a flexible discount code is supplied.
Request Header
See Headers section.
Request Body
The following sample request shows how to apply a flexible discount code to a Create Order request to get a discounted price:
{
"orderType": "NEW", // NEW or PREVIEW
"externalReferenceId": "759",
"currencyCode": "USD",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"currencyCode": "USD",
"flexDiscountCodes": ["SUMMER_SALE_123"]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"currencyCode": "USD",
"flexDiscountCodes": ["WINTER_SALE_123"]
}
]
}
The flexDiscountCodes parameter in the above request indicates the flexible discount codes applied to the Order.
Response
{
"referenceOrderId": "",
"orderType": "NEW",
"externalReferenceId": "759",
"customerId": "9876543210",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2019-05-02T22:49:54Z",
"status": "1002",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"status": "1002",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "SUMMER_SALE_123",
"result": "SUCCESS"
}
]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"status": "1002",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55522355-313b-476c-9d0b-7a710f4h83s4",
"code": "WINTER_SALE_123",
"result": "SUCCESS"
}
]
}
],
"links": { // As existing response fields }
}
The following table provides the flexible discount details included in the response:
HTTP Status Codes
Same as the standard Create Order request.
Get Order
The GET Order API response also includes the flexible discount applied to both NEW and SWITCH orders. isDealRegistered is included only when Instant Deal Registration was auto-injected for a line item. When fetch-price=true, qualifying line items also include the deal registration amounts and the pricing summary includes the aggregate amount.
/v3/customers/<customer-id>/orders/<order-id>Request Header
See Headers section.
Request Body
None.
Response
{
"referenceOrderId": "",
"orderType": "NEW",
"externalReferenceId": "759",
"customerId": "9876543210",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2019-05-02T22:49:54Z",
"status": "1000",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"status": "1000",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "SUMMER_SALE_123",
"result": "SUCCESS"
}
]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"status": "1000",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55522355-313b-476c-9d0b-7a710f4h83s4",
"code": "WINTER_SALE_123",
"result": "SUCCESS"
}
]
}
],
"links": { // As existing response fields }
},
HTTP Status Codes
The same as the standard Get Order API.
Get Order History of a Customer
The Get Order History API retrieves past orders for a customer, including any applied flexible discounts and the line-level Adobe Instant Deal Registration result. When fetch-price=true, qualifying line items also include deal registration amounts and the pricing summary includes the aggregate amount. This API fetches details of both NEW and SWITCH orders.
/v3/customers/<customer-id>/ordersRequest Header
See Headers section.
Request Body
None.
Response
{
"totalCount": 3,
"offset": 0,
"limit": 25,
"count": 3,
"items": [
{
"referenceOrderId": "",
"orderType": "NEW",
"externalReferenceId": "ext-ref-new-001",
"customerId": "1005944528",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2025-01-15T10:30:00Z",
"status": "1000",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 10,
"status": "1000",
"subscriptionId": "a1b2c3d4e5f6789012345678abcdefNA",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "11111111-aaaa-bbbb-cccc-111111111111",
"code": "SUMMER_SALE_123",
"result": "SUCCESS"
}
]
},
{
"extLineItemNumber": 2,
"offerId": "80004568CA01A12",
"quantity": 5,
"status": "1000",
"subscriptionId": "b2c3d4e5f6789012345678abcdef01NA",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "33333333-aaaa-bbbb-cccc-333333333333",
"code": "LOYALTY_DISCOUNT_456",
"result": "SUCCESS"
}
]
}
]
},
{
"referenceOrderId": "",
"orderType": "SWITCH",
"externalReferenceId": "a96ee8fe-c440-4d1c-ae5b-a90e1825aef",
"customerId": "1005944528",
"orderId": "5120008002",
"currencyCode": "USD",
"creationDate": "2025-03-17T11:42:29Z",
"status": "1000",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "65304479CA02A12",
"quantity": 15,
"status": "1000",
"subscriptionId": "c3d4e5f6789012345678abcdef0123NA",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "DISCOUNT_123",
"result": "SUCCESS"
}
]
}
],
"cancellingItems": [
{
"offerId": "65322651CA02A12",
"extLineItemNumber": 1,
"quantity": 15,
"subscriptionId": "abfb5a4cb14561879af7204c7daee1NA",
"referenceLineItemNumber": 1
}
]
},
{
"referenceOrderId": "5120008001",
"orderType": "RENEWAL",
"externalReferenceId": "ext-ref-renewal-003",
"customerId": "1005944528",
"orderId": "5120008003",
"currencyCode": "USD",
"creationDate": "2026-01-15T08:00:00Z",
"status": "1000",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567EA01A12",
"quantity": 10,
"status": "1000",
"subscriptionId": "a1b2c3d4e5f6789012345678abcdefNA",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "66666666-aaaa-bbbb-cccc-666666666666",
"code": "RENEWAL_DISC_789",
"result": "SUCCESS"
}
]
}
]
}
]
}
HTTP Status Codes
The same as the standard Get Order History API.
Preview renewal with flexible discount code
Eligibility for flexible discounts is validated in preview renewal for both auto-renewal and manual renewals.
Adobe Instant Deal Registration is evaluated independently and automatically; partners do not include a code or ID in either preview request. isDealRegistered is included only when Instant Deal Registration was auto-injected for a line item: if absent, Instant Deal Registration was not injected or evaluated; false means qualification failed; and true means qualification passed. With fetch-price=true, qualifying line items also include deal registration amounts and the pricing summary includes the aggregate amount.
Preview automated renewal
The POST /v3/customers/<customer-id>/orders API with the orderType as PREVIEW_RENEWAL is used in the request to verify the eligibility of the order, including validation of customer eligibility for the flexible discount code that is currently applied on the subscription.
Request
{
"orderType": "PREVIEW_RENEWAL"
}
Response
{
"referenceOrderId": "",
"orderType": "PREVIEW_RENEWAL",
"externalReferenceId": "759",
"customerId": "9876543210",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2019-05-02T22:49:54Z",
"status": "",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"status": "1000",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "ABCD-XV54-HG34-78YT",
"result": "SUCCESS"
}
]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"status": "1000",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55522355-313b-476c-9d0b-7a710f4h83s4",
"code": "ABCD-XV54-YG34-98YT",
"result": "FAILURE"
}
]
}
],
"links": { // As existing response fields }
}
Note: If a subscription previously opted for a flexible discount or benefited from a reusable discount, but no longer meets the qualification criteria to receive the discount in the AutoRenewal, then the PreviewRenewal for AutoRenewal will show FAILURE for that flexible discount on the affected line item, as shown in the above example.
Manual Preview Renewal Order with flexible discount code
Use the POST /v3/customers/<customer-id>/orders API with the orderType as PREVIEW_RENEWAL to manually preview the renewal order, including the eligibility of the customer for the flexible discount code included in the request.
Request
{
"orderType": "PREVIEW_RENEWAL",
"externalReferenceId": "759",
"currencyCode": "USD",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"currencyCode": "USD",
"subscriptionId": " e0b170437c4e96ac5428364f674dffNA",
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"currencyCode": "USD",
"subscriptionId": " fff170437c4e96ac5428364f674dfggg",
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
}
]
}
Response
{
"referenceOrderId": "",
"orderType": "PREVIEW_RENEWAL",
"externalReferenceId": "759",
"customerId": "9876543210",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2019-05-02T22:49:54Z",
"status": "1002",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567CA01A12",
"quantity": 1,
"status": "1002",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "ABCD-XV54-HG34-78YT",
"result": "SUCCESS"
}
]
},
{
"extLineItemNumber": 2,
"offerId": "80004561CA02A12",
"quantity": 11,
"status": "1002",
"subscriptionId": "",
"currencyCode": "USD",
"flexDiscounts": [
{
"id": "55522355-313b-476c-9d0b-7a710f4h83s4",
"code": "ABCD-XV54-HG34-78YT",
"result": "SUCCESS"
}
]
}
],
"links": { // As existing response fields }
}
Preview Switch
Use the POST /v3/customers/<customer-id>/orders API with the orderType as PREVIEW_SWITCH to manually preview the switch order, including the eligibility of the customer for the flexible discount code included in the request.
Request
The flexDiscountCodes parameter in lineItems array can be used to preview the eligibility of the flexible discount codes to the items being switched, as shown in the following example:
{
"orderType": "PREVIEW_SWITCH",
"currencyCode": "USD",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "65322651CA02A12",
"quantity": 15,
"flexDiscountCodes": ["UPSELL_PROMO_123"]
}
],
"cancellingItems": [
{
"extLineItemNumber": 1,
"referenceLineItemNumber": 1,
"subscriptionId": "abfb5a4cb14561879af7204c7daee1NA",
"quantity": 15
}
]
}
Response
{
"referenceOrderId": "",
"externalReferenceId": "a96ee8fe-c440-4d1c-ae5b-a90e1825aef",
"orderId": "",
"customerId": "1005944528",
"currencyCode": "USD",
"orderType": "PREVIEW_SWITCH",
"status": "",
"pricingSummary": [
{
"totalLineItemPrice": 810.00,
"currencyCode": "USD"
}
],
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "65304479CA02A12",
"quantity": 15,
"subscriptionId": "",
"proratedDays": 90,
"pricing": {
"partnerPrice": 365.00,
"discountedPartnerPrice": 295.65,
"netPartnerPrice": 81.00,
"lineItemPartnerPrice": 730.00
},
"flexDiscountCodes": ["UPSELL_PROMO_123"],
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "UPSELL_PROMO_123",
"result": "SUCCESS"
}
]
}
],
"cancellingItems": [
{
"offerId": "65322651CA02A12",
"quantity": 15,
"subscriptionId": "abfb5a4cb14561879af7204c7daee1NA",
"pricing": {
"partnerPrice": 300.00,
"discountedPartnerPrice": 0.00,
"netPartnerPrice": -300.00,
"lineItemPartnerPrice": 300.00
},
"referenceLineItemNumber": 1
}
],
"creationDate": "2025-03-17T11:42:29Z"
}
The response includes flexDiscounts at the lineItems level, showing applicability details for each code. The following table lists the flexible discount-related parameters in the response:
Apply flexible discounts when placing manual renewal orders
You can apply a flexible discount to renewal orders, including late renewals, by specifying flexible discount codes at the line item level in the Create Order request. To do this, set orderType to RENEWAL and include flexDiscountCodes for the applicable line items.
/v3/customers/<customer-id>/ordersRequest:
The following sample request shows how to apply a flexible discount code to a Create Order request to get a discounted price:
{
"orderType": "RENEWAL",
"externalReferenceId": "759",
"currencyCode": "USD",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567EA01A12",
"subscriptionId": " e0b170437c4e96ac5428364f674dffNA ",
"flexDiscountCodes": ["SUMMER_SALE_12"],
"quantity": 1
}
]
}
Response:
{
"referenceOrderId": "",
"orderType": "RENEWAL",
"externalReferenceId": "759",
"customerId": "9876543210",
"orderId": "5120008001",
"currencyCode": "USD",
"creationDate": "2019-05-02T22:49:54Z",
"status": "1002",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "80004567EA01A12",
"quantity": 1,
"status": "1002",
"subscriptionId": " e0b170437c4e96ac5428364f674dffNA ",
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "SUMMER_SALE_12",
"result": "SUCCESS"
}
]
}
],
"links": { ... }
}
Apply flexible discounts on subscriptions and Switch plan
- Create Scheduled Subscription with flexible discount
- Apply a switch plan with flexible discount
- Update Subscription with a flexible discount code
- Remove a flexible discount from a subscription
Create a scheduled subscription with flexible discount
You can use the POST /v3/customers/<customer-id>/subscriptions API with flexDiscountCodes in the request to create a subscription for a specific customer.
Note:
- Flexible discount codes are not validated while creating a subscription. Verification of customer eligibility occurs exclusively through the Preview Renewal API.
- A flexible discount code can be redeemed only once for a customer, thereby reducing the risk of unwanted code redemptions and thus preventing abuse.
Request
{
"offerId": "65304470CA01012",
"autoRenewal": {
"enabled": true,
"renewalQuantity": 100,
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
}
}
Response
{
"subscriptionId": "cc8efgh8bc4354a4b38006c87804ceNA",
"currentQuantity": 0,
"offerId": "65304470CA01012",
"autoRenewal": {
"enabled": true,
"renewalQuantity": 5,
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
},
"renewalDate": "2026-05-20",
"creationDate": "2025-10-20T22:49:55Z",
"status": "1009",
"links": {
"self": {
"uri": "/v3/customers/P1005053489/subscriptions/cc8efgh8bc4354a4b38006c87804ceNA",
"method": "GET",
"headers": []
}
}
}
Apply a switch plan with flexible discount
Use the Create Order API with orderType as SWITCH to switch from the current order to a new one. API with flexDiscountCodes in the request to create a subscription for a specific customer. For more information on Switch Orders, see Create Switch Order.
v3/customers/{customerId}/ordersPOSTRequest
Add flexDiscountCodes at the lineItems level to apply flexible discount codes to the items being switched.
{
"orderType": "SWITCH",
"currencyCode": "USD",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "65322651CA02A12",
"quantity": 15,
"flexDiscountCodes": ["UPSELL_PROMO_123"]
}
],
"cancellingItems": [
{
"extLineItemNumber": 1,
"referenceLineItemNumber": 1,
"subscriptionId": "abfb5a4cb14561879af7204c7daee1NA",
"quantity": 15
}
]
}
Response
{
"referenceOrderId": "",
"externalReferenceId": "a96ee8fe-c440-4d1c-ae5b-a90e1825aef",
"orderId": "123432123",
"customerId": "1005944528",
"currencyCode": "USD",
"orderType": "SWITCH",
"status": "",
"lineItems": [
{
"extLineItemNumber": 1,
"offerId": "65304479CA02A12",
"quantity": 15,
"subscriptionId": "",
"flexDiscountCodes": ["UPSELL_PROMO_123"],
"flexDiscounts": [
{
"id": "55555555-313b-476c-9d0b-6a610d5b91e0",
"code": "UPSELL_PROMO_123",
"result": "SUCCESS"
}
]
}
],
"cancellingItems": [
{
"offerId": "65322651CA02A12",
"extLineItemNumber": 1,
"quantity": 15,
"subscriptionId": "abfb5a4cb14561879af7204c7daee1NA",
"referenceLineItemNumber": 1
}
],
"creationDate": "2025-03-17T11:42:29Z"
}
For details on the flexible discount codes parameters in the request, see Preview Switch section.
Get details of a specific subscription
The GET /v3/customers/<customer-id>/subscriptions/<subscription-id> API response returns the flexible discount applied to the subscription:
{
"subscriptionId": "341d08f3084f89a1d33d2e8390c0a2NA",
"offerId": "11073058CA01A12",
"currentQuantity": 11,
"usedQuantity": 0,
"autoRenewal": {
"enabled": true,
"renewalQuantity": 11,
"flexDiscountCodes": [
"SUMMER_SALE_12"
]
},
"creationDate": "2026-01-22T09:03:34Z",
"renewalDate": "2027-01-22",
"status": "1000",
"currencyCode": "USD",
"links": {
"self": {
"uri": "/v3/customers/1007049449/subscriptions/341d08f3084f89a1d33d2e8390c0a2NA",
"method": "GET",
"headers": []
}
}
}
Get details of all subscriptions of a customer
The GET /v3/customers/<customer-id>/subscriptions API response lists the flexible discounts applied to all the subscriptions of a customer:
{
"totalCount": 2,
"items": [
{
"subscriptionId": "341d08f3084f89a1d33d2e8390c0a2NA",
"offerId": "11073058CA01A12",
"currentQuantity": 11,
"usedQuantity": 0,
"autoRenewal": {
"enabled": true,
"renewalQuantity": 11,
"flexDiscountCodes": [
"SUMMER_SALE_12"
]
},
"creationDate": "2026-01-22T09:03:34Z",
"renewalDate": "2027-01-22",
"status": "1000",
"currencyCode": "USD",
"links": {
"self": {
"uri": "/v3/customers/1007049449/subscriptions/341d08f3084f89a1d33d2e8390c0a2NA",
"method": "GET",
"headers": []
}
}
},
{
"subscriptionId": "de9e41b397450ba402e0b15a1b1cf3NA",
"offerId": "65304839CA01A12",
"currentQuantity": 12,
"usedQuantity": 0,
"autoRenewal": {
"enabled": true,
"renewalQuantity": 12
},
"creationDate": "2026-01-22T09:03:34Z",
"renewalDate": "2027-01-22",
"status": "1000",
"currencyCode": "USD",
"links": {
"self": {
"uri": "/v3/customers/1007049449/subscriptions/de9e41b397450ba402e0b15a1b1cf3NA",
"method": "GET",
"headers": []
}
}
}
],
"links": {
"self": {
"uri": "/v3/customers/1007049449/subscriptions?fetch-recommendations=false&recommendation-language=MULT",
"method": "GET",
"headers": []
}
}
}
Update a subscription with flexible discount code
Use the PATCH /v3/customers/<customer-id>/subscriptions/<subscription-id> API with flexDiscountCodes in the request to update a subscription with the corresponding flexible discount.
Note:
- Flexible discount codes are not validated while updating a subscription. Verification of customer eligibility occurs exclusively through the Preview Renewal API.
- When a reusable flexible discount has already been used by a customer in an order contributing to a subscription, the discount is automatically applied when the subscription auto-renews. Customers are not required to explicitly opt in using Update Subscription for this automatic application. However, if a flexible discount is explicitly selected using Update Subscription, that discount takes priority and the reusable discount is not auto-applied.
Request
The flexDiscountCodes parameter indicates the flexible discounts applicable for the subscription.
{
"autoRenewal": {
"enabled": true, // If Auto Renew is OFF, it must be turned ON to apply Discount Code. If it is already ON, this field is OPTIONAL.
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
}
}
Response
{
"subscriptionId": "8675309",
"currentQuantity": 10,
"usedQuantity": 2,
"offerId": "65304470CA01012",
"autoRenewal": {
"enabled": true,
"renewalQuantity": 5,
"flexDiscountCodes": ["ABCD-XV54-HG34-78YT"]
},
"renewalDate": "2020-05-20",
"creationDate": "2019-05-20T22:49:55Z",
"deploymentId": "12345",
"currencyCode": "USD",
"status": "1000",
"links": {
"self": {}
}
}
Remove a flexible discount from a subscription
Use the PATCH /v3/customers/<customer-id>/subscriptions/<subscription-id> with the query parameter reset-flex-discount-codes=true to remove a flexible discount from a subscription.
Request
- Request URL:
PATCH /v3/customers/<customer-id>/subscriptions/<subscription-id>?reset-flex-discount-codes=true - Request body: Empty or applicable body for update subscription
Sample empty request body:
{}
Response
{
"subscriptionId": "8675309",
"currentQuantity": 10,
"usedQuantity": 2,
"offerId": "65304470CA01012",
"autoRenewal": {
"enabled": true,
"renewalQuantity": 5
},
"renewalDate": "2020-05-20",
"creationDate": "2019-05-20T22:49:55Z",
"deploymentId": "12345",
"currencyCode": "USD",
"status": "1000",
"links": {
"self": {}
}
}