Skip to main content
DELETE
Remove cart variant

Request

Path parameters

Headers

Successful response

Error response

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}.

variantId
string
required

Variant identifier for the cart item.

Response

Cart variant 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