Skip to main content
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 item
string
default:"false"
Set to true for faster response with potentially cached data

Response

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

Error Responses

400 Bad Request

Missing or invalid authentication header

404 Not Found

Product not found with the given SKU

409 Conflict

Not enough stock available for the requested quantity

422 Unprocessable Entity

Invalid request body format