Formats and conventions
Response envelope, dates, amounts and currencies, language of labels and PDFs.
The API follows the same conventions on every route: once read here, they apply everywhere.
Requests
- HTTPS only, JSON bodies (
Content-Type: application/json), UTF-8 encoded. - Routes under
/api/public/v1/quosuite; resource identifiers are UUIDs. - An unknown field is refused (400
VALIDATION_FAILED,detail.violations), as is an unknown query parameter: a typo in a filter must never return “everything”.
Responses
A success always carries the same envelope, the resource in data:
{ "success": true, "data": { "id": "…", "number": "FAC-2026-0042" }, "timestamp": "2026-10-02T09:15:00.000Z" }A list returns data.items and data.pagination; short reference lists (currencies, taxes, warehouses…) return data.items alone. Errors have their own shape, single as well — see Errors.
Every response also carries:
| Header | Meaning |
|---|---|
Api-Version | v1 — the version that served the request |
X-Request-Id | correlation identifier, to quote to support |
X-RateLimit-* | quota state (see Rate limits) |
Content-Language | language of the returned labels |
Dates
ISO 8601, in UTC (2026-10-02T09:15:00.000Z). As input, a plain date (2026-07-16) or a full timestamp. In a filter, dateTo covers the whole day.
Amounts and currencies
- Amounts are numbers in the currency’s main unit, rounded to the currency’s precision: 2 decimals for the euro, 3 for the Tunisian dinar. Unit prices and quantities: 4 decimals at most.
- Every document, payment or flow carries its
currency(ISO 4217) and, for documents and payments, itsexchangeRateto the workspace base currency — frozen on creation. - The base currency and its format are read from
GET /tenant(money). - Creating a document in a currency other than the base currency requires the plan’s Multi-currency option (402
FEATURE_NOT_INCLUDEDotherwise).
Codes and labels
The API returns stable codes (status: "PAID", method: "TRANSFER") and, next to them, their translated labels (statusLabel: "Paid"). Always test the codes: labels follow the requested language and may change.
Language
The language is chosen with ?lang=fr|en|ar, otherwise with the Accept-Language header, otherwise it is the workspace’s. It applies:
- to the labels returned next to codes (
typeLabel,statusLabel…); - to the documents’ PDF (Arabic is rendered mirrored, right to left);
- to error messages.
Never to codes. The messages of ERP business rules only exist in French: in another language, the API returns the code’s generic message and puts the original cause in detail.reason.
Compatibility
v1 only receives additions: new fields, filters, routes, events, error codes. Ignore a field you do not know rather than refusing it — see Versioning and deprecations.