Permissions (scopes)
A key can do only what its permissions say. The store owner ticks them when the key is created, and they cannot be changed afterwards: for other permissions the owner creates a new key and revokes the old one.
Ask for the narrowest set that does the job. A request to an endpoint the key has no permission for gets 403 forbidden. The permissions of the key you hold are listed in key.scopes of GET /v1/store.
Read
Business data without personal data.
| Permission | Name in the panel | What it opens | Endpoints |
|---|---|---|---|
store:read | Store information | Store name, currency, languages, software version and licence end date. | Adds members to other answers (see the table below) |
products:read | Products | Products with prices and variants. Cost prices are never included. | GET /v1/productsGET /v1/products/{id} |
stock:read | Stock | Stock quantities by stock code (SKU). | GET /v1/stock |
orders:read | Orders | Orders with items, amounts, tax, status and shipment tracking; of the address only city and country. | GET /v1/ordersGET /v1/orders/{id}GET /v1/orders/{id}/tracking |
shipping:read | Shipping carriers | List of the active shipping carriers (code and name). | GET /v1/shipping/carriers |
Personal data
These permissions open names, addresses, e-mail addresses and phone numbers of the store's customers. The store panel shows them in a separate group with a data protection notice (GDPR, KVKK), and the owner should grant them only when there is a legal basis and a real need, for example issuing invoices. Requests that return personal data are logged before the answer is sent and have their own, lower limit of 20 requests a minute.
| Permission | Name in the panel | What it opens | Endpoints |
|---|---|---|---|
orders:billing | Billing details on orders | Name, address, company, tax office and tax number on orders (needed to issue invoices). | Adds members to other answers (see the table below) |
customers:read | Customers | Customer name, e-mail address, language, status and dates. | GET /v1/customersGET /v1/customers/{id} |
customers:contact | Customer contact details | Phone, addresses, tax details and marketing consent of customers; e-mail and phone on orders. | Adds members to other answers (see the table below) |
Changes
The five things a program can change, one permission each. Every change is written to the store's audit log with the key that made it, and every write needs an Idempotency-Key. The store panel shows these permissions in a group of their own with a warning, and the owner should tick one only for a program that really has to change that thing.
| Permission | Name in the panel | What it opens | Endpoints |
|---|---|---|---|
stock:write | Update stock | Set or adjust stock quantities by stock code (SKU). Nothing else of a product can be changed. | PATCH /v1/stock |
orders:shipment | Mark orders as shipped | Write the carrier and tracking number of an order that is being prepared and is paid or payable on delivery and set it to “Shipped”. No other status can be changed. | POST /v1/orders/{id}/shipment |
orders:reference | Write external document numbers | Note the document number another program keeps for an order (for example the invoice number of your accounting program). | PUT /v1/orders/{id}/reference |
prices:write | Change prices | Set the price and the sale price of products and variants by stock code. Changes appear in the history of the price manager and can be undone there. Only an administrator of the store can give a key this permission. | PATCH /v1/prices |
products:write | Create products (as drafts) | Create simple products without images or variants. They are always saved as drafts; you publish them in the panel. | POST /v1/products |
prices:write stands apart: only an administrator of the store can give it to a key, the same rule the panel has for its own price manager. Prices written through the API are held to a guard against runaway changes, and each change is listed in the history of the price manager, where the owner can undo it.
The permissions are deliberately narrow. products:write creates drafts and nothing else: it cannot publish, change or delete a product and takes no images or variants. prices:write changes the price and the sale price and no other member of a product. Neither one opens the read endpoints: a program that also wants to look products up needs products:read.
Which fields need an extra permission
An order read with orders:read alone carries no personal data: amounts, lines, statuses, and of the address only city and country. The other permissions add members to the same answer; without them those members are simply absent. The same holds for customers and for the store answer.
| Object | Members | Returned only with |
|---|---|---|
Store | software_version, license_expires_at | store:read |
Order | shipping.name, shipping.address, shipping.district, shipping.postal_code, shipping.subdivision_code, billing.* | orders:billing |
Order | customer_id | customers:read or customers:contact |
Order | contact.* | customers:contact |
Customer | phone, marketing_consent, addresses[] | customers:contact |
What no permission opens: cost prices, payment provider references, internal notes, passwords, and anything about the store's administrators. Customers cannot be searched by e-mail address or any other personal value.
Typical sets
| Program | Permissions |
|---|---|
| Sales report, dashboard | orders:read, products:read |
| Accounting (invoices) | orders:read, orders:billing, orders:reference |
| Warehouse | stock:read, stock:write, optionally products:read |
| Prices from an accounting or ERP program | products:read, prices:write |
| Product-information system (new products) | products:write, optionally products:read |
| Shipping | orders:read, orders:billing (delivery name and address), shipping:read, orders:shipment |