Create the key
1
Open Integrations and click New key
Only the chain owner sees Integrations in the menu. Give it a Name that identifies the system, such as “Downtown store ERP”.
2
Choose the units
All units, including future ones, for the chain’s central system, or Selected units, for a partner that serves only some shops. A unit outside the list doesn’t exist for the key: the API answers 404.
3
Tick the permissions
Every key has
view. The others follow the dashboard permissions (see the table below).4
Set the token expiration, if you want
Token expiration is optional. An expired token answers 401 until you issue another one.
5
Copy the token
When you click Create key, the Key token dialog shows the token only once. Copy it into your system’s secret store before clicking Done. If you lose it, issue a new token and revoke the old one.
Use the token
Send the token in theAuthorization header of every request, and ask for JSON in Accept:
<id>|na_.... Send it whole, including the vertical bar.
What each response means
Rotate the token without downtime
A key accepts up to two active tokens at the same time, so the rotation has no window without access.1
Issue the new token
In Integrations, open the key (View details) and click Issue token. Copy it: it is also shown only once.
2
Update your system
Replace the token in your secret store and confirm the calls still answer 200.
3
Revoke the old token
In the Tokens table, use Revoke token on the old one. A system still using it loses access right away.
Revoke the key
Revoke key disables every token of the key right away. The key stays in the list as Revoked, for history, and cannot be reactivated: create another one.Last used shows the most recent call among the key’s active tokens. A revoked token’s use no longer counts, and a newly issued token only shows up after its first call.