POST

Update Current Cart Line Item Quantity


Updates the quantity of one or more line items in the current site visitor's cart.

This endpoint is only for updating the quantity of line items. To entirely remove a line item from the current cart, use Remove Line Items From Current Cart. To add a new line item to the current cart, use Add To Current Cart.

This endpoint checks the amount of stock remaining for this line item. If the specified quantity is greater than the remaining stock, then the quantity returned in the response is the total amount of remaining stock.

Note: This endpoint requires visitor or member authentication.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/carts/current/update-line-items-quantity

Body Params
lineItemsArray <LineItemQuantityUpdate>RequiredminItems 1maxItems 100

Line item IDs and their new quantity.

Response Object
cartCart

Updated cart.

Update the quantity of line items in the current site visitor's cart

This example updates the quantity of a line item from 3 to 2.

Request
cURL
Response
JSON
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?