Flavours Partner API
Integrations

Scopes

The nine scopes an integration can hold, and their enforcement status.

A scope is a permission. You choose the scopes of an integration when you create it, and you can change them later. The selected scopes are stored with the integration. Enforcement per endpoint is announced on that endpoint's page and in the Changelog.

ScopeName in the web appMeaningEnforced on endpoints
market.readView market infoRead information about the market.Not yet
branches.readView branchesRead the market's branches.Not yet
menu.readView menuRead menu data.Not yet
menu.writeManage menuChange menu data.Not yet
orders.readView ordersRead orders.Not yet
orders.writeManage ordersChange orders.Not yet
customers.readView customersRead customers.Not yet
inventory.readView inventoryRead inventory.Not yet
reports.readView reportsRead reports.Not yet

"Not yet" means no endpoint checks that scope today, because no endpoint accepts an integration token. See Overview.

Rules

  • Scope keys are fixed. A request that contains an unknown key, or the same key twice, is rejected with 422.
  • An integration may hold no scopes. It is created that way if you send none. Such an integration is granted nothing.
  • A read scope does not grant the matching write scope, and the reverse.
  • Editing scopes replaces the whole list and does not change the client secret.
  • Removing a scope immediately revokes every access token already issued to the integration, so the client must request a new token. Adding scopes keeps issued tokens valid.

Grant the smallest set the system needs. See Security best practices.

On this page