Scopes and perimeter
What a QuoShop key can read and write — and why it never reaches the internal ERP.
A QuoShop key carries scopes: resource:read or resource:write (write implies read), or the wildcards *:read / *:write. Every route requires a scope; without it, 403 API_INSUFFICIENT_SCOPE with detail.required.
| Resource | Covers | Read | Write | Module |
|---|---|---|---|---|
catalog | catalog:read | catalog:write | ECOMMERCE | |
inventory | inventory:read | — | ECOMMERCE | |
orders | orders:read | orders:write | ECOMMERCE | |
customers | customers:read | customers:write | ECOMMERCE | |
webhooks | Receiving endpoints, delivery log | webhooks:read | webhooks:write | ECOMMERCE |
The perimeter: the store, nothing else
A QuoShop key reaches the published catalogue, the orders, the buyers and the webhooks of the store. Never:
- an article that is unpublished, archived or deactivated in the ERP;
- a purchase price, a margin, another warehouse’s stock;
- an ERP customer, its identifiers, its internal notes;
- a buyer’s tracking token, a password.
Only the numbers of the documents issued for an order (sales order, invoice) leave the ERP. The customer file, the invoices and the rest of the ERP belong to the QuoSuite API, with a separate qss_… key.
By route
| Scope | Routes |
|---|---|
| (none) | GET /ping, GET /stores, GET /store |
catalog:read | GET /products, GET /products/{product}, GET /collections, GET /delivery-options |
inventory:read | GET /inventory, GET /products/{product}/inventory |
orders:read / orders:write | read orders / POST /orders, …/status, …/payments |
customers:read / customers:write | read buyers / POST /customers, PATCH /customers/{id} |
webhooks:read / webhooks:write | read the configuration and the log / declare, update, test, redeliver |
catalog:write exists in the scope catalogue but no route requires it in v1: merchant content is managed in QuoSuite.
Webhooks follow the scopes
You only subscribe to what you can read: order.* requires orders:read, inventory.updated requires inventory:read, product.* requires catalog:read. The check happens at subscription and at each delivery — a key that loses a scope stops receiving the matching events at once.
Recipes
| Integration | Scopes |
|---|---|
| Showcase site (display catalogue and availability) | catalog:read, inventory:read |
| WooCommerce / PrestaShop plugin | catalog:read, inventory:read, orders:write, webhooks:write (+ customers:write if the store refuses guest orders) |
| Shipping preparation tool | orders:write, webhooks:write |
| Mailing list sync | customers:read |
The subscription plan
The E-commerce module must be part of the workspace’s subscription: otherwise 403 API_MODULE_UNAVAILABLE on every route, and the screen does not offer to create a QuoShop key.