Skip to main content
Three steps: create a key, call /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

  1. Open Account Settings → API Keys in the dashboard
  2. Click Create New API Key and give it a name you’ll recognise later
  3. Select the scopes it needs - user.view and stores.view are enough for this guide
  4. Copy the key
The key is shown once. Store it in an environment variable or a secrets manager, never in source control, and give each integration its own key so you can revoke one without breaking the rest.
Every request needs two headers:

2. Find your store ID

Almost every endpoint is scoped to a store. GET /user returns your account, with the stores on it:
The id of the store you want is what every {storeId} in these docs refers to.
You can also copy it from the dashboard: Online Store → Settings → General, where the Store ID field has a copy button next to it.

3. Call an endpoint

Fetch the store you just found:
That’s it - you’re authenticated and reading real data.

The response envelope

Every response has the same four fields: Errors keep the same shape:
Check success rather than assuming a 200 means you got what you asked for.

When it doesn’t work

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.
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.
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.
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.
Last modified on August 2, 2026