Skip to main content
PATCH
Update cart variant

Request

Path parameters

Headers

Body parameters

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.

Body

application/json
quantity
integer
required

New quantity for the cart line item. Set to 0 to remove the line.

Required range: x >= 0

Response

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