Remove from Cart
Cart
Remove from Cart
Remove or change a cart item
POST
Remove from 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.
Remove from Cart
Removes an item from the cart or changes its quantity.Request
Body Parameters
Use one of the following to identify the item:Line item index (1-based)
Line item ID or variant ID
New quantity. Set to 0 to remove the item.
Update custom properties (when using variant ID, properties help identify the specific line item)
Response
Whether the request succeeded
Updated cart object
Example Response
Remove by Variant ID
When the same variant appears multiple times (with different properties), use properties to identify which one to remove:Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
NOT_FOUND | Cart or line item not found |
VALIDATION_ERROR | Invalid request body |