نقلة
Docs menuScopes

Scopes

العربية

Each scope opens one capability. These are the scopes available today, with what each allows and the line the merchant reads at consent.

How scopes work

  • Everything is closed by default: your app reaches only what the merchant granted.
  • Reading and writing are separate scopes, one per resource.
  • A sensitive scope covers personal data, money, or an act in the real world; it gets two reviewers.
  • The merchant reads the line of each scope below, with the reason you gave, before accepting.

Scopes available today

A sensitive scope gets two reviewers. Adding a scope to a published app needs review, then each store's approval again.

Asking for scopes

List them in the authorize address, separated by spaces: scope=store.read%20orders.read. A scope not registered for your app is refused with invalid_scope.

Adding a scope later

Add it in the app form; a published app goes through review again. Then each store must accept again, and you receive app.scopes_updated when one does.

A missing scope

A request outside the granted scopes gets 403 insufficient_scope, with the scope it needs in required.

403 · JSON
{
    "error": "insufficient_scope",
    "message": "The merchant has not granted this permission to the app.",
    "required": "orders.read"
}

Version v1.0.0 Changelog Service status openapi-v1.json Support