This endpoint creates a new shopping cart that persists across sessions. Carts can be associated with authenticated customers or anonymous sessions.
Authentication
This endpoint requires a valid API key withcarts:write
permissions.
Request Body
Customer ID to associate with the cart (for authenticated users)
Session ID for guest carts (auto-generated if not provided)
Sales channel: “web”, “mobile”, “pos”, “api”
ISO 4217 currency code
Locale for the cart (e.g., “en-US”)
Initial items to add to the cart
Shipping address for tax/shipping calculations
Email for guest checkout and abandoned cart recovery
Custom expiration date (ISO 8601, default: 30 days)
Additional custom fields