Developers
Reference · v1.0.0

QuoShop API reference

Every endpoint, its parameters, schemas, examples and errors — generated from the OpenAPI contract.

Download Postman collection

The entire API, with variables and scripts. Import into Postman, then set baseUrl and apiKey (and storeId for QuoShop when needed).

Resources

Contract conventions

Public REST API of QuoShop (online store) — version v1, stable: any breaking change will open /api/public/v2 alongside, without touching existing integrations. It connects the store to a CMS, a plugin or a third-party website: published catalogue, stock, orders, customers, webhooks.

Authentication

A QuoShop key (qsh_…), created in Settings › API & Integrations: Authorization: Bearer <key> (or X-API-Key: <key>). A QuoSuite (ERP) key is refused here (403 API_KEY_WRONG_PERIMETER), and vice versa. Recommended first call: GET /public/v1/quoshop/ping, then GET /store.

Store

A workspace can hold several stores: select yours with the X-QuoShop-Store header (identifier or slug, see GET /stores). Optional when the workspace has only one.

Scopes

resource:read / resource:write (write implies read), wildcards *:read / *:write. Resources: catalog, inventory, orders, customers, webhooks. The store module must be included in the subscription (403 API_MODULE_UNAVAILABLE).

Integration journeys

1. Fetch the catalogue

GET /products?page=1&pageSize=100&lang=fr          → published products, prices, availability
GET /products?updatedSince=2026-10-01T00:00:00Z    → only what changed
GET /collections                                   → store categories
GET /inventory?skus=ART-0042,ART-0043              → sellable stock

2. Create an order — prices are the catalogue’s, never supplied:

POST /orders
{ "externalId": "10293", "source": "woocommerce", "customer": { "email": "client@exemple.tn", "name": "Sarra Ben Ali" }, "lines": [ { "sku": "ART-0042", "quantity": 2 } ], "shippingAddress": { "line1": "12 rue de la Liberté", "city": "Tunis", "country": "TN" }, "delivery": { "methodId": "…" }, "payment": { "status": "PAID", "method": "CARD", "reference": "pi_3QxYz" }, "expectedTotal": 245 }

The order is posted to the ERP by the same gateway as the storefront: ERP customer found by email, sales document for the full amount, stock, payment matched. (source, externalId) is the idempotency key guaranteed by the database: replaying the same request returns the existing order (Idempotent-Replayed: true), never a second invoice.

3. Track its status

GET  /orders/WEB-2026-000042                       → status, payment, ERP documents
GET  /orders?updatedSince=…&sort=updatedAt         → incremental tracking
POST /orders/WEB-2026-000042/status { "status": "SHIPPED" }   → shipping by the CMS

…or receive order.created, order.status_changed, inventory.updated by webhook (/webhooks).

Conventions

  • Response: { "success": true, "data": …, "timestamp": … }.
  • Lists: data = { items, pagination: { page, pageSize, totalItems, totalPages, hasMore } }, page / pageSize (25 by default, 100 at most), sort sort=-placedAt, comma-separated multi-value filters. An unknown parameter is refused (400).
  • Large collections: cursor pagination (/products, /orders, /customers) — ?limit=100, then cursor=<pagination.nextCursor> with the same filters and the same sort: stable during the pass, constant cost. Cursor from other filters: 400 INVALID_CURSOR.
  • Amounts: numbers incl. tax in the store’s currency (GET /store), rounded to its precision; the amount excl. tax is returned alongside (amountExclTax, totalExclTax). The end customer pays and always sees the full amount.
  • Language: ?lang= or Accept-Language, among the store’s languages (merchant content); code labels in fr, en or ar. Codes never change.
  • Dates: ISO 8601, UTC.
  • Idempotency: creations accept Idempotency-Key (UUID v4 recommended); a retry replays the first response, including across instances: never two creations.
  • Versions: Api-Version: v1 on every response; v1 only receives additions (ignore an unknown field). A deprecated route carries Deprecation / Sunset / Link, then answers 410 ENDPOINT_RETIRED.
  • Webhooks: POST /webhooks/endpoints declares a receiving endpoint (secret returned once); each delivery is signed (X-QuoShop-Signature: t=…,v1=HMAC-SHA256("{t}.{raw body}")), retried up to 8 times over ~45 h, logged (/webhooks/deliveries). Events and schemas: the x-webhooks extension of this document.
  • Errors: { "success": false, "error": { "code", "message", "detail" }, "requestId" }. Test code, never the message. 400 VALIDATION_FAILED, 401 key, 403 permissions, 404 NOT_FOUND, 409 CONFLICT (stock, price changed, external reference already used), 422 BUSINESS_RULE_VIOLATION, 429 quota, 503 unavailability.
  • Quotas: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After.
  • CORS: a call from a browser is only accepted from the domains declared on the key; a key without a domain is reserved for server-to-server calls.

Generated from the QuoShop API OpenAPI contract v1.0.0.