products=...) from ads, feeds, or custom links.
Base URL:
cartId is also supported:
Request
- Method:
GET - Path:
/cart/checkout - Intended use: Browser redirect links (ads, email, social, product feeds, etc.)
- Use the root path (
/cart/checkout), not a locale-prefixed path.
Query Parameters
products Format
Format:
variantIdmust be a variant UUID (not product/offer ID).quantityis optional; default is1.- Invalid quantity values fall back to
1. - Entries with too many separators (like
id:1:extra) are skipped. - URL-encoded input is supported.
- If any entry has an invalid variant UUID, parsing fails and
productsbecomes empty.
Behavior
Checkout creation flow:- If
productscontains valid variant entries, the endpoint can create/update a cart from those products. - If
cartIdis provided and valid, checkout uses that cart and ignoresproducts. - If both are unavailable (no valid
cartIdand no validproducts), redirect goes to/. - On success, a checkout is created/updated and the shopper is redirected to
/checkout/{checkoutId}.
couponquery param- Manually-applied promo already on cart
- Automatically applied promo code from a shared link
currencyquery param- Session currency
USD
Response
This endpoint responds with redirects:- Success:
303 See Other->/checkout/{checkoutId} - Empty/invalid input:
303 See Other->/ - Exception path:
303 See Other->/?error_message=...