Newer Version Available
Promotion Cart Item Input
- JSON example
-
1"cartItems": [ 2 { 3 "id": "id1", 4 "type": "Product", 5 "sku": "Tee Size L", 6 "quantity": 2, 7 "listPrice": 100, 8 "salesPrice": 100 9 }, 10 { 11 "id": "id2", 12 "type": "Product", 13 "sku": "Shorts Size L", 14 "quantity": 2, 15 "listPrice": 25, 16 "salesPrice": 25 17 }, 18 { 19 "id": "id3", 20 "type": "Product", 21 "sku": "Shoe Size 9", 22 "quantity": 2, 23 "listPrice": 25, 24 "salesPrice": 25 25 } 26 ] - Properties
-
Name Type Description Required or Optional Available Version cartId String ID of the cart. Optional 56.0 id String ID of the cart item. Must be unique across all items in the cart. Required 56.0 itemDescription String Description of the cart item. Optional 56.0 itemName String Name of the cart item. Optional 56.0 listPrice String List price of the cart item. Optional 56.0 product2Id String Product ID of the cart item. Required if sku isn’t specified 56.0 quantity String Number of items in the cart. Required 56.0 salesPrice String Sales price of the cart item. This is the price per quantity and the value used to compute the discount. If salesPrice and totalLineBaseAmount are specified, totalLineBaseAmount is used. Required if totalLineBaseAmount isn’t specified 56.0 sku String Stock keeping unit (SKU) of the cart item. Required if product2Id isn’t specified 56.0 totalLineBaseAmount String Total amount for the cart item, equal to sales price multiplied by quantity. This value is used to compute the discount. If salesPrice and totalLineBaseAmount are specified, totalLineBaseAmount is used. Required if salesPrice isn’t specified 56.0 totalListBaseAmount String Total amount for the cart item based on list price and quantity. Optional 56.0