Update the quantity of a product or variant already in the cart.
| Parameter | Type | Description |
|---|---|---|
productId | string | Product identifier of the cart item. |
| Header | Type | Description |
|---|---|---|
Authorization | string | Provide the customer token as Bearer <jwt>. |
x-shop-id | string | Identify the shop that owns the cart. |
Content-Type | string | Set to application/json. |
| Field | Type | Required | Description |
|---|---|---|---|
quantity | integer | Yes | New quantity to set (minimum 1). |
api-reference/endpoint/cart/update-variant.JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Product identifier for the cart item.
New quantity for the cart line item.
x >= 1