This API is used to retrieve the cart promotions tagged to a particular customer based on the user ID. This returns cart promotions issued to the customer or POS promotions which are tagged to the customer's tier or supplementary programs.
Request Query Parameters
Parameter | Data Type | Description |
---|---|---|
includeRedemptions | Boolean | includeRedemptions=true includes the restrictions applied to the promotion including max limit and remaining redemptions |
includeSupplementaryPromotions | Boolean | includeSupplementaryPromotions=true includes the promotions tagged to the customer's supplementary program |
Response Parameters
Parameter | Data type | Description |
---|---|---|
promotionId | String | Unique identifier of the Cart promotion |
promotionName | String | Name of the Cart promotion |
validTill | Long | Expiration timestamp (milliseconds since epoch) |
customerId | Long | Unique Identifier of the Customer using the Cart promotion |
earnedType | String | The method how cart promotion was earned. Supported values: NONE, TIER, REWARD, LOYALTY. None: Promotion is directly assigned to the customer, no qualification criteria required. Tier: Promotion is assigned based on the customers loyalty tier or status level, no qualifying action is required. Reward: Promotion is earned on the basis of completing a milestone or achievement, action is required. Loyalty: Promotion is tied to loyalty program. |
earnedStatus | String | Status of the earned cart promotion. Supported Values: LOCKED, UNLOCKED, EXPIRED. Locked: Promotion has been Issued but not yet available to use. Unlocked: Promotion is active and ready for the customer to use. Expired: Promotion was available before but cannot be used now. |
promotionStatus | String | Promotion can have three statues: ACTIVE, INACTIVE, EXPIRED.
|
milestoneId | Long | Milestone or achievement target linked to the promotion |
targetGroupId | Long | Identifier for a specific customer group eligible for the promotion based on predefined criteria. It indicates the offer was specifically designed for a customer segment. |
applicationMode | String | Indicates the way the promotion is applied. Supported Values: DISCOUNT, REWARD. Discount: Promotion applies to reduce the price, lowering the amount customer pays at checkout. Reward: It provides benefit or reward that does not applies at transaction. |
customFieldValues | Object | Contains custom key-value pairs related to the promotion |
restrictions | Object | Contains restrictions categorized by level. To view the restrictions, set |
| Array | Contains cart-level restrictions applicable to the promotion. |
| Array | Contains customer-level restrictions applicable to the promotion. |
| Array | Contains promotion-level restrictions applicable to the promotion. |
| Array | Contains product-level restrictions applicable to the promotion. Only |
| Array | Contains Product Category-level restrictions applicable to the promotion. Only |
-- kpi | String | Indicates the key performance metric used for restriction. |
-- maxLimit | String | Indicates the maximum allowed limit for a specific restriction. For Example, in a birthday cart promotion offer, if the |
-- remainingRedemption | String | Indicates the remaining number of times the cart promotion can be used by the customer. If the count is zero, it means that the promotion cannot be redeemed by the customer as they have already exhausted all the redemptions available. For example, in a birthday cart promotion offer with a maximum redemption limit of 1, if the customer has already redeemed the cart promotion, then even if promotionStatus is |
eventTime | Long | Timestamp of the event that triggered the cart promotion (milliseconds since epoch) |
supplementaryCriteria | Object | Defines additional loyalty based conditions. To get this response, set query parameter |
| Long | Identifier of the loyalty program associated with cart promotion |
| Enum | Indicates the type of program |
| Long | Indicates partner program Id, if it is a partner program |