By the end of this page you’ll have: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.
- Minted a Storefront Access Token in the dashboard.
- Listed products via the public API.
- Created a cart, added a line item, and produced a Stella-hosted checkout URL your customer can pay on.
curl is enough.
These examples target the staging environment at
https://api-dev-app.stella-commerce.com. Once production is live
the host will switch to https://api.stella-commerce.com.Step 1 — Mint a Storefront Access Token
In the Stella dashboard, navigate to Settings → Storefront access tokens and click Create token.- Give it a name (
local-devorkasa-prod). - Add the origins your storefront will call from (e.g.
https://kasa.com,http://localhost:3000). Origin enforcement is active when this list is non-empty. - Hit Create.
stk_live_…. Copy it
now — Stella stores only the hash.
You’ll also need your site_id (visible on the same page; example:
kasa).
Step 2 — List products
variant.id you want to add to the cart.
Step 3 — Create a cart and add an item
Cart creation is a POST with no body. The returnedid is the cart
identifier you’ll reference in subsequent calls.
Idempotency-Key header makes this safe to retry —
Stella replays the cached response on duplicate keys.
Step 4 — Redirect to checkout
Take thecheckout_url from the response above and redirect the
customer’s browser to it. Stella’s hosted checkout SPA handles
shipping, payment (Stripe Payment Element), and confirmation. On
success, an order.created webhook fires (see
Webhooks).
What’s next
Customer accounts
Add login, address book, and order history with the Customer
Account API.
Webhooks
Wire your fulfillment/email/analytics systems to Stella events.
Agent capability
Let AI agents act on a customer’s behalf, scoped and audited.
Full API reference
Every endpoint, every parameter, with try-it-out playground.