Skip to main content

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

    cartID stringrequired

    The unique identifier of the cart that you created.

Body

    data object[]
  • Array [
  • id string

    Specifies the ID of the cart item that you want to update in cart.

    quantity number

    Specifies the amount of items to update in the cart.

    custom_inputs object

    Specifies the custom text to be added to a product. See custom inputs.

  • ]
  • options object
    update_all_or_nothing boolean

    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

Response Headers
    Loading...