Developers
Reference · Purchases

Invoices

List — Purchases — Invoices #

GET/api/public/v1/quosuite/purchases/invoices
Scope : purchases:readlistPurchaseInvoices

Paginated list of purchase_invoice documents, filterable by status, partner, period, due date, currency, number or external reference. Allowed sort: date, dueDate, number, totalInclTax, createdAt, updatedAt (default -date).

Parameters

  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar
  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description. A final criterion on id makes pagination stable.

  • updatedSincestringquery

    Only returns items created or updated since this instant (ISO 8601, inclusive). With sort=updatedAt, this is the recommended form of an incremental sync.

  • cursorstringquery

    Cursor pagination: nextCursor of the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • statusstring[]query

    Statuses, comma-separated.

  • partnerIdstring (uuid)query
  • dateFromstringquery
  • dateTostringquery
  • dueBeforestringquery

    Due date at the latest (ISO 8601).

  • currencystringquery
  • numberstringquery

    Exact number.

  • referencestringquery

    Exact external reference.

Response 200application/json

Success.

  • itemsDocumentDto[]required
    DocumentDto details
  • paginationPaginationDtorequired
    PaginationDto details

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "bc8fd2ea-7fc8-491a-81eb-9717faef4495",
        "kind": "invoice",
        "type": "FACTURE",
        "typeLabel": "Facture",
        "number": "FAC-2026-0042",
        "status": "VALIDATED",
        "statusLabel": "Validé",
        "date": "2026-07-16T00:00:00.000Z",
        "dueDate": "2026-08-16T00:00:00.000Z",
        "partner": {
          "id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
          "code": "CLI-0042",
          "name": "Société Exemple SARL"
        },
        "warehouseId": "80f8880b-5de7-44aa-8284-e5f8bf0a0971",
        "currency": "EUR",
        "exchangeRate": 1,
        "totals": {
          "totalExclTax": 1000,
          "totalVat": 190,
          "totalInclTax": 1191,
          "paidAmount": 500,
          "balanceDue": 691
        },
        "reference": "CMD-CLIENT-778",
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "2026-10-02T09:15:00.000Z",
        "modifiedAt": "2026-10-02T09:15:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 25,
      "totalItems": 132,
      "totalPages": 6,
      "limit": 100,
      "nextCursor": "c1.eyJzIjoiZGF0ZTpkZXNjLGlkOmFzYyIsImYiOiJ…",
      "hasMore": true
    }
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Create — Purchases — Invoices #

POST/api/public/v1/quosuite/purchases/invoices
Scope : purchases:writeIdempotentcreatePurchaseInvoice

Creates the document and its lines; the ERP computes number, totals, taxes, customer pricing and discounts (caps included). A line that references an article may omit label, price and VAT (taken from the article record).

