Newer Version Available

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

Promotion Evaluation Input

Find promotions that the customer is eligible for and compute their discounts.
JSON example
1{
2    "cart": {
3        "currencyIsoCode": "USD",
4        "id": "0a6xx0000000001AAA",
5        "cartItems": [
6            {
7                "id": "0a9xx000000001dAAA",
8                "type": "Product",
9                "product2Id": "01txx0000006i2SAAQ",
10                "sku": null,
11                "quantity": 9,
12                "salesPrice": 154.25
13             }
14          ]
15      },
16      "couponCodes": [
17         "P10"
18       ],
19    "webStoreId":"0ZExx000000006TGAQ",
20    "isItemizeHeaderAdjustments" : "true",
21    "effectiveAccountId": "001xx000003GZ6NAAW"
22}
Properties
Name Type Description Required or Optional Available Version
cart Promotion Cart Input Cart and its items. Required 56.0
couponCodes String[] List of coupon codes to enable promotions. A customer can apply a maximum of two coupons per cart. Optional 56.0
effectiveAccountId String ID of the account for which the request is made. Optional 56.0
isItemizeHeader​Adjustments Boolean Specifies whether order-level adjustments are itemized (true) or not (false). If unspecified, the default value is false. Optional 56.0
parentProducts Map<String, String[]> Map of the parent product to its variation products. Optional 56.0
productCategories Map<String, String[]> Map of products to their associated categories. Optional 56.0
segments String[] All promotions associated with promotion segments specified in this list are active and can be evaluated against the cart. Additionally, any segments associated with a store or buyer group are also still evaluated against the cart. If this field is not present, only the promotions associated with a store or buyer group are evaluated. Optional 56.0
webstoreID List<String> ID of the store for which the request is made. If unspecified, defined segments must be used instead. Optional 56.0