Scopes
Which permissions a token can have and what they allow.
A token only carries the scopes the restaurateur agreed to at consent.
| Scope | Meaning |
|---|---|
account:read | Read the business, locations and your own connection (GET /v1/me, GET /v1/locations) |
integrations:read | Read the status of integrations |
integrations:write | Hand over a provider's credentials, map branches, disconnect |
Rules#
- Names follow the pattern
resource:readandresource:write.writeincludesread. - Only a client that Kiosa has listed and activated as a partner gets any scope. A client that is not listed gets no scope at all, not even a read scope.
integrations:writeonly covers the providers in the partner's approval.- Later data scopes, such as
revenue:read, follow the same pattern. Each of them needs its own consent from the restaurateur. - If a scope is missing, Kiosa answers
403with the codeinsufficient_scope.
Which endpoint needs which scope#
| Method and path | Scope |
|---|---|
GET /v1/me | account:read |
GET /v1/locations | account:read |
GET /v1/integrations | integrations:read |
GET /v1/integrations/ordio | integrations:read |
GET /v1/integrations/ordio/branches | integrations:read |
PUT /v1/integrations/ordio | integrations:write |
PUT /v1/integrations/ordio/branch-mappings | integrations:write |
DELETE /v1/integrations/ordio | integrations:write |