Newer Version Available

This content describes an older version of this product. View Latest

Promotion Execution (POST)

Evaluate cart details and return the adjusted price of cart and line items after applying eligible promotions based on the selected promotion evaluation and execution method.
Resource
1/global-promotions-management/promotion-execution
Resource example
1https://yourInstance.salesforce.com/services/data/v65.0/global-promotions-management/promotion-execution
Available version
65.0
HTTP methods
POST
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
rule​LibraryApiName String API name of the Global Promotion Management type rule library that's associated with the promotions that you must check the cart's eligibility against. Optional 65.0
Request body for POST
JSON example
1{
2  "cart": {
3    "cartDetails": [
4      {
5        "cartHeaderId__std": "01ddf0000003kfMAAW",
6        "currencyISOCode": "USD",
7        "cartPromotionAdditionalInformation__std": [
8          {
9            "cartCouponCode__std": "CART5"
10          }
11        ],
12        "cartLineDetails": [
13          {
14            "cartLineProductId": "01txx0000006kfMAAQ",
15            "cartLineItemQuantity": 2,
16            "cartLineItemAmount": 100,
17            "cartLineItemId": "abcd1",
18            "cartLineNetUnitPrice__std": 50,
19            "cartLinePromotionAdditionalInformation__std": [
20              {
21                "cartLineCouponCode__std": "PIZZA5"
22              }
23            ]
24          },
25          {
26            "cartLineProductId": "01txx0000006kfNAAQ",
27            "cartLineItemQuantity": 2,
28            "cartLineItemAmount": 10,
29            "cartLineItemId": "abcd2",
30            "cartLineNetUnitPrice__std": 5
31          }
32        ]
33      }
34    ]
35  }
36}
Properties
Name Type Description Required or Optional Available Version
cart Map<String, Object> The details of a cart and its line items to evaluate and execute promotions. Required 65.0
Response body for POST
Cart