Newer Version Available

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

Cart Item Input

An item in a cart.
Root XML tag
<cartItem>
JSON example for adding an item to a cart
1{
2   "productId":"01t000000000000000",
3   "quantity":"5",
4   "type":"Product"
5}
JSON example for updating an item in a cart
1{
2   "quantity":"7"
3}
Properties
Name Type Description Required or Optional Available Version
cartDeliveryGroupId String ID of the cart delivery group. Optional 59.0
productId String ID of the product. Required when adding an item to a cart (POST)

Not supported when updating an item in a cart (PATCH)

49.0
quantity String Quantity of the cart item. Use a value that can be converted to BigDecimal. Required 49.0
type String Type of item in a cart. Value is Product. Required when adding an item to a cart (POST)

Not supported when updating an item in a cart (PATCH)

49.0