Update cart item
Update the quantity of a product or variant already in the cart.
Update base product quantity
Use this route when the cart line item references the base product (no variant)._id, or the product, food, or service id it holds. Set quantity to 0 to remove the line.
_id with the /cart/item/:itemId route below.Update by item ID
You can also update any cart item (including food and service items) directly by its_id. This is the unambiguous way to update one specific add-on line:
Path parameters
Headers
Body parameters
Successful response
Error response
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Path Parameters
Identifier of the cart line to target. Accepts the cart line's own _id, or the product, food, or service id it holds. A catalog id (product/food/service) matches every line for that item — for a food or service added with different add-on combinations, target one specific line by its _id via /cart/item/{itemId}.
Body
New quantity for the cart line item. Set to 0 to remove the line.
x >= 0
