Bulk Update Items in Cart
PUT/v2/carts/:cartID/items
The bulk update feature allows shoppers to update an array of items to their cart in one action, rather than updating each item one at a time. Shoppers can update quantity and shipping group details in bulk requests. This minimizes the time for shoppers while updating items to their cart. Shoppers can even update multiple items with the same or different shipping groups to their cart.
When you update multiple items that qualify for free gifts in the cart, the corresponding free gifts for all eligible products are also automatically updated in the cart.
Request
Path Parameters
The unique identifier of the cart that you created.
- application/json
Body
- Array [
- ]
data object[]
Specifies the ID of the cart item that you want to update in cart.
Specifies the amount of items to update in the cart.
Specifies the custom text to be added to a product. See custom inputs.
options object
When set totrue
, if an error occurs for any item, no items are updated in the cart. When set to false
, valid items are updated in the cart and the items with errors are reported in the response. Default is true
.
Responses
- 200
- 401
Response Headers
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}