Use this endpoint to send a shopper directly into Fourthwall checkout from a URL. It is especially useful when you want to pass product variants directly (Documentation Index
Fetch the complete documentation index at: https://docs.fourthwall.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Param | Required | Description |
|---|---|---|
products | No | Comma-separated list of cart items in variantId[:quantity] format. |
cartId | No | Existing cart ID to checkout. If present and valid, products is ignored. |
coupon | No | Promo code to apply. |
currency | No | Checkout currency (for example USD). |
cart_origin | No | Cart origin metadata. |
utm_*, _ga, _fbp, _fbc, gclid, fbclid, FPID | No | Marketing params are captured and propagated in checkout metadata. |
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=...