Promotion Evaluation Input

Find promotions that the customer is eligible for and compute their discounts.
JSON example
1{
2   "cart":{
3      "cartDeliveryGroups":[
4         {
5            "cartDeliveryGroupId":"0a7xx000000001dAAA",
6            "cartDeliveryGroupMethods":[
7               {
8                  "cartDeliveryMethodId":"2Dmxx0000004MMuCAM",
9                  "price":"25.00"
10               },
11               {
12                  "cartDeliveryMethodId":"2Dmxx0000004MMuCAG",
13                  "price":"25.00"
14               }
15            ]
16         }
17      ],
18      "currencyIsoCode":"USD",
19      "id":"3z6xx000000001eAAA",
20      "cartAdjustmentGroups":[
21         {
22            "id":"0m9xx0000006j3SAAQ",
23            "cartId":"3z6xx000000001eAAA",
24            "priceAdjustmentCauseId":"0c8xx0000000001AAA",
25            "adjustmentDescription":"test",
26            "priority":2,
27            "adjustmentType":"AdjustmentPercentage",
28            "adjustmentValue":-10.0,
29            "baseAmount":-1.8,
30            "adjustmentBasisReference":null
31         }
32      ],
33      "cartItems":[
34         {
35            "id":"01txx0000006i2SAAQ",
36            "type":"Product",
37            "product2Id":"01txx0000006i2SAAQ",
38            "sku":null,
39            "quantity":1,
40            "salesPrice":20,
41            "totalNetAmount":18,
42            "cartDeliveryGroupId":"0a7xx000000001dAAA",
43            "cartItemPriceAdjustments":[
44               {
45                  "id":"0U1xx0000006f1DCAQ",
46                  "cartItemId":"01txx0000006i2SAAQ",
47                  "priceAdjustmentCauseId":"0c8xx0000000001AAA",
48                  "priority":1,
49                  "adjustmentDescription":null,
50                  "adjustmentType":"AdjustmentAmount",
51                  "adjustmentAmountScope":"Total",
52                  "adjustmentTargetType":"Item",
53                  "adjustmentBasisReference":null,
54                  "baseAmount":-2,
55                  "adjustmentValue":-2.0
56               }
57            ]
58         }
59      ]
60   },
61   "couponCodes":[
62      
63   ],
64   "effectiveAccountId":null,
65   "webStoreId":"0ZExx0000000002GAA",
66   "isItemizeHeaderAdjustments":"false",
67   "scope":"Delivery"
68}
Properties
Name Type Description Required or Optional Available Version
cart Promotion Cart Input Cart and its items. Required 56.0
cartDelivery​Groups Promotion Cart Delivery Group Input[] List of cart delivery groups associated with the items in the cart. Available if shipping promotions are enabled. Required when evaluating shipping promotions 57.0
couponCodes String[] Collection 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 Promotion Parent Products Input[] Collection of parent product IDs mapped to their variation product IDs. Optional 56.0
productCategories Promotion Product Categories Input[] Collection of product IDs mapped to their associated category IDs. Optional 56.0
scope String Promotion evaluation scope. Valid values are:
  • Cart
  • Delivery

If no value is provided, default is Cart. If you want any shipping promotions to be evaluated, set to Delivery.

Optional 60.0
segments String[] All promotions associated with promotion segments specified in this collection 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