/checkout/{orderId} and is not rewritten into the storefront tree.
Product link
Product pages use/product/{slug}. /products and /products/{categoryPath} are catalog routes, not one product.
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:
/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.
