Skip to main content
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 (products=...) from ads, feeds, or custom links. Base URL:
Recommended direct-products example:
If you already have a Storefront API cart, 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:
Rules:
  • variantId must be a variant UUID (not product/offer ID).
  • quantity is optional; default is 1.
  • 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 products becomes empty.
Examples:

Behavior

Checkout creation flow:
  1. If products contains valid variant entries, the endpoint can create/update a cart from those products.
  2. If cartId is provided and valid, checkout uses that cart and ignores products.
  3. If both are unavailable (no valid cartId and no valid products), redirect goes to /.
  4. On success, a checkout is created/updated and the shopper is redirected to /checkout/{checkoutId}.
Promo code precedence:
  1. coupon query param
  2. Manually-applied promo already on cart
  3. Automatically applied promo code from a shared link
Currency precedence:
  1. currency query param
  2. Session currency
  3. 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=...

Google Merchant Center Template

This endpoint supports the Google template pattern:

Example Integration

Direct variant handoff (primary):
Cart ID handoff (also supported):