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

Use the GET Flexible Discounts API to fetch flexible discounts that are applicable to a product:

Endpoint
Method
/v3/flex-discounts
GET

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:

Parameter
Type
Mandatory
Description
Range/Limits
categories
String
No
Filter discounts by category. Possible values are: <br /><br /> - STANDARD: Represents all regular Flexible Discounts available in the VIP Marketplace. These discounts can be applied to eligible orders as long as they meet the defined qualification criteria. These discounts are not restricted to new customers or first-time purchases. <br /> Example: Seasonal discounts like Black Friday or volume-based discounts for enterprise accounts.<br /> <br /> - INTRO: Represents Introductory Offers designed to help acquire new customers or encourage existing customers to adopt products that are new to their subscription. These discounts are typically limited to a customer’s first purchase or first-time use of a specific product. <br /> Example: Launch offer for Adobe Express at $39.99 for new customers.<br /><br /> - ON_DEMAND: Existing on-demand discount category.<br /><br /> - DEAL_REGISTRATION: Represents automatically applied, codeless Adobe Instant Deal Registration opportunities. Entries provide descriptive details, validity dates, status, qualification criteria, and outcomes without exposing a code or ID. Request this category explicitly to retrieve Instant Deal Registration opportunities.
market-segment
String
Yes
Get flexible discounts by market segment. Example: "COM", "EDU".
3 characters
country
String
Yes
Get flexible discounts by country using the ISO 3166-1 alpha-2 code. Example: "US", "IN".
2 or 3 characters
offer-ids
Array of strings
No
Provide a comma-separated list of Offer IDs to retrieve applicable flexible discounts. Example: 65322535CA04A12, 86322535CA04A12
flex-discount-id
String
No
Retrieve a flexible discount by its unique ID. This endpoint returns a single, unique flexible discount object. <br /> If flex-discount-id query parameter is provided in the request, other non-mandatory params cannot be provided in the same request.
Max: 40 characters
flex-discount-code
String
No
Filter discounts by code. Examples: "DIWALI", "BLACK_FRIDAY". The discount code can be of open or closed discount. When searched by closed discount code, response will have this structure.
include-eligible-reusable-discounts
Boolean
No
Include discounts that are not active, but the discount lock end date is still valid.
start-date
String (date)
No
Filter flexible discounts that were available on or after the specified date and time. This date can be without timestamp or with timestamp, for example, “2025-05-02" or "2025-05-02T22:49:54Z. Dates with timestamps are only accepted in ISO-8601 format with "Zulu" (UTC) time zone. This is the same format that all dates and times are in Adobe Commerce Partner API (CPAI) responses. <br /> Pass start-date=<today> to scope results to currently-live discounts only.
end-date
String (date)
No
Filter flexible discounts that were available on or before this moment in time. This date can be without timestamp or with timestamp, for example, “2025-05-02" or "2025-05-02T22:49:54Z. Dates with timestamps are only accepted in ISO-8601 format with "Zulu" (UTC) time zone. This is the same format that all dates and times are in Adobe Commerce Partner API (CPAI) responses.
limit
Integer
No
Specify the number of items to be returned in the response. Default: 20, Max: 50.
offset
Integer
No
Set the start offset for the result items. Default: 0

Sample request URLs

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

Parameter
Type
Description
limit
String
Number of items to be included in the current response.
offset
String
Offset applied for the current response.
count
String
The count of flexible discount entities included in the current response.
totalCount
String
Total count of flexible discount entities, if no limit was applied.
flexDiscounts
Object
Provides details of the available flexible discounts.

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.

Parameter
Type
Description
category
String
Flexible discount category. Possible values are STANDARD, ON_DEMAND, INTRO, and DEAL_REGISTRATION. Adobe Instant Deal Registration entries have no partner-visible code or ID.
id
String
A unique system-generated identifier for a code-based flexible discount. It is not returned for DEAL_REGISTRATION.
name
String
Name of the flexible discount.
description
String
Description of the flexible discount. It also provides additional details about the eligibility criteria for the flexible discount. For example, "Exclusive 20% off for Teams customers of CC All Apps in US"
code
String
A readable identifier used to apply a code-based flexible discount during order placement. It is not returned for DEAL_REGISTRATION, because Adobe evaluates and applies Instant Deal Registration automatically.
endDate
String (Date)
The final date when the flexible discount can be used. Dates with timestamps are only accepted in ISO-8601 format with "Zulu" (UTC) time zone. This is the same format that all dates and times are in Adobe Commerce Partner API (CPAI) responses.
startDate
String (Date)
The date from which the flexible discount can be used. Dates with timestamps are only accepted in ISO-8601 format with "Zulu" (UTC) time zone. This is the same format that all dates and times are in Adobe Commerce Partner API (CPAI) responses.
discountLockEndDate
String (Date and Time)
The date through which a flexible discount may continue to be applied beyond its initial offering period (start/end date). Reusable discounts are identified by the presence of the discountLockEndDate field in the response.
status
String Enum
Status of a code-based flexible discount: 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.
qualification
Object
qualification.baseOfferIds
Array of strings
List of Base Offer IDs of products eligible for flexible discount. Example: ["Offer ID 1", "Offer ID 2"] <br />Note: The list of base Offer IDs will be empty if the flexible discount applies to all products.
outcomes[]
Array of objects
outcomes[] → type
String
Type of flexible discount. Possible values are: PERCENTAGE_DISCOUNT, FIXED_DISCOUNT, FIXED_PRICE
outcomes[].discountValues[]
Array of objects
outcomes[].discountValues[] → country
String
Country Code: ISO 3166-1 alpha-2 code. Example: "US", "IN". Note: Not applicable for PERCENTAGE_DISCOUNT type.
outcomes[].discountValues[] → currency
String
Currency Code: ISO 4217. Example: "USD", "EUR". Note: Not applicable for PERCENTAGE_DISCOUNT type.
outcomes[].discountValues[] → value
Integer
The discount value. For example, if the value is 15: 15% discount is applicable if the type is PERCENTAGE_DISCOUNT. A discount of 15 USD, or any currency provided in the response, is applicable for the FIXED_DISCOUNT discount type.

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" }
Status Code
Description
200
Successfully fetched the flexible discounts
400
Bad request
401
Invalid Authorization token
403
Invalid API Key
404
Invalid request
503
Required qualification data could not be retrieved and no cached offer is available (applies to the qualification criteria). Retry using normal client retry handling.

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

