Environments
The Storefront API environments and their base URLs.
OneBasket has two hosted environments for API consumers.
| Environment | Use it for |
|---|---|
| Sandbox | Building and testing your integration. |
| Live | Production traffic. |
Base URLs
| Environment | Baskets, Orders, Notifications | Seating, Kiosks, Timestreams |
|---|---|---|
| Sandbox | https://storefront.sandbox.onebasket.io | https://storefrontapi.sandbox.onebasket.io |
| Live | https://storefront.live.onebasket.io | https://storefrontapi.live.onebasket.io |
The OpenAPI documents for Catalogues, Ticketing and the payment providers do not declare a hosted base URL.
Confirm the base URL for your store
Some organisations run on a dedicated OneBasket installation with its own host name. Ask your Stadion technical contact for the base URL of each environment before you start.
Selecting a base URL in the API reference
Each endpoint page in the API reference has a server selector. Choose an environment there, or enter your own base URL, before you send a test request.
Configuration in your application
Keep the base URL and the API key in configuration, not in code. The OneBasket SDK reads them from these environment variables:
ONEBASKET_API_URL=
ONEBASKET_API_KEY=