How to update in bulk

With the new update cart callback system in place you can now update the quantity of items in the cart in bulk.

Simply pass the item key and the quantity for each item you wish to change and the quantity of those items will update.

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "namespace": "update-cart",
    "quantity": {
      "fffcf8d139b229986b510f92c8fc4464": 4,
      "e511ee8c822a8419ee8d5f4b76ebff59": 6

This callback cannot add cart item data to an item. You can only do that when adding an item to the cart.

Was this helpful to you?