Skip to main content
A checkout link is a normal URL. The product page lives on the store host. Hosted checkout is /checkout/{orderId} and is not rewritten into the storefront tree. Product pages use /product/{slug}. /products and /products/{categoryPath} are catalog routes, not one product.
On a verified custom domain:

Hosted checkout

POST /api/checkout/start creates a draft order. It does not take a merchant API key or a dashboard session. The body needs subdomain and a cart. Each line needs a product id (id or productId) and a name. The server prices the cart from the catalog. The JSON response includes orderId and checkoutToken. It also sets an httpOnly cookie on the host that handled the request. Send the buyer to the same host:
That route checks the token, sets the checkout cookie, and redirects to /checkout/{orderId}. /checkout/{orderId} is the shared checkout page. On a store subdomain or custom domain it is not rewritten to /store/{subdomain}/.... The marketing host serves the same path (https://joinmarkt.com/checkout/{orderId}) when the enter link uses that host. The cookie is host-only, so the enter URL and the checkout page have to share a host.
The App Router segment is named invoiceId. The value is the order public id returned as orderId.

When to use what

Example

The buyer pays on Join Markt checkout with that store’s payment methods.