Remove an item from the cart

Removes the line of the `{variantId}` variant (a `var_` id) from the caller's cart and returns the cart. The other lines that can no longer be sold are removed too and reported in `removedLines`. A malformed id, a variant not in the cart, or no cart returns 404 `CART_NOT_FOUND`. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Optional: customer session tokenSite access
DEL/cart/lines/{variantId}
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

variantId
string
required

Product variant identifier (var_ prefixed id)

Feedback

Was this page helpful?