Skip to main content
PUT

Overview

Updates the quantity of an existing item in the cart. Set quantity to 0 to remove the item.

Authentication

string
required
Device authentication token from browser session

Path Parameters

string
required
Merchant domain (e.g., staging.luma.gift)
string
required
Product SKU to update (e.g., WS12-XS-Orange)

Request Body

number
required
New quantity (minimum: 0, set to 0 to remove)
array
List of variant handles if required by the merchant

Query Parameters

string
default:"false"
Set to true for faster response with potentially cached data

Response

Returns the updated shopping cart.

Response Fields

Same as Get Cart response.

Error Responses

400 Bad Request

Missing or invalid authentication header

404 Not Found

Product not found in the cart

409 Conflict

Not enough stock available for the requested quantity

422 Unprocessable Entity

Invalid request body format