Get a specific promotion
Retrieves a specific promotion using the corresponding promotionId
.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
24
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
A unique identifier obtained from Copilot for the System app in the fabric ecosystem, essential for OpenID Connect authentication flows.
A unique request ID.
Path Parameters
The promotion ID generated when using the create promotion endpoint.
Response
Promotion record detail
The promotion ID generated when using the create promotion endpoint.
The name of the promotion.
Promotion status
ACTIVE
, SCHEDULED
, DISABLED
, EXPIRED
The type of promotion you want to create. The following are the promotion types you can create:
PRODUCT
: A SKU promotion. Applies a discount to SKUs based on the value specified in thediscount
object of the request body.CART
: A cart promotion. Applies a discount to the minimum order amount of the cart based on theORDER_VALUE
specified in thecondition
object of the request body.QUANTITY
: A quantity promotion. Provides discounts on items based on the quantity requirement set in the promotion.SHIPPING
: A shipping promotion. Provides discounts on the shipping cost.BUYGET
: A BuyGet promotion. Specifies the Buy conditions and corresponding Get discounts.SPEND_GET
: A SpendGet promotion. Specifies the total order value required to qualify for discounts and the applicable discounts based on the order value.
PRODUCT
, CART
, QUANTITY
, SHIPPING
, BUYGET
, SPEND_GET
Promotion start time
Promotion end time
Promotion setup details
Operator for conditions
array. It's applied when the promotion type is BUYGET
. It's used as an operator between different condition objects mentioned in the conditions array.
AND
, OR
Promotion note or description
Terms and conditions for the promotion
Message description for the promotion
Required for Shipping type promotion to provide eligible shipment methods.
Price list IDs to be considered for this promotion.
Restrictions or conditions that apply to the use of a promotion
Merchant-specified attributes associated with the promotion.
Record's creation time
Record's last updated time
Promotion execution order. Promotion types are assigned a default execution order. First, level 1 promotions will be evaluated. The result of level 1 will be used as a base price for level 2. Similarly, the result of level 2 will be used as a base price for level 3.
0 < x < 5
Defines the rules for how a promotion can be combined with other promotions. This field determines whether a specific promotion can be applied in conjunction with other active promotions during a transaction or if it must be used exclusively. If configured, stackingType
will have precedence over the isStackable
and isAlwaysApplied
. The following are possible stackingType
values:
STACKABLE
: This promotion can be combined with other stackable promotions, allowing multiple discounts to be applied together. The order in which stackable promotions are applied is determined by thelevel
field, with promotions having a higher priority (lower numeric value) being applied before those with a lower priority.EXCLUSIVE
: This promotion can't be combined with any other promotions. Thelevel
field is used to determine which exclusive promotion will be evaluated and applied first. Once an exclusive promotion is applied, no other promotions can be used in the same transaction.TYPE_EXCLUSIVE
: This promotion can't be combined with other promotions of the same type. Thelevel
field is used to determine which promotion within the same type will be evaluated and applied first.UNIVERSAL
: This promotion can be combined with any other promotions without restrictions. Universal promotions will be evaluated last.
STACKABLE
, EXCLUSIVE
, TYPE_EXCLUSIVE
, UNIVERSAL
true
: The promotion can be stacked, and its discounts will be summed together with other promotions.false
: The promotion can't be applied with any other promotions.
A flag indicating whether the promotion is always applied. Set to true if the promotion is always applied, even in non-stackable scenarios, and false if the promotion is applied based on configured conditions.
Was this page helpful?