/user to find your store, then call something with that store ID. You need a Komerza account and dashboard access.
1. Create an API key
- Open Account Settings → API Keys in the dashboard
- Click Create New API Key and give it a name you’ll recognise later
- Select the scopes it needs -
user.viewandstores.vieware enough for this guide - Copy the key
2. Find your store ID
Almost every endpoint is scoped to a store.GET /user returns your account, with the stores on it:
id of the store you want is what every {storeId} in these docs refers to.
3. Call an endpoint
Fetch the store you just found:The response envelope
Every response has the same four fields:
Errors keep the same shape:
success rather than assuming a 200 means you got what you asked for.
When it doesn’t work
401 - Access denied
401 - Access denied
The key is missing, malformed or revoked. Check you sent
Authorization: Bearer YOUR_KEY including the Bearer prefix, and that the key still
exists in the dashboard.403 - Forbidden
403 - Forbidden
The key is valid but lacks the scope for that endpoint. Scopes follow the
resource: reading orders needs
stores.orders.view, refunding them needs
stores.orders.refund. The full list is in Scopes.
Scopes are fixed when the key is created, so create a new key with the ones
you need.404 - Not found
404 - Not found
Usually a store ID that doesn’t exist, belongs to another account, or picked
up a stray character. Confirm it against
GET /user. Check the path too:
the base URL is https://api.komerza.com with no /api prefix.429 - Too many requests
429 - Too many requests
You’re sending requests faster than allowed. Back off and retry with
increasing delays rather than immediately.
Next steps
Filtering & Sorting
Narrow, order and page through list endpoints.
Scopes
Every permission a key can carry.
Products
Read and manage your catalogue.
Orders
Query orders, deliver and refund them.
Store Webhooks
Get order events pushed to your server instead of polling.
SDKs
Official libraries for .NET, JavaScript, Python, Go and PHP.