Newer Version Available

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

Promotion Association Input

Cart and its cart items before any promotion discounts are associated with them.
Root XML tag
<salesTransaction>
JSON example
1{
2   "effectiveAccountId":"001RM000004ywq7YAA",
3   "salesTransaction":{
4      "attributes":{
5         "type":"WebCart"
6      },
7      "Id":"0a6RM00000009XAYAY",
8      "CurrencyIsoCode":"USD",
9      "TotalAmount":1479.00,
10      "CartItems":{
11         "records":[
12            {
13               "attributes":{
14                  "type":"CartItem"
15               },
16               "Id":"0a9RM0000004OseYAE",
17               "Product2Id":"01tRM000000QVWKYA4",
18               "Quantity":15,
19               "TotalPriceAfterAllAdjustments":660.00
20            },
21            {
22               "attributes":{
23                  "type":"CartItem"
24               },
25               "Id":"0a9RM0000004OsfYAE",
26               "Product2Id":"01tRM000000QVW7YAO",
27               "Quantity":5,
28               "TotalPriceAfterAllAdjustments":202.50
29            },
30            {
31               "attributes":{
32                  "type":"CartItem"
33               },
34               "Id":"0a9RM0000004OsgYAE",
35               "Product2Id":"01tRM000000QVWFYA4",
36               "Quantity":6,
37               "TotalPriceAfterAllAdjustments":594.00
38            }
39         ]
40      }
41   }
42}
Properties
Name Type Description Required or Optional Available Version
effective​AccountId String ID of the account for which the request is made. Required 53.0
sales​Transaction Map<String, Object> Map of a cart and its items. The fields shown in the example are required to process promotions. Additional fields are allowed but ignored.

In error messages, the TotalPriceAfterAllAdjustments field is referred to as TotalPrice.

Note

Required 53.0