Cart Input Map
Input representation of the summary of the cart whose eligible promotions are to be fetched.
CartInputMapRepresentation
Here’s an example of the details of a customer’s cart whose eligible promotions are to be fetched:
Provide contactId to retrieve promotions related to a Person Account.
Here’s an example of the details of a loyalty program member’s cart whose eligible loyalty program promotions are to be fetched:
Here’s an example to fetch eligible loyalty program promotions for accounts:
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
cart | Map<String, Object> | Fields configured in the Cart and CartLine nodes of the CartDetailGetEligiblePromotion context service definition in your org. These fields represent the details of a cart and its line items whose eligible promotions are to be fetched. To get eligible promotions associated with a loyalty program member’s cart, the required parameters are membershipNumber or loyaltyProgramMemberId or currencyISOCode. For other eligible promotions, the required parameters are contactId, contactLastName, or contactEmail or currencyISOCode. Along with the required parameters, provide specific details of a cart, such as the total transaction amount, and the cart line item details, such as the line item quantity and amount, the product ID or name, the product catalog ID or name, the product code, and the product stock keeping unit. | Required | 60.0 |
contextInstanceId | String | ID of the context instance. | Optional | 65.0 |