Update Cart
Cart
Update Cart
Update cart items or attributes
POST
Update Cart
Documentation Index
Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
Use this file to discover all available pages before exploring further.
Update Cart
Updates quantities of items in the cart, or updates cart attributes.Request
Body Parameters
Object mapping variant IDs to new quantities. Set quantity to 0 to remove.
Update cart note
Update cart attributes (replaces existing attributes)
Alternative: Line Item Based Updates
You can also update using line item IDs:Response
Whether the request succeeded
Updated cart object
Example Response
Updating Cart Note and Attributes
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
NOT_FOUND | Cart or line item not found |
QUANTITY_UNAVAILABLE | Requested quantity exceeds available stock |
VALIDATION_ERROR | Invalid request body |