Cart Operations
Add Item to Cart
Adds a product to the shopping cart
POST
Overview
Adds a product to the cart using its SKU. To find available products and their SKUs, use the Catalog API.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 add to cart (e.g.,
WS12-XS-Orange)number
required
Quantity to add (minimum: 1)
Request Body
array
List of variant handles required by some merchants to fully identify the product
Query Parameters
string
default:"false"
Set to
true to clear the cart before adding the itemstring
default:"false"
Set to
true for faster response with potentially cached dataResponse
Returns the updated shopping cart.Response Fields
string
Unique identifier for the cart
array
Array of items in the cart
object
Subtotal before shipping and tax
object
Shipping cost (if shipping info has been set)
object
Tax amount
object
Grand total including all costs