Developers
Reference

Expenses

List expenses #

GET/api/public/v1/quosuite/expenses
Scope : expenses:readlistExpenses

Filterable by category, method, payee and period. Allowed sort: date, amount, 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.

  • categorystring[]query

    Categories, comma-separated.

  • methodstring[]query

    Methods, comma-separated.

  • partnerIdstring (uuid)query
  • dateFromstringquery
  • dateTostringquery

Response 200application/json

Success.

  • itemsExpenseDto[]required
    ExpenseDto 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/expenses' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "f170c61d-2d0f-40b2-8da3-cbaa5b8ac545",
        "number": null,
        "date": "2026-10-02",
        "category": "Loyer",
        "label": "Loyer octobre",
        "amount": 1200,
        "vatAmount": 0,
        "withholdingAmount": 0,
        "currency": "TND",
        "method": "CASH",
        "methodLabel": "Virement",
        "partnerId": "364529f3-9cc9-4506-81f0-d3da38e119b1",
        "reconciled": true,
        "hasAttachment": true,
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "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

Record an expense #

POST/api/public/v1/quosuite/expenses
Scope : expenses:writeIdempotentcreateExpense

The treasury outflow is posted with the expense. Recommended with Idempotency-Key.

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

  • datestring

    Default: now.

    e.g.2026-10-01
  • categorystringrequired

    Category (free text, groups expenses).

    e.g.Loyer
  • labelstringrequired
    e.g.Loyer octobre
  • amountnumberrequired

    Amount incl. tax.

    e.g.1200
  • vatAmountnumber
    min.0e.g.0
  • currencystring
    e.g.TND
  • methodstring
    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERdefault"CASH"
  • partnerIdstring (uuid)
  • treasuryAccountIdstring (uuid)

    Treasury account debited (otherwise that of the payment method).

Response 201application/json

Created.

  • idstring (uuid)required
  • numberstring | null
  • datestringrequired
  • categorystringrequired
    e.g.Loyer
  • labelstringrequired
    e.g.Loyer octobre
  • amountnumberrequired

    Amount incl. tax.

    e.g.1200
  • vatAmountnumberrequired

    Of which recoverable VAT.

    e.g.0
  • withholdingAmountnumberrequired

    Withholding tax applied.

    e.g.0
  • currencystringrequired
    e.g.TND
  • methodstringrequired
    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHER
  • methodLabelstringrequired
    e.g.Virement
  • partnerIdstring (uuid) | null

    Supplier / payee.

  • reconciledbooleanrequired

    Reconciled with the bank.

  • hasAttachmentbooleanrequired

    Is a receipt attached?

  • createdAtstringrequired
  • updatedAtstringrequired

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/expenses' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "category": "Loyer",
  "label": "Loyer octobre",
  "amount": 1200
}'
Response example
{
  "success": true,
  "data": {
    "id": "f170c61d-2d0f-40b2-8da3-cbaa5b8ac545",
    "number": null,
    "date": "2026-10-02",
    "category": "Loyer",
    "label": "Loyer octobre",
    "amount": 1200,
    "vatAmount": 0,
    "withholdingAmount": 0,
    "currency": "TND",
    "method": "CASH",
    "methodLabel": "Virement",
    "partnerId": "364529f3-9cc9-4506-81f0-d3da38e119b1",
    "reconciled": true,
    "hasAttachment": true,
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Get an expense #

GET/api/public/v1/quosuite/expenses/{id}
Scope : expenses:readgetExpense

Parameters

  • idstring (uuid)pathrequired
  • langstringquery

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

    frenar

Response 200application/json

Success.

  • idstring (uuid)required
  • numberstring | null
  • datestringrequired
  • categorystringrequired
    e.g.Loyer
  • labelstringrequired
    e.g.Loyer octobre
  • amountnumberrequired

    Amount incl. tax.

    e.g.1200
  • vatAmountnumberrequired

    Of which recoverable VAT.

    e.g.0
  • withholdingAmountnumberrequired

    Withholding tax applied.

    e.g.0
  • currencystringrequired
    e.g.TND
  • methodstringrequired
    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHER
  • methodLabelstringrequired
    e.g.Virement
  • partnerIdstring (uuid) | null

    Supplier / payee.

  • reconciledbooleanrequired

    Reconciled with the bank.

  • hasAttachmentbooleanrequired

    Is a receipt attached?

  • createdAtstringrequired
  • updatedAtstringrequired

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/expenses/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "f170c61d-2d0f-40b2-8da3-cbaa5b8ac545",
    "number": null,
    "date": "2026-10-02",
    "category": "Loyer",
    "label": "Loyer octobre",
    "amount": 1200,
    "vatAmount": 0,
    "withholdingAmount": 0,
    "currency": "TND",
    "method": "CASH",
    "methodLabel": "Virement",
    "partnerId": "364529f3-9cc9-4506-81f0-d3da38e119b1",
    "reconciled": true,
    "hasAttachment": true,
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Generated from the QuoSuite API OpenAPI contract v1.0.0.