Payments
- GET
/instrumentsList cheques and bills of exchange - GET
/paymentsList payments - POST
/paymentsRecord a payment - GET
/payments/{id}Get a payment
List cheques and bills of exchange #
/api/public/v1/quosuite/instrumentspayments:readlistInstrumentsPortfolio of received and issued instruments, filterable by status, type, direction, partner and due date. Allowed sort: dueDate, amount, updatedAt (default dueDate).
Parameters
langstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenarpagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description. A final criterion onidmakes pagination stable.updatedSincestringqueryOnly returns items created or updated since this instant (ISO 8601, inclusive). With
sort=updatedAt, this is the recommended form of an incremental sync.statusstring[]queryStatuses, comma-separated.
typestringqueryCHECKDRAFTdirectionstringqueryINBOUNDOUTBOUNDpartnerIdstring (uuid)querydueFromstringqueryDue date from (ISO 8601).
dueTostringqueryDue date until (ISO 8601).
Response 200application/json
Success.
itemsInstrumentDto[]requiredInstrumentDto details
paginationPaginationDtorequiredPaginationDto 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.
curl 'https://quosuite.com/api/public/v1/quosuite/instruments' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "68dd158e-b8e6-4142-807c-00535ec98629",
"type": "CHECK",
"typeLabel": "Chèque",
"direction": "INBOUND",
"number": "0012345",
"bankName": null,
"amount": 1191,
"currency": "TND",
"issueDate": "2026-10-02",
"dueDate": "2026-10-02",
"status": "PENDING",
"statusLabel": "En portefeuille",
"partner": {
"id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
"code": "CLI-0042",
"name": "Société Exemple SARL"
},
"paymentId": "4807dd2a-6c01-4320-84bc-c677741901a9",
"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
List payments #
/api/public/v1/quosuite/paymentspayments:readlistPaymentsReceipts and disbursements, with their allocation. Allowed sort: date, amount, number, updatedAt (default -date).
Parameters
langstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenarpagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description. A final criterion onidmakes pagination stable.updatedSincestringqueryOnly returns items created or updated since this instant (ISO 8601, inclusive). With
sort=updatedAt, this is the recommended form of an incremental sync.cursorstringqueryCursor pagination:
nextCursorof 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 withpage.limitnumberqueryCursor pagination: items per page (100 at most).
?limit=100starts a cursor walk; the response returnspagination.nextCursor.directionstringqueryINBOUNDOUTBOUNDmethodstring[]queryMethods, comma-separated.
partnerIdstring (uuid)querydocumentIdstring (uuid)queryPayments allocated to this document.
dateFromstringquerydateTostringquery
Response 200application/json
Success.
itemsPaymentDto[]requiredPaymentDto details
paginationPaginationDtorequiredPaginationDto 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.
curl 'https://quosuite.com/api/public/v1/quosuite/payments' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "45d09c23-8281-42da-8f22-abd85bea97a1",
"number": "PAY-1767225600000",
"direction": "INBOUND",
"method": "CASH",
"methodLabel": "Virement",
"date": "2026-10-02",
"partner": {
"id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
"code": "CLI-0042",
"name": "Société Exemple SARL"
},
"amount": 500,
"withholdingAmount": 0,
"currency": "TND",
"exchangeRate": 1,
"reference": null,
"note": null,
"bankAccountId": "9ce7dd32-83cf-4126-8139-7e872b95eba9",
"instrument": {
"id": "d862dd47-44e4-421e-88ff-2a98b41b2879",
"type": "CHECK",
"number": "0012345",
"bankName": null,
"dueDate": "2026-10-02",
"status": "PENDING"
},
"allocations": [
{
"documentId": "da859f08-0b29-4ad2-8382-0c45e11e6641",
"documentKind": "invoice",
"documentNumber": "FAC-2026-0042",
"amount": 500
}
],
"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 a payment #
/api/public/v1/quosuite/paymentspayments:writeIdempotentcreatePaymentCustomer receipt or supplier disbursement, allocated to documents. Send an Idempotency-Key: a payment replayed after a timeout would be counted twice.
Parameters
Idempotency-KeystringheaderIdempotency 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: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
directionstringrequiredvaluesINBOUNDOUTBOUNDmethodstringrequiredCREDITis not a payment (refused);CHECK/DRAFTrequireinstrument.valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERpartnerIdstring (uuid)requiredamountnumberrequiredAmount paid, payment currency.
e.g.500currencystringDefault: workspace base currency.
e.g.TNDdatestringe.g.2026-10-02referencestringBank / external reference.
e.g.VIR-88231notestringbankAccountIdstring (uuid)Workspace bank account (transfer, card).
treasuryAccountIdstring (uuid)Treasury account to post to (cash register, bank…).
allocationsAllocationInput[]Paid documents. The sum does not exceed the amount; any surplus goes to the partner's account. The payment statuses (
PARTIALLY_PAID,PAID) of the documents follow.AllocationInput details
instrumentInstrumentInputCheque or bill of exchange (methods
CHECK/DRAFT).InstrumentInput details
Response 201application/json
Created.
idstring (uuid)requirednumberstringrequirede.g.PAY-1767225600000directionstringrequiredINBOUNDcustomer receipt,OUTBOUNDsupplier disbursement.valuesINBOUNDOUTBOUNDmethodstringrequiredvaluesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERmethodLabelstringrequirede.g.VirementdatestringrequiredpartnerPartnerRefDtorequiredPartnerRefDto details
amountnumberrequirede.g.500withholdingAmountnumberrequiredWithholding tax applied to the payment.
e.g.0currencystringrequirede.g.TNDexchangeRatenumberrequirede.g.1referencestring | nullnotestring | nullbankAccountIdstring (uuid) | nullinstrumentInstrumentRefDto | nullCheque or bill of exchange carrying the payment.
InstrumentRefDto details
allocationsAllocationDto[]requiredPaid documents (allocation).
AllocationDto details
createdAtstringrequiredupdatedAtstringrequired
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.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/payments' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"direction": "INBOUND",
"method": "CASH",
"partnerId": "821cb2b8-741a-424a-8698-06092eb0815d",
"amount": 500
}'{
"success": true,
"data": {
"id": "45d09c23-8281-42da-8f22-abd85bea97a1",
"number": "PAY-1767225600000",
"direction": "INBOUND",
"method": "CASH",
"methodLabel": "Virement",
"date": "2026-10-02",
"partner": {
"id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
"code": "CLI-0042",
"name": "Société Exemple SARL"
},
"amount": 500,
"withholdingAmount": 0,
"currency": "TND",
"exchangeRate": 1,
"reference": null,
"note": null,
"bankAccountId": "9ce7dd32-83cf-4126-8139-7e872b95eba9",
"instrument": {
"id": "d862dd47-44e4-421e-88ff-2a98b41b2879",
"type": "CHECK",
"number": "0012345",
"bankName": null,
"dueDate": "2026-10-02",
"status": "PENDING"
},
"allocations": [
{
"documentId": "da859f08-0b29-4ad2-8382-0c45e11e6641",
"documentKind": "invoice",
"documentNumber": "FAC-2026-0042",
"amount": 500
}
],
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Get a payment #
/api/public/v1/quosuite/payments/{id}payments:readgetPaymentParameters
idstring (uuid)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequirede.g.PAY-1767225600000directionstringrequiredINBOUNDcustomer receipt,OUTBOUNDsupplier disbursement.valuesINBOUNDOUTBOUNDmethodstringrequiredvaluesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERmethodLabelstringrequirede.g.VirementdatestringrequiredpartnerPartnerRefDtorequiredPartnerRefDto details
amountnumberrequirede.g.500withholdingAmountnumberrequiredWithholding tax applied to the payment.
e.g.0currencystringrequirede.g.TNDexchangeRatenumberrequirede.g.1referencestring | nullnotestring | nullbankAccountIdstring (uuid) | nullinstrumentInstrumentRefDto | nullCheque or bill of exchange carrying the payment.
InstrumentRefDto details
allocationsAllocationDto[]requiredPaid documents (allocation).
AllocationDto details
createdAtstringrequiredupdatedAtstringrequired
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.
curl 'https://quosuite.com/api/public/v1/quosuite/payments/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"id": "45d09c23-8281-42da-8f22-abd85bea97a1",
"number": "PAY-1767225600000",
"direction": "INBOUND",
"method": "CASH",
"methodLabel": "Virement",
"date": "2026-10-02",
"partner": {
"id": "82822a70-c30d-49de-8bdd-dc8589ea8269",
"code": "CLI-0042",
"name": "Société Exemple SARL"
},
"amount": 500,
"withholdingAmount": 0,
"currency": "TND",
"exchangeRate": 1,
"reference": null,
"note": null,
"bankAccountId": "9ce7dd32-83cf-4126-8139-7e872b95eba9",
"instrument": {
"id": "d862dd47-44e4-421e-88ff-2a98b41b2879",
"type": "CHECK",
"number": "0012345",
"bankName": null,
"dueDate": "2026-10-02",
"status": "PENDING"
},
"allocations": [
{
"documentId": "da859f08-0b29-4ad2-8382-0c45e11e6641",
"documentKind": "invoice",
"documentNumber": "FAC-2026-0042",
"amount": 500
}
],
"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.