Access scopes
An app can do only what its merchant approved, and it approves scopes: one word per kind of thing, to read or to write. They are the same words Kaladan uses for staff permissions, so what an app asks for, what a merchant sees on the approval page and what the Admin API enforces are one list.
How scopes work
Section titled “How scopes work”- Declared on a version.
requestedScopeson an app version is the whole list. There is no asking for more at runtime: publish a new version, and each merchant re-approves it. - Checked per field. Every Admin API field names the scopes it needs. A field that needs two needs both.
- Refused whole. A query touching one field outside the grant is refused
with
SCOPE_ESCALATIONbefore anything runs, andmissinglists which scope each field needed. - Write includes read, for the same resource only.
WRITE_INVENTORYalone satisfies a field that needsREAD_INVENTORY. Nothing reaches across resources:WRITE_ORDERSreads no customers. - Ask for the least you need. Every scope is shown to the merchant in plain words, and an app asking for its customers when it syncs stock will be installed less.
The scopes
Section titled “The scopes”| Area | Read | Write |
|---|---|---|
| Products and variants | READ_PRODUCTS | WRITE_PRODUCTS |
| Stock | READ_INVENTORY | WRITE_INVENTORY |
| Locations | READ_LOCATIONS | WRITE_LOCATIONS |
| Delivery and shipping | READ_SHIPPING | WRITE_SHIPPING |
| Orders | READ_ORDERS | WRITE_ORDERS |
| Draft orders | READ_DRAFT_ORDERS | WRITE_DRAFT_ORDERS |
| Checkouts | READ_CHECKOUTS | WRITE_CHECKOUTS |
| Fulfilments | READ_FULFILLMENTS | WRITE_FULFILLMENTS |
| Customers | READ_CUSTOMERS | WRITE_CUSTOMERS |
| Discounts | READ_DISCOUNTS | WRITE_DISCOUNTS |
| Price lists | READ_PRICE_LISTS | WRITE_PRICE_LISTS |
| Payments and refunds | READ_PAYMENTS | WRITE_PAYMENTS |
| Pages, blogs and menus | READ_CONTENT | WRITE_CONTENT |
| Themes | READ_THEMES | WRITE_THEMES |
| Sales channels | READ_CHANNELS | WRITE_CHANNELS |
| Custom data (metaobjects) | READ_METAOBJECTS | WRITE_METAOBJECTS |
| Files | READ_FILES | WRITE_FILES |
| Tax | READ_TAX | WRITE_TAX |
| Payouts | READ_PAYOUTS | — |
| Marketing | READ_MARKETING | — |
| Analytics | READ_ANALYTICS | — |
| Shop settings | READ_SHOP_SETTINGS | — |
| Staff | READ_STAFF | — |
| Installed apps | READ_APPS | — |
| Audit log | READ_AUDIT_LOG | — |
What no app can hold
Section titled “What no app can hold”Some permissions stay with the merchant’s own people. No app can change billing, installed apps, staff, or payouts, and changing shop settings and marketing is held back for now. Their write scopes do not exist in the list above, so no version can declare them.
Buyers’ personal data
Section titled “Buyers’ personal data”Webhook payloads and Admin API answers are cut to the grant: a field the app may
not read is absent, not null. A buyer’s phone number in particular reaches
only an app holding READ_CUSTOMERS. Every app gets a stable
phoneFingerprint instead, so it can recognise a returning buyer without being
sent their number.