Remove from Cart
Cart
Remove from Cart
Remove or change a cart item
POST
Remove from Cart
Remove from Cart
Removes an item from the cart or changes its quantity.Cart change is a storefront surface, not part of the OAuth
/api/v1 app
API. It follows the Shopify-AJAX cart contract: requests are made against the
storefront origin (your store domain), identity is the cart cookie token
(not a Bearer access token), and the response is the flat Shopify cart
object — not wrapped in a { status, type, data } envelope.Request
Body Parameters
Use one of the following to identify the item:Line item index (1-based)
Variant ID of the line to change
Line item key (
{variant_id}:{hash}, as returned in the cart items)New quantity. Set to
0 to remove the item.Update custom properties (when identifying by variant ID, properties help
pinpoint the specific line item)
A legacy browser pattern is also supported:
GET /cart/change?id={variantId}&quantity={qty} (or line=). It applies the
change and then redirects (HTTP 302) to /cart.