Updating cart quantities
How to update the quantity of an item in your shopping cart
Last updated
How to update the quantity of an item in your shopping cart
Last updated
You have some items in your shopping cart and you want to update their quantity.
To set the quantity of an item in your shopping cart you need to change its quantity
attribute. To do that, send a PATCH
request to the /api/line_items/:id
endpoint.
The following request updates the line item identified by the "aBmNkPQRst" ID with a quantity of 6:
The image below shows how the related action on the product quantity is mapped to a specific attribute of the line item object.
See our documentation if you need more information on how to update a line item.