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
Device authentication token from browser session
Path Parameters
Merchant domain (e.g.,
staging.luma.gift)Product SKU to add to cart (e.g.,
WS12-XS-Orange)Quantity to add (minimum: 1)
Request Body
List of variant handles required by some merchants to fully identify the product
Query Parameters
Set to
true to clear the cart before adding the itemSet to
true for faster response with potentially cached dataResponse
Returns the updated shopping cart.Response Fields
Unique identifier for the cart
Array of items in the cart
Subtotal before shipping and tax
Shipping cost (if shipping info has been set)
Tax amount
Grand total including all costs