Sync the catalogue
Full import by cursor, incremental updates, stock, collections, withdrawals.
QuoShop — and the ERP behind it — is the source of truth for products, prices and stock. An external CMS keeps an up-to-date copy: a full import to start, incremental updates afterwards, webhooks for freshness. That is exactly what the WooCommerce and PrestaShop plugins do.
1. collections GET /collections → CMS categories
2. products (cursor) GET /products?limit=100[&cursor=…] → 100 products per page
3. stock GET /inventory?productIds=… → one call per page
4. changed products GET /products/{id} → descriptions, SEO, translations
5. end of a full import: withdraw the products QuoShop no longer lists1. Collections
GET/collections
curl 'https://quosuite.com/api/public/v1/quoshop/collections' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"Each collection has a stable slug (the one products reference in collections), a name in the requested language and translations for the others. source: CATEGORY: it mirrors an ERP article family.
2. Published products, by cursor
GET/products
curl 'https://quosuite.com/api/public/v1/quoshop/products?limit=100' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"Pass pagination.nextCursor back as is, with the same filters, until nextCursor: null. The list already gives the essentials: id, slug, sku, barcode, title, shortDescription, price, images, availability, collections, updatedAt.
3. Sellable stock
The list only announces a remainder below the low-stock threshold (like the storefront). The full figures come from /inventory (scope inventory:read), 100 products per call:
GET/inventory
curl 'https://quosuite.com/api/public/v1/quoshop/inventory?productIds=bbbbbbbb-0000-4000-8000-000000000001,bbbbbbbb-0000-4000-8000-000000000002' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"available = stock of the store’s warehouse − reservations of open orders, never negative; null for an article not tracked in stock (status: UNTRACKED, always orderable). It is an absolute value: replace, do not add.
4. The full product page
For a new or changed product, GET /products/{id} adds the long description (HTML), SEO and translations — the content in every store language:
curl 'https://quosuite.com/api/public/v1/quoshop/products/chaise-chene' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"Prices: price.amount (incl. tax) or amountExclTax (excl. tax) depending on how your CMS stores prices; a running promotion (onSale) becomes a strike-through price (compareAt) and a sale price (amount).
5. Increments and withdrawals
- Afterwards, only read what changed:
GET /products?limit=100&updatedSince=<start of the previous pass − 5 min>. The overlap is intended: a product seen twice is applied twice, with no effect. - Withdrawals: a product unpublished, removed from the store or whose article is archived in the ERP disappears from the list (and answers 404). An incremental pass does not see it: that is the job of the
product.unpublishedwebhook, and of a periodic full pass that withdraws from the CMS what QuoShop no longer lists. Set those products to draft rather than deleting them: past orders point to them.
6. Webhooks, for freshness
product.published, product.updated (product page or ERP price changed — data is the full page), product.unpublished, inventory.updated (the stock at delivery time, grouped when several movements follow each other). See Receive webhooks.