Newer Version Available

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

Commerce Webstore Cart Items, Batch

Add a batch of up to 100 items to a cart.

Buyers with read access to carts can add, update, and delete items in carts.

Adding items to a cart respects buyer View Product entitlements and only users entitled to view product data can access it.

Resource
1/commerce/webstores/webstoreId/carts/cartStateOrId/cart-items/batch
Values for cartStateOrId are:
  • cartId—ID of the cart.
  • active—Active cart.
  • current—Cart that isn’t closed or pending deletion. Available in version 50.0 and later.
Available version
49.0
Requires Chatter
No
HTTP methods
POST
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
effective​AccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 49.0
Request body for POST
Batch Collection Input
The rich input for this batch collection is a Cart Item Input.
Response body for POST
Batch Results
The Batch Results response body contains Cart Item response bodies corresponding to each of the request bodies. The Cart Item response bodies are returned in the same order as the request bodies.