Skip to main content
DELETE
Remove cart item

Remove base product line item

Use this route when the line item refers to the base product (no variant).
The path id may be the cart line’s own _id, or the product, food, or service id it holds. Removing by a catalog id (product/food/service) drops every line for that item — so removing a food that was added with two different add-on combinations clears both lines in one call. To remove a single line, pass that line’s _id.

Remove by item ID

You can also remove any cart item (including food and service items) directly by its _id. Use this to remove exactly one add-on line:

Path parameters

Headers

Successful response

Error response

Remove variant line item

Use this path when removing a specific variant from the cart.

Additional path parameter

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Path Parameters

productId
string
required

Identifier of the cart line to target. Accepts the cart line's own _id, or the product, food, or service id it holds. A catalog id (product/food/service) matches every line for that item — for a food or service added with different add-on combinations, target one specific line by its _id via /cart/item/{itemId}.

Response

Cart item removed successfully.

status
integer
required

HTTP status code returned by the API.

success
boolean
required

Indicates whether the request succeeded.

message
string
required

Human-readable response message.

data
object
required