Create a checkout from a cart.
Validates inventory availability + computes tax + stamps shipping
rate (if shipping_rate_id provided). Total reflects subtotal +
tax + shipping at create time so the Stripe payment page sees a
stable amount.
Returns the checkout body PLUS a freshly-minted chk_… access
token. The token is shown EXACTLY ONCE — the storefront should
embed it into the buyer-facing checkout_url (typically as a URL
fragment so it doesn’t leak via Referer headers). The
checkout-web SPA uses it as Authorization: Bearer chk_… to
drive subsequent reads + payment-intent creation.
Documentation Index
Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt
Use this file to discover all available pages before exploring further.
Schema for creating checkout.
Schema for address. Fields are optional to support simpler address formats from AI widget.
Schema for address. Fields are optional to support simpler address formats from AI widget.
Successful Response
Returned ONLY from POST /api/storefront/checkout.
Layers access_token (the freshly-minted chk_… Bearer for the
checkout-web SPA) on top of the standard CheckoutResponse. The
plaintext is shown EXACTLY ONCE; subsequent reads via
GET /api/storefront/checkout/{id} use the Authorization header
and never echo the token back.
Schema for address. Fields are optional to support simpler address formats from AI widget.
Schema for address. Fields are optional to support simpler address formats from AI widget.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$