Skip to main content

Create Order

Alternate public create path (legacy / special clients). Rate limit: 10/min. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset; a 429 also carries Retry-After and retryAfter in the body. Prefer POST /api/checkout/start for Vite storefronts and POST /api/embed/checkout for embeds.

Response shape

Use the token with delivery/keys endpoints or /api/checkout/session / /api/checkout/enter. checkoutToken is null when the order has no customer email. Unexpected failures return 500 { "error": "Failed to create order" }. CSRF exempt (checkout lifecycle).