Developers
Reference · v1.0.0

QuoSuite 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 QuoSuite (ERP) — version v1, stable: any breaking change will open /api/public/v2 alongside, without touching existing integrations.

Authentication

A QuoSuite key (qss_…), created in Settings › API & Integrations: Authorization: Bearer <key> (or X-API-Key: <key>). Every response is sealed to the key's workspace. Recommended first call: GET /public/v1/quosuite/ping.

Scopes

resource:read / resource:write (write implies read), wildcards *:read / *:write. Resources: articles, stock, partners, sales, purchases, payments, payment_links, emails, expenses, pos, treasury, reports, rental, rental_bookings, rental_customers, rental_accounts, crm_leads, crm, projects, project_time, reference, webhooks, hr. payment_links, emails, rental_customers, hr: sensitive resources, never covered by a wildcard. A resource whose module is not in the subscription answers 403 API_MODULE_UNAVAILABLE.

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=-date,number, multi-value filters separated by commas, updatedSince for incremental sync. An unknown parameter is refused (400).
  • Large collections: cursor pagination — ?limit=100, then cursor=<pagination.nextCursor> with the same filters and the same sort: stable during the walk, constant cost, no totalItems. Cursor from other filters: 400 INVALID_CURSOR.
  • Dates: ISO 8601, UTC. Amounts: numbers in the currency's main unit, rounded to its precision; each document carries its currency and its exchangeRate to the workspace base currency (GET /tenant).
  • Language: ?lang=fr|en|ar or Accept-Language; default: workspace language. It applies to labels (statusLabel…), PDFs and error messages; never to codes.
  • Idempotency: creations accept Idempotency-Key (UUID v4 recommended); a retry with the same key replays the first response (Idempotent-Replayed: true), 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-QuoSuite-Signature: t=…,v1=HMAC-SHA256("{t}.{raw body}")), retried up to 8 times over ~45 h, logged (/webhooks/deliveries). Events and schemas: 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, 422 BUSINESS_RULE_VIOLATION, 429 quota, 503 unavailable.
  • Quotas: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After.

Business documents

One resource per kind: /sales/quotes, /sales/orders, /sales/delivery-notes, /sales/invoices, /sales/credit-notes, /purchases/orders, /purchases/receipts, /purchases/invoices. The ERP rules apply as they are (numbering, totals, modification safeguards, status transitions, stock).

Car rental

/car-rental/…: fleet, pricing groups and options, agencies, availability search with computed price, bookings (idempotent creation through the same journey as the rental website), agreements, invoice and PDF documents, rental customers, rental websites and published vehicles. The Car Rental module remains the source of truth: availability checked again under lock at write time, price recomputed on every call, statuses changed only by its own transitions.

Customer accounts (/car-rental/accounts/…, rental_accounts scope): registration, sign-in, forgotten password, driver profile and the signed-in customer’s bookings (X-Rental-Session) — the customer area of an external website, without opening other customers’ bookings.

Jetons QuoRent (qsr_…) : pour un site de location, un partenaire ou un comparateur, une clé pour le catalogue et l'espace client (module Car Rental requis). Les véhicules, agences, options, tarifs et devis sont disponibles avec rental:read. Les réservations et locations se lisent uniquement via /car-rental/accounts/me/…, avec une session client valide. Les listes globales, contrats internes, fiches clients et actions d'agence sont fermés, même avec un joker ou un ancien scope (403 API_KEY_WRONG_PERIMETER). Seul le webhook de disponibilité publique est disponible ; aucun événement de réservation.

CRM

/crm/…: leads (creation by a website form, qualification, conversion into an account, contact, ERP customer record and deal), accounts and contacts, pipelines and stages, deals (stages, win, loss, generated ERP quote), activities. Scopes crm_leads (leads only) and crm. Webhooks crm_lead.* and crm_deal.*.

Projects & Tasks

/projects/…: projects (team, columns, milestones), tasks and sub-tasks (status by column or category), time entries (same checks as on screen, frozen price) and timesheets. Scopes projects and project_time; the internal cost of time is never exposed. Webhooks project_task.* and project_timesheet.approved.

Rejected business rules of these two modules answer 422 BUSINESS_RULE_VIOLATION, their stable business code in detail.rule (PROJECT_TIME_OVERLAP, CRM_ACCOUNT_NOT_CLIENT…).

Generated from the QuoSuite API OpenAPI contract v1.0.0.