Field
Type
Description
baseOfferIds
Array of strings
Existing field identifying the applicable offers. For upgrades, these are the target offers.
retainContractQuantityAtRenewal
Boolean
Optional. When true, the renewal quantity must be at least the total currentQuantity across the customer's subscriptions.
orderTypes
Array of strings
Applicable order types: NEW, RENEWAL, or SWITCH. Seat additions use NEW.
requirementSetsMatch
String
Indicates how the returned requirement sets are evaluated. Omitted when no requirement sets are returned.
requirementSets
Array of objects
Optional alternative groups of conditions. When no requirement sets are returned, both requirementSets and requirementSetsMatch are omitted.
requirementSets[].conditionsMatch
String
Specifies how conditions within the requirement set are evaluated.
requirementSets[].conditions
Array of objects
Conditions to check within the set.

Check 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.

type
entities
Value fields and qualifiers
Meaning
CUSTOMER_STATUSES
["customer"]
values: NEW, EXISTING, or FORMER
Qualifying customer status in the relevant product scope.
OWNED_OFFER_IDS
["subscription"]
offerIds: array of strings
The customer must own a listed offer. For upgrades, identifies the source product; baseOfferIds identifies the target.
NOT_OWNED_OFFER_IDS
["subscription"]
offerIds: array of strings
The customer must not own the applicable listed offer. This does not require the customer to be new.
RENEWAL_WINDOW
["customer"]
value: Boolean
Whether the renewal-window criterion is required, as configured for the discount.
ENROLLEE_STATUSES
["customer"]
benefitType: THREE_YEAR_COMMIT; values: NEW, EXISTING, or NOT_ENROLLED
Qualifying three-year-commitment enrollee status. This is separate from customer product status.
MINIMUM_QUANTITIES
["customer"]
benefitType: THREE_YEAR_COMMIT; offerType: LICENSE or CONSUMABLES; quantity: integer
Minimum three-year-commitment quantity for the specified offer type.
MINIMUM_UPGRADE_PERCENTAGE
["order", "subscription"]
motionType: UPGRADE; offerType: LICENSE or CONSUMABLES; value: integer percentage, 1-100
Minimum upgraded quantity as a percentage of the current source subscription quantity. Used with SWITCH orders.
RETENTION_RATE
["order", "subscription"]
offerType: LICENSE or CONSUMABLES; value: integer percentage, 1-100
Minimum renewal quantity for the current subscription. The unit can be PERCENTAGE, CONSUMABLE, QUANTITY, or CREDITS.
PARTNER_USAGE_CAP
["partner"]
max: integer
Maximum permitted uses of the discount, when configured.

Reconcile 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.

Derived status
Subscription evidence in the relevant product scope
NEW
No prior subscriptions exist in the relevant product scope. A successful response with totalCount: 0 and items: [] indicates that no subscriptions were returned for the customer.
EXISTING
At least one active subscription exists in the relevant product scope. The subscription API represents an active subscription with status: "1000".
FORMER
Previous subscriptions exist in the relevant scope, but none is active. For an expired subscription, the Get subscription returns 1004 as the subscription status.

Status-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.

Endpoint
Method
/v3/customers/<customer-id>/flex-discounts
GET

Note: 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.

Parameters
Type
Required
Description
limit
Integer
No
Specify the number of items to be returned in the response. Default value is 20 and the maximum possible value is 50.
offset
Integer
No
Set the start offset of the returned items. Default value is 0.

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.

Endpoint
Method
/v3/customers/<customer-id>/orders
POST

Notes:

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:

Name
Type
Description
flexDiscounts
Object
Details of the flexible discount applied to that lineItem
flexDiscounts[].id
String
A unique identifier for the discount. Used to retrieve or reference a specific flexible discount.
flexDiscounts[].code
String
The flexible discount code that was applied to that lineItem
flexDiscounts[].result
String
“SUCCESS" indicates that the flexible discount code applicability was successful.

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.

Endpoint
Method
/v3/customers/<customer-id>/orders/<order-id>
GET

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.

Endpoint
Method
/v3/customers/<customer-id>/orders
GET

Request 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:

Parameter
Not Null
Data Type
Description
Included in response by default
lineItems[].flexDiscountCodes
No
Array of strings
Flexible discount codes that were applied to the line item.
Yes
lineItems[].flexDiscounts
No
Object
Details of the flexible discount applied to the line item.
Yes
lineItems[].flexDiscounts[].id
No
String
A unique identifier for the discount. Used to retrieve or reference a specific flexible discount.
Yes
lineItems[].flexDiscounts[].code
No
String
The flexible discount code that was applied to the line item.
Yes
lineItems[].flexDiscounts[].result
No
String
Indicates applicability result. SUCCESS means the flexible discount code was applied successfully.
Yes

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.

Endpoint
Method
/v3/customers/<customer-id>/orders
POST

Request:

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 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:

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.

Endpoint
Method
v3/customers/{customerId}/orders
POST

Request

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:

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

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": {}
  }
}