Parameters

  • Idempotency-Keystringheader

    Idempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • partnerIdstring (uuid)required

    Customer (sale) or supplier (purchase).

  • numberstring

    Imposed number. Omitted: next number of the series. If provided, it must be free.

    e.g.FAC-2026-0042
  • datestring

    Document date (default: now).

    e.g.2026-07-16
  • dueDatestring
    e.g.2026-08-16
  • warehouseIdstring (uuid)

    Warehouse (required to deliver or receive).

  • currencystring

    Currency (ISO 4217). Default: workspace base currency. Another currency requires the plan's Multi-currency option (402 FEATURE_NOT_INCLUDED otherwise).

    e.g.EUR
  • exchangeRatenumber

    Rate to the base currency. Default: the workspace's rate of the day.

    e.g.3.35
  • referencestring

    External reference (customer order, integration id).

    e.g.CMD-CLIENT-778
  • notesstring

    Internal notes (not printed).

  • termsstring

    Printed terms (replace the workspace's).

  • globalDiscountDiscountInput

    Global discount, applied after line discounts.

    DiscountInput details
  • taxIdsstring[]

    Footer taxes (UUID, DOCUMENT scope). Omitted: those configured for this type; []: none.

  • statusstring

    Initial status. VALIDATED issues the document right away (loyalty, credit note credited to the account…).

    valuesDRAFTVALIDATEDdefault"DRAFT"
  • linesDocumentLineInput[]required
    min.1 itemsmax.500 items
    DocumentLineInput details
  • deliveryNoteIdsstring[]

    Sales invoice only: issued delivery notes of the same customer that the invoice takes over (grouped invoicing). They move to INVOICED.

Response 201application/json

Created.

  • idstring (uuid)required
  • kindstringrequired
    valuesquotesales_orderdelivery_noteinvoicecredit_notepurchase_ordergoods_receiptpurchase_invoice
  • typestringrequired

    Internal ERP type.

    valuesDEVISCOMMANDE_VENTEBON_LIVRAISONFACTUREAVOIR_CLIENTCOMMANDE_ACHATBON_RECEPTIONFACTURE_ACHATBON_SORTIEBON_RETOURORDRE_REPARATIONRESERVATION_LOCATIONCONTRAT_LOCATIONCLIENTBORDEREAU_REMISE
  • typeLabelstringrequired

    Type label, in the requested language.

    e.g.Facture
  • numberstringrequired
    e.g.FAC-2026-0042
  • statusstringrequired
    valuesDRAFTVALIDATEDSENTACCEPTEDREFUSEDDELIVEREDINVOICEDPARTIALLY_PAIDPAIDCANCELLEDEXPIREDCONVERTED
  • statusLabelstringrequired
    e.g.Validé
  • datestringrequired
    e.g.2026-07-16T00:00:00.000Z
  • dueDatestring | null
    e.g.2026-08-16T00:00:00.000Z
  • partnerPartnerRefDtorequired
    PartnerRefDto details
  • warehouseIdstring (uuid) | null
  • currencystringrequired

    Document currency (ISO 4217).

    e.g.EUR
  • exchangeRatenumberrequired

    Exchange rate to the workspace base currency, frozen on creation.

    e.g.1
  • totalsDocumentTotalsDtorequired
    DocumentTotalsDto details
  • referencestring | null

    External reference (customer order…).

    e.g.CMD-CLIENT-778
  • createdAtstringrequired
  • updatedAtstringrequired
  • modifiedAtstring | null

    Last content change outside draft (Phase 25 safeguards).

  • globalDiscountDiscountDtorequired
    DiscountDto details
  • notesstring | null
  • termsstring | null

    Terms printed on the document.

  • linesDocumentLineDto[]required
    DocumentLineDto details
  • taxesDocumentTaxDto[]required

    Footer taxes (stamp…), excluding line VAT.

    DocumentTaxDto details
  • paymentsDocumentPaymentDto[]required
    DocumentPaymentDto details
  • parentDocumentLinkDto | null

    Source document (conversion).

    DocumentLinkDto details
  • childrenDocumentLinkDto[]required

    Documents derived from this one (conversion).

    DocumentLinkDto details
  • deliveryNotesDocumentLinkDto[]required

    Delivery notes taken over by this invoice.

    DocumentLinkDto details
  • invoicesDocumentLinkDto[]required

    Invoices that take over this delivery note.

    DocumentLinkDto details
  • stockMovedbooleanrequired

    Has this document already moved stock?

    e.g.false

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

402PLAN_QUOTA_EXCEEDEDFEATURE_NOT_INCLUDEDMODULE_NOT_INCLUDED

Subscription plan limit or option (monthly document quota, multi-currency…).

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "partnerId": "1ab39567-3b57-46d6-8f0c-d0e080868279",
  "lines": [
    {
      "label": "Ordinateur portable 14\"",
      "quantity": 2,
      "unitPrice": 500,
      "vatRate": 19,
      "discount": {
        "value": 10
      }
    }
  ]
}'
Response example
{
  "success": true,
  "data": {
    "id": "ca10e95f-b0c2-41f6-84a4-f4aa0aead531",
    "kind": "invoice",
    "type": "FACTURE",
    "typeLabel": "Facture",
    "number": "FAC-2026-0042",
    "status": "VALIDATED",
    "statusLabel": "Validé",
    "date": "2026-07-16T00:00:00.000Z",
    "dueDate": "2026-08-16T00:00:00.000Z",
    "partner": {
      "id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
      "code": "CLI-0042",
      "name": "Société Exemple SARL"
    },
    "warehouseId": "8cd914d4-0b34-4308-865a-69752f35c45d",
    "currency": "EUR",
    "exchangeRate": 1,
    "totals": {
      "totalExclTax": 1000,
      "totalVat": 190,
      "totalInclTax": 1191,
      "paidAmount": 500,
      "balanceDue": 691
    },
    "reference": "CMD-CLIENT-778",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "modifiedAt": "2026-10-02T09:15:00.000Z",
    "globalDiscount": {
      "value": 10,
      "unit": "PCT",
      "percent": 10
    },
    "notes": null,
    "terms": null,
    "lines": [
      {
        "id": "4d3a4548-8e98-4bb6-8c52-c31940a4ebfd",
        "position": 0,
        "articleId": "ba517038-d0c9-48f0-8630-e2d12abb0db5",
        "articleReference": "ART-0001",
        "label": "Ordinateur portable 14\"",
        "quantity": 2,
        "unit": "U",
        "unitPrice": 500,
        "vatRate": 19,
        "discount": {
          "value": 10,
          "unit": "PCT",
          "percent": 10
        },
        "customerDiscountPercent": 0,
        "totalExclTax": 1000,
        "totalVat": 190,
        "totalInclTax": 1190,
        "isComment": false,
        "sourceDocumentId": "ebdec6d0-b240-4fe6-8019-9635538fa139"
      }
    ],
    "taxes": [
      {
        "taxId": "5f785876-9a77-4bc2-8f20-808b57f1ab95",
        "label": "Timbre fiscal",
        "computation": "PERCENTAGE",
        "rate": 1,
        "base": 1000,
        "amount": 1
      }
    ],
    "payments": [
      {
        "paymentId": "57d143d0-b381-48e6-8e82-e015068e1e79",
        "number": "REG-2026-0012",
        "date": "2026-10-02",
        "method": "TRANSFER",
        "amount": 500
      }
    ],
    "parent": {
      "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
      "kind": "delivery_note",
      "type": "DEVIS",
      "number": "BL-2026-0007",
      "status": "DRAFT"
    },
    "children": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "deliveryNotes": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "invoices": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "stockMoved": false
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Get — Purchases — Invoices #

GET/api/public/v1/quosuite/purchases/invoices/{id}
Scope : purchases:readgetPurchaseInvoice

Full document: lines, footer taxes, allocated payments, linked documents (origin, conversions, delivery notes taken over).

Parameters

  • idstring (uuid)pathrequired

    Document identifier.

  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar

Response 200application/json

Success.

  • idstring (uuid)required
  • kindstringrequired
    valuesquotesales_orderdelivery_noteinvoicecredit_notepurchase_ordergoods_receiptpurchase_invoice
  • typestringrequired

    Internal ERP type.

    valuesDEVISCOMMANDE_VENTEBON_LIVRAISONFACTUREAVOIR_CLIENTCOMMANDE_ACHATBON_RECEPTIONFACTURE_ACHATBON_SORTIEBON_RETOURORDRE_REPARATIONRESERVATION_LOCATIONCONTRAT_LOCATIONCLIENTBORDEREAU_REMISE
  • typeLabelstringrequired

    Type label, in the requested language.

    e.g.Facture
  • numberstringrequired
    e.g.FAC-2026-0042
  • statusstringrequired
    valuesDRAFTVALIDATEDSENTACCEPTEDREFUSEDDELIVEREDINVOICEDPARTIALLY_PAIDPAIDCANCELLEDEXPIREDCONVERTED
  • statusLabelstringrequired
    e.g.Validé
  • datestringrequired
    e.g.2026-07-16T00:00:00.000Z
  • dueDatestring | null
    e.g.2026-08-16T00:00:00.000Z
  • partnerPartnerRefDtorequired
    PartnerRefDto details
  • warehouseIdstring (uuid) | null
  • currencystringrequired

    Document currency (ISO 4217).

    e.g.EUR
  • exchangeRatenumberrequired

    Exchange rate to the workspace base currency, frozen on creation.

    e.g.1
  • totalsDocumentTotalsDtorequired
    DocumentTotalsDto details
  • referencestring | null

    External reference (customer order…).

    e.g.CMD-CLIENT-778
  • createdAtstringrequired
  • updatedAtstringrequired
  • modifiedAtstring | null

    Last content change outside draft (Phase 25 safeguards).

  • globalDiscountDiscountDtorequired
    DiscountDto details
  • notesstring | null
  • termsstring | null

    Terms printed on the document.

  • linesDocumentLineDto[]required
    DocumentLineDto details
  • taxesDocumentTaxDto[]required

    Footer taxes (stamp…), excluding line VAT.

    DocumentTaxDto details
  • paymentsDocumentPaymentDto[]required
    DocumentPaymentDto details
  • parentDocumentLinkDto | null

    Source document (conversion).

    DocumentLinkDto details
  • childrenDocumentLinkDto[]required

    Documents derived from this one (conversion).

    DocumentLinkDto details
  • deliveryNotesDocumentLinkDto[]required

    Delivery notes taken over by this invoice.

    DocumentLinkDto details
  • invoicesDocumentLinkDto[]required

    Invoices that take over this delivery note.

    DocumentLinkDto details
  • stockMovedbooleanrequired

    Has this document already moved stock?

    e.g.false

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "ca10e95f-b0c2-41f6-84a4-f4aa0aead531",
    "kind": "invoice",
    "type": "FACTURE",
    "typeLabel": "Facture",
    "number": "FAC-2026-0042",
    "status": "VALIDATED",
    "statusLabel": "Validé",
    "date": "2026-07-16T00:00:00.000Z",
    "dueDate": "2026-08-16T00:00:00.000Z",
    "partner": {
      "id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
      "code": "CLI-0042",
      "name": "Société Exemple SARL"
    },
    "warehouseId": "8cd914d4-0b34-4308-865a-69752f35c45d",
    "currency": "EUR",
    "exchangeRate": 1,
    "totals": {
      "totalExclTax": 1000,
      "totalVat": 190,
      "totalInclTax": 1191,
      "paidAmount": 500,
      "balanceDue": 691
    },
    "reference": "CMD-CLIENT-778",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "modifiedAt": "2026-10-02T09:15:00.000Z",
    "globalDiscount": {
      "value": 10,
      "unit": "PCT",
      "percent": 10
    },
    "notes": null,
    "terms": null,
    "lines": [
      {
        "id": "4d3a4548-8e98-4bb6-8c52-c31940a4ebfd",
        "position": 0,
        "articleId": "ba517038-d0c9-48f0-8630-e2d12abb0db5",
        "articleReference": "ART-0001",
        "label": "Ordinateur portable 14\"",
        "quantity": 2,
        "unit": "U",
        "unitPrice": 500,
        "vatRate": 19,
        "discount": {
          "value": 10,
          "unit": "PCT",
          "percent": 10
        },
        "customerDiscountPercent": 0,
        "totalExclTax": 1000,
        "totalVat": 190,
        "totalInclTax": 1190,
        "isComment": false,
        "sourceDocumentId": "ebdec6d0-b240-4fe6-8019-9635538fa139"
      }
    ],
    "taxes": [
      {
        "taxId": "5f785876-9a77-4bc2-8f20-808b57f1ab95",
        "label": "Timbre fiscal",
        "computation": "PERCENTAGE",
        "rate": 1,
        "base": 1000,
        "amount": 1
      }
    ],
    "payments": [
      {
        "paymentId": "57d143d0-b381-48e6-8e82-e015068e1e79",
        "number": "REG-2026-0012",
        "date": "2026-10-02",
        "method": "TRANSFER",
        "amount": 500
      }
    ],
    "parent": {
      "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
      "kind": "delivery_note",
      "type": "DEVIS",
      "number": "BL-2026-0007",
      "status": "DRAFT"
    },
    "children": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "deliveryNotes": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "invoices": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "stockMoved": false
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Update — Purchases — Invoices #

PATCH/api/public/v1/quosuite/purchases/invoices/{id}
Scope : purchases:writeupdatePurchaseInvoice

Updates the header and, if lines is provided, replaces all the lines. ERP safeguards: a cancelled document can no longer be modified; an already paid invoice keeps its amounts (use a credit note); a document that already moved stock is corrected through corrective movements; any change outside draft is timestamped and audited.

Parameters

  • idstring (uuid)pathrequired

    Document identifier.

Request body application/json

  • partnerIdstring (uuid)

    Customer (sale) or supplier (purchase).

  • datestring

    Document date (default: now).

    e.g.2026-07-16
  • dueDatestring
    e.g.2026-08-16
  • warehouseIdstring (uuid)

    Warehouse (required to deliver or receive).

  • currencystring

    Currency (ISO 4217). Default: workspace base currency. Another currency requires the plan's Multi-currency option (402 FEATURE_NOT_INCLUDED otherwise).

    e.g.EUR
  • exchangeRatenumber

    Rate to the base currency. Default: the workspace's rate of the day.

    e.g.3.35
  • referencestring

    External reference (customer order, integration id).

    e.g.CMD-CLIENT-778
  • notesstring

    Internal notes (not printed).

  • termsstring

    Printed terms (replace the workspace's).

  • globalDiscountDiscountInput

    Global discount, applied after line discounts.

    DiscountInput details
  • taxIdsstring[]

    Footer taxes (UUID, DOCUMENT scope). Omitted: those configured for this type; []: none.

  • linesDocumentLineInput[]
    min.1 itemsmax.500 items
    DocumentLineInput details
  • deliveryNoteIdsstring[]

    Sales invoice only: issued delivery notes of the same customer that the invoice takes over (grouped invoicing). They move to INVOICED.

Response 200application/json

Success.

  • idstring (uuid)required
  • kindstringrequired
    valuesquotesales_orderdelivery_noteinvoicecredit_notepurchase_ordergoods_receiptpurchase_invoice
  • typestringrequired

    Internal ERP type.

    valuesDEVISCOMMANDE_VENTEBON_LIVRAISONFACTUREAVOIR_CLIENTCOMMANDE_ACHATBON_RECEPTIONFACTURE_ACHATBON_SORTIEBON_RETOURORDRE_REPARATIONRESERVATION_LOCATIONCONTRAT_LOCATIONCLIENTBORDEREAU_REMISE
  • typeLabelstringrequired

    Type label, in the requested language.

    e.g.Facture
  • numberstringrequired
    e.g.FAC-2026-0042
  • statusstringrequired
    valuesDRAFTVALIDATEDSENTACCEPTEDREFUSEDDELIVEREDINVOICEDPARTIALLY_PAIDPAIDCANCELLEDEXPIREDCONVERTED
  • statusLabelstringrequired
    e.g.Validé
  • datestringrequired
    e.g.2026-07-16T00:00:00.000Z
  • dueDatestring | null
    e.g.2026-08-16T00:00:00.000Z
  • partnerPartnerRefDtorequired
    PartnerRefDto details
  • warehouseIdstring (uuid) | null
  • currencystringrequired

    Document currency (ISO 4217).

    e.g.EUR
  • exchangeRatenumberrequired

    Exchange rate to the workspace base currency, frozen on creation.

    e.g.1
  • totalsDocumentTotalsDtorequired
    DocumentTotalsDto details
  • referencestring | null

    External reference (customer order…).

    e.g.CMD-CLIENT-778
  • createdAtstringrequired
  • updatedAtstringrequired
  • modifiedAtstring | null

    Last content change outside draft (Phase 25 safeguards).

  • globalDiscountDiscountDtorequired
    DiscountDto details
  • notesstring | null
  • termsstring | null

    Terms printed on the document.

  • linesDocumentLineDto[]required
    DocumentLineDto details
  • taxesDocumentTaxDto[]required

    Footer taxes (stamp…), excluding line VAT.

    DocumentTaxDto details
  • paymentsDocumentPaymentDto[]required
    DocumentPaymentDto details
  • parentDocumentLinkDto | null

    Source document (conversion).

    DocumentLinkDto details
  • childrenDocumentLinkDto[]required

    Documents derived from this one (conversion).

    DocumentLinkDto details
  • deliveryNotesDocumentLinkDto[]required

    Delivery notes taken over by this invoice.

    DocumentLinkDto details
  • invoicesDocumentLinkDto[]required

    Invoices that take over this delivery note.

    DocumentLinkDto details
  • stockMovedbooleanrequired

    Has this document already moved stock?

    e.g.false

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X PATCH 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "date": "2026-07-16",
  "dueDate": "2026-08-16",
  "currency": "EUR",
  "exchangeRate": 3.35,
  "reference": "CMD-CLIENT-778",
  "globalDiscount": {
    "value": 10
  }
}'
Response example
{
  "success": true,
  "data": {
    "id": "ca10e95f-b0c2-41f6-84a4-f4aa0aead531",
    "kind": "invoice",
    "type": "FACTURE",
    "typeLabel": "Facture",
    "number": "FAC-2026-0042",
    "status": "VALIDATED",
    "statusLabel": "Validé",
    "date": "2026-07-16T00:00:00.000Z",
    "dueDate": "2026-08-16T00:00:00.000Z",
    "partner": {
      "id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
      "code": "CLI-0042",
      "name": "Société Exemple SARL"
    },
    "warehouseId": "8cd914d4-0b34-4308-865a-69752f35c45d",
    "currency": "EUR",
    "exchangeRate": 1,
    "totals": {
      "totalExclTax": 1000,
      "totalVat": 190,
      "totalInclTax": 1191,
      "paidAmount": 500,
      "balanceDue": 691
    },
    "reference": "CMD-CLIENT-778",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "modifiedAt": "2026-10-02T09:15:00.000Z",
    "globalDiscount": {
      "value": 10,
      "unit": "PCT",
      "percent": 10
    },
    "notes": null,
    "terms": null,
    "lines": [
      {
        "id": "4d3a4548-8e98-4bb6-8c52-c31940a4ebfd",
        "position": 0,
        "articleId": "ba517038-d0c9-48f0-8630-e2d12abb0db5",
        "articleReference": "ART-0001",
        "label": "Ordinateur portable 14\"",
        "quantity": 2,
        "unit": "U",
        "unitPrice": 500,
        "vatRate": 19,
        "discount": {
          "value": 10,
          "unit": "PCT",
          "percent": 10
        },
        "customerDiscountPercent": 0,
        "totalExclTax": 1000,
        "totalVat": 190,
        "totalInclTax": 1190,
        "isComment": false,
        "sourceDocumentId": "ebdec6d0-b240-4fe6-8019-9635538fa139"
      }
    ],
    "taxes": [
      {
        "taxId": "5f785876-9a77-4bc2-8f20-808b57f1ab95",
        "label": "Timbre fiscal",
        "computation": "PERCENTAGE",
        "rate": 1,
        "base": 1000,
        "amount": 1
      }
    ],
    "payments": [
      {
        "paymentId": "57d143d0-b381-48e6-8e82-e015068e1e79",
        "number": "REG-2026-0012",
        "date": "2026-10-02",
        "method": "TRANSFER",
        "amount": 500
      }
    ],
    "parent": {
      "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
      "kind": "delivery_note",
      "type": "DEVIS",
      "number": "BL-2026-0007",
      "status": "DRAFT"
    },
    "children": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "deliveryNotes": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "invoices": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "stockMoved": false
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Delete a draft — Purchases — Invoices #

DELETE/api/public/v1/quosuite/purchases/invoices/{id}
Scope : purchases:writedeletePurchaseInvoice

Deletes a draft document with no payment, stock movement or linked document. Otherwise 422: an issued document is cancelled (status: CANCELLED), it does not disappear.

Parameters

  • idstring (uuid)pathrequired

    Document identifier.

Response 204

Deleted.

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X DELETE 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"

PDF — Purchases — Invoices #

GET/api/public/v1/quosuite/purchases/invoices/{id}/pdf
Scope : purchases:readgetPurchaseInvoicePdf

The document's PDF, rendered with the workspace template, in the requested language (lang, otherwise Accept-Language, otherwise the workspace's; Arabic mirrored RTL).

Parameters

  • idstring (uuid)pathrequired

    Document identifier.

  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar

Response 200application/pdf

The PDF file.

Binary file (application/pdf).

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices/aac39e3a-0c40-44b2-8697-b597f357c5a9/pdf?lang=en' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -o 'invoice.pdf'
Try this request

Change status — Purchases — Invoices #

POST/api/public/v1/quosuite/purchases/invoices/{id}/status
Scope : purchases:writesetPurchaseInvoiceStatus

Settable statuses: SENT, ACCEPTED, REFUSED, EXPIRED, VALIDATED, CANCELLED, following the ERP transitions (a forbidden transition returns 422). Cancelling an invoice releases its delivery notes; validating credits loyalty points and, for a credit note, the customer account.

Parameters

  • idstring (uuid)pathrequired

    Document identifier.

Request body application/json

  • statusstringrequired

    Target status. DELIVERED, INVOICED, PARTIALLY_PAID, PAID and CONVERTED cannot be set by hand: they follow from delivery / receipt, invoicing, payments and quote conversion.

    valuesSENTACCEPTEDREFUSEDEXPIREDVALIDATEDCANCELLED

Response 200application/json

Success.

  • idstring (uuid)required
  • kindstringrequired
    valuesquotesales_orderdelivery_noteinvoicecredit_notepurchase_ordergoods_receiptpurchase_invoice
  • typestringrequired

    Internal ERP type.

    valuesDEVISCOMMANDE_VENTEBON_LIVRAISONFACTUREAVOIR_CLIENTCOMMANDE_ACHATBON_RECEPTIONFACTURE_ACHATBON_SORTIEBON_RETOURORDRE_REPARATIONRESERVATION_LOCATIONCONTRAT_LOCATIONCLIENTBORDEREAU_REMISE
  • typeLabelstringrequired

    Type label, in the requested language.

    e.g.Facture
  • numberstringrequired
    e.g.FAC-2026-0042
  • statusstringrequired
    valuesDRAFTVALIDATEDSENTACCEPTEDREFUSEDDELIVEREDINVOICEDPARTIALLY_PAIDPAIDCANCELLEDEXPIREDCONVERTED
  • statusLabelstringrequired
    e.g.Validé
  • datestringrequired
    e.g.2026-07-16T00:00:00.000Z
  • dueDatestring | null
    e.g.2026-08-16T00:00:00.000Z
  • partnerPartnerRefDtorequired
    PartnerRefDto details
  • warehouseIdstring (uuid) | null
  • currencystringrequired

    Document currency (ISO 4217).

    e.g.EUR
  • exchangeRatenumberrequired

    Exchange rate to the workspace base currency, frozen on creation.

    e.g.1
  • totalsDocumentTotalsDtorequired
    DocumentTotalsDto details
  • referencestring | null

    External reference (customer order…).

    e.g.CMD-CLIENT-778
  • createdAtstringrequired
  • updatedAtstringrequired
  • modifiedAtstring | null

    Last content change outside draft (Phase 25 safeguards).

  • globalDiscountDiscountDtorequired
    DiscountDto details
  • notesstring | null
  • termsstring | null

    Terms printed on the document.

  • linesDocumentLineDto[]required
    DocumentLineDto details
  • taxesDocumentTaxDto[]required

    Footer taxes (stamp…), excluding line VAT.

    DocumentTaxDto details
  • paymentsDocumentPaymentDto[]required
    DocumentPaymentDto details
  • parentDocumentLinkDto | null

    Source document (conversion).

    DocumentLinkDto details
  • childrenDocumentLinkDto[]required

    Documents derived from this one (conversion).

    DocumentLinkDto details
  • deliveryNotesDocumentLinkDto[]required

    Delivery notes taken over by this invoice.

    DocumentLinkDto details
  • invoicesDocumentLinkDto[]required

    Invoices that take over this delivery note.

    DocumentLinkDto details
  • stockMovedbooleanrequired

    Has this document already moved stock?

    e.g.false

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/purchases/invoices/aac39e3a-0c40-44b2-8697-b597f357c5a9/status' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "SENT"
}'
Response example
{
  "success": true,
  "data": {
    "id": "ca10e95f-b0c2-41f6-84a4-f4aa0aead531",
    "kind": "invoice",
    "type": "FACTURE",
    "typeLabel": "Facture",
    "number": "FAC-2026-0042",
    "status": "VALIDATED",
    "statusLabel": "Validé",
    "date": "2026-07-16T00:00:00.000Z",
    "dueDate": "2026-08-16T00:00:00.000Z",
    "partner": {
      "id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
      "code": "CLI-0042",
      "name": "Société Exemple SARL"
    },
    "warehouseId": "8cd914d4-0b34-4308-865a-69752f35c45d",
    "currency": "EUR",
    "exchangeRate": 1,
    "totals": {
      "totalExclTax": 1000,
      "totalVat": 190,
      "totalInclTax": 1191,
      "paidAmount": 500,
      "balanceDue": 691
    },
    "reference": "CMD-CLIENT-778",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "modifiedAt": "2026-10-02T09:15:00.000Z",
    "globalDiscount": {
      "value": 10,
      "unit": "PCT",
      "percent": 10
    },
    "notes": null,
    "terms": null,
    "lines": [
      {
        "id": "4d3a4548-8e98-4bb6-8c52-c31940a4ebfd",
        "position": 0,
        "articleId": "ba517038-d0c9-48f0-8630-e2d12abb0db5",
        "articleReference": "ART-0001",
        "label": "Ordinateur portable 14\"",
        "quantity": 2,
        "unit": "U",
        "unitPrice": 500,
        "vatRate": 19,
        "discount": {
          "value": 10,
          "unit": "PCT",
          "percent": 10
        },
        "customerDiscountPercent": 0,
        "totalExclTax": 1000,
        "totalVat": 190,
        "totalInclTax": 1190,
        "isComment": false,
        "sourceDocumentId": "ebdec6d0-b240-4fe6-8019-9635538fa139"
      }
    ],
    "taxes": [
      {
        "taxId": "5f785876-9a77-4bc2-8f20-808b57f1ab95",
        "label": "Timbre fiscal",
        "computation": "PERCENTAGE",
        "rate": 1,
        "base": 1000,
        "amount": 1
      }
    ],
    "payments": [
      {
        "paymentId": "57d143d0-b381-48e6-8e82-e015068e1e79",
        "number": "REG-2026-0012",
        "date": "2026-10-02",
        "method": "TRANSFER",
        "amount": 500
      }
    ],
    "parent": {
      "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
      "kind": "delivery_note",
      "type": "DEVIS",
      "number": "BL-2026-0007",
      "status": "DRAFT"
    },
    "children": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "deliveryNotes": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "invoices": [
      {
        "id": "45d5b81a-6a15-4796-8aa7-023fe4dfe625",
        "kind": "delivery_note",
        "type": "DEVIS",
        "number": "BL-2026-0007",
        "status": "DRAFT"
      }
    ],
    "stockMoved": false
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Generated from the QuoSuite API OpenAPI contract v1.0.0.