Getting started.
The public API covers reporting, register closing and e-commerce, with read and write operations. This guide takes you from a scoped sandbox key to your first successful request.
Before you begin
Sandbox access is available to existing Simple merchants. You need a sandbox tenant with at least one active store, and products and variants with stock. Ask the merchant you are building for to create your key; Simple does not offer self-serve developer accounts.
Environments
Sandbox and production are separate deployments with separate databases and keys. A sandbox key never works in production, and a production key never works in the sandbox. Build and test against the sandbox, then switch the base URL and key.
https://sandbox.simpleposapi.simplecommerce.ioKey prefix simple_test_. Any Simple merchant. Separate database with test data; no real payments.https://api.simplepos.simplecommerce.ioKey prefix simple_live_. Invite-only. Real store data; your merchant must be enabled by Simple.Use the switch at the top of the API reference to view either environment.
1. Create a sandbox key
Sign in as a store owner in Simple Retail POS and open Apps Settings → Developer API Keys. Select Sandbox: sandbox keys are stored by the sandbox API and the first one sets up sandbox copies of the owner's stores with sample products, stock and a test customer. Choose only the permissions your integration needs—for this guide, reports:inventory:read—and select the permitted stores. Each operation in the reference lists the permission it requires.
The secret is shown once; save it in your server-side secret manager. If you lose it, create a replacement and revoke the old key after updating your integration.
Keys are bound to one tenant and one environment. You can revoke a single key without disrupting other integrations. Do not place the key in a browser storefront, source control, URL, analytics, or logs.
2. Make your first request
Set the sandbox API origin above, your own key, and a permitted store ID. The header contains the raw API key as a bearer token.
curl --request GET --url "$SANDBOX_API_BASE_URL/api/v1/public/reports/inventory?store_id=$STORE_ID&limit=50" --header "Authorization: Bearer $SANDBOX_API_KEY" --header "Accept: application/json"Or open the interactive reference and enter the same sandbox key there. The test console sends requests directly to the sandbox API; this portal has no shared API credential or hosted request proxy.
3. Read the response
A successful response contains a data array and a page object. Quantities are decimal strings. If page.has_more is true, send page.next_cursor as the next request's cursor. The report is a current stock snapshot, not a historical balance.
{
"data": [{
"variant_id": "...",
"product_id": "...",
"product_name": "Example item",
"variant_name": "Example size",
"sku": "SKU-001",
"quantity": "12.0000",
"low_stock": false
}],
"page": { "has_more": false, "next_cursor": null }
}Errors use application/problem+json and return a request_id; each error's type links to its page in the error catalogue. Expect 401 for a missing or invalid key, 403 for a missing permission or a merchant not enabled for production, 404 for an unavailable store or resource, 409 for a state or idempotency conflict, and 429 when a rate limit is reached.
Every write needs an Idempotency-Key header; retrying with the same key and body returns the original result. Keys allow 120 requests per minute, of which at most 20 can be writes. Rate-limit headers and Retry-After tell you when to retry.
Security notes
The API derives the tenant from your key, not from a request field. Store IDs are checked against that tenant and any key allowlist. Sandbox and production use separate keys and databases. The interactive reference does not persist authentication in local storage; close the page when testing is complete. Never paste a production key into a shared or public computer.
Next, pick a guide for what you are building: storefront checkout, register closing or reporting.
Explore the reference ↗