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
-
store.read- Allows
-
GET /storeGET /installation/configGET /usagePOST /usage/recordsPOST /exportsGET /exports/{id}GET /exports/{id}/file - Consent text, Arabic
- قراءة بيانات المتجر الأساسية: الاسم والعملة واللغة
- Consent text, English
- Read basic store details: name, currency and language
-
products.read- Allows
-
GET /productsGET /products/{id}inventory.adjustedproduct.createdproduct.updatedproduct.deleted - Consent text, Arabic
- قراءة المنتجات وأسعارها وكمياتها
- Consent text, English
- Read products, their prices and quantities
-
stock.read- Allows
-
GET /locationsGET /inventory - Consent text, Arabic
- قراءة كميات المخزون في كل مستودع
- Consent text, English
- Read stock quantities in every warehouse
-
stock.writeSensitive Action- Allows
-
POST /inventory/counts - Consent text, Arabic
- تعديل كميات المخزون (تُسجَّل في دفتر المخزون)
- Consent text, English
- Change stock quantities (recorded in the stock ledger)
-
orders.read- Allows
-
GET /ordersGET /orders/{id}GET /orders/{id}/refundsGET /returnsorder.createdorder.paidorder.shippedorder.cancelledorder.refundedreturn.createdorder.updated - Consent text, Arabic
- قراءة الطلبات وحالاتها ومبالغها
- Consent text, English
- Read orders, their statuses and amounts
-
customers.readSensitive- Consent text, Arabic
- قراءة بيانات العملاء: الاسم والبريد الإلكتروني ورقم الجوال
- Consent text, English
- Read customer details: name, email and mobile number
-
shipping.read- Allows
-
GET /shipments - Consent text, Arabic
- قراءة شحنات الطلبات: شركة الشحن ورقم البوليصة والحالة
- Consent text, English
- Read order shipments: carrier, waybill number and status
-
shipping.ordersSensitive- Allows
-
GET /orders/{id}/shipping - Consent text, Arabic
- قراءة اسم المستلم وعنوانه ومبلغ الدفع عند الاستلام للطلبات التي يرسلها المتجر إلى التطبيق لشحنها
- Consent text, English
- Read the recipient, address and cash-on-delivery amount of the orders the store sends to this app for shipping
-
fulfillment.ordersSensitive Action- Consent text, Arabic
- استلام الطلبات التي يرسلها المتجر إلى مستودعه وتجهيزها وشحنها، والإبلاغ عن كل مرحلة
- Consent text, English
- Take the orders the store sends to its warehouse, prepare and ship them, and report each step
-
shipments.writeSensitive Action- Allows
-
POST /orders/{id}/shipmentsPOST /shipments/{id}/eventsPOST /shipments/{id}/cancelPOST /shipments/{id}/codPOST /returns/{id}/shipmentsPOST /shipping/rates - Consent text, Arabic
- تسجيل البوليصة والملصق ومراحل التتبع للطلبات التي يرسلها المتجر إلى التطبيق، والرد على طلبات الإلغاء
- Consent text, English
- Record the waybill, label and tracking steps of the orders the store sends to this app, and answer cancel requests
-
waybills.createSensitive Action- Consent text, Arabic
- إصدار بوالص الشحن للطلبات عبر شركات الشحن في نقلة (تُخصم تكلفتها من رصيد المتجر)
- Consent text, English
- Issue shipping waybills for orders through Naqllah carriers (the cost is taken from the store balance)
-
payments.readSensitive- Consent text, Arabic
- قراءة المدفوعات والمبالغ المستلمة
- Consent text, English
- Read payments and amounts received
-
invoices.read- Allows
-
GET /orders/{id}/invoice - Consent text, Arabic
- قراءة الفواتير الصادرة للطلبات: الرقم والمبالغ ورمز QR إن وُجد ورابط التنزيل
- Consent text, English
- Read the invoices issued for orders: number, amounts, the QR code when there is one and a download link
-
discounts.read- Consent text, Arabic
- قراءة أكواد الخصم والعروض
- Consent text, English
- Read discount codes and offers
-
discounts.writeSensitive Action- Consent text, Arabic
- إنشاء أكواد الخصم والعروض وتعديلها
- Consent text, English
- Create and edit discount codes and offers
-
webhooks.read- Allows
-
Receiving notifications
order.createdorder.paidorder.shippedorder.cancelledinventory.adjustedorder.refundedreturn.createdorder.updatedproduct.createdproduct.updatedproduct.deletedcustomer.createdcart.abandoned - Consent text, Arabic
- استلام إشعارات فورية بأحداث المتجر التي تسمح بها الصلاحيات السابقة
- Consent text, English
- Receive instant notifications of store events allowed by the permissions above
-
desk.sections- Allows
- Receiving notifications
- Consent text, Arabic
- إضافة صفحات التطبيق إلى قائمة لوحة التحكم
- Consent text, English
- Add the app's pages to the dashboard menu
-
storefront.scriptsSensitive- Allows
- Receiving notifications
- Consent text, Arabic
- إضافة سكربت تمت مراجعته إلى صفحات المتجر (لا يعمل في الدفع أو تسجيل الدخول)
- Consent text, English
- Add a reviewed script to the store pages (never checkout, payment or sign-in pages)
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.
{
"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