List counterparties
List counterparties for the authenticated tenant.
Returns a paginated list of counterparties. Filters are optional and combine with AND. Without filters, system counterparties are listed first. Each item includes computed payment status, billed revenue, and unmatched invoice and transaction counts.
Query parameters
| Name | Type | Required |
|---|---|---|
pagePage number. Default 1. Example: 1 | integer | Optional |
pageSizePage size. Default 20. Example: 20 | integer | Optional |
sortBySort column. Default name_original. | string No maximum | Optional |
Allowed values account_codename_originalname_displaystatuscategorycitycountrycreated_atupdated_atpayer_scoretotal_revenueunmatched_transactions_count | ||
sortOrderSort direction. Default asc. Allowed values ascdesc | string No maximum | Optional |
searchCase-insensitive match on name_original, name_display, vat_number, account_code, city, or country. Example: Leones Cars | string No maximum | Optional |
statusFilter by computed payment status from overdue invoices. Allowed values lateup_to_date | string No maximum | Optional |
categoryFilter by legal form. | string No maximum | Optional |
Allowed values individualprofessionalgovernmental | ||
countryISO 3166-1 alpha-2 country code, or a free-text country name. Example: FR | string No maximum | Optional |
is_supplierIf true, only counterparties flagged as suppliers. Allowed values truefalse | boolean | Optional |
is_clientIf true, only counterparties flagged as clients. Allowed values truefalse | boolean | Optional |
is_partnerIf true, only counterparties flagged as partners. Allowed values truefalse | boolean | Optional |
is_payerIf true, only counterparties flagged as payers. Allowed values truefalse | boolean | Optional |
is_internalIf true, only internal counterparties. Allowed values truefalse | boolean | Optional |
is_employeeIf true, only employee counterparties. Allowed values truefalse | boolean | Optional |
payerCategoryFilter by payer score band. insufficient means no score yet. | string No maximum | Optional |
Allowed values goodwatchriskyinsufficient | ||
minScoreMinimum payer_score (0-100). Example: 70 | number | Optional |
maxScoreMaximum payer_score (0-100). Example: 100 | number | Optional |
hasUnmatchedInvoicesIf true, only counterparties with open issued invoices. If false, only those without. Allowed values truefalse | boolean | Optional |
hasUnmatchedTransactionsIf true, only counterparties with unmatched settlement-eligible transactions. If false, only those without. Allowed values truefalse | boolean | Optional |
Errors
This operation can return the following errors in addition to generic HTTP failures.
| Error | HTTP code | Description |
|---|---|---|
Missing Bearer token | 401 | The Authorization header is missing or is not a Bearer token. |
Invalid or revoked API key | 401 | The API key is unknown, malformed, expired, or has been revoked. |
API key is missing scope counterparties:read | 403 | The key does not include counterparties:read. A write scope does not imply the matching read scope. |
Too many requests, please try again later | 429 | Wait and retry. The Retry-After header is the number of seconds to wait. |
Tenant ID required | 400 | The authenticated credential is not bound to a tenant. |
Internal server error | 500 | Unexpected server error. The JSON body includes correlationId. Retry with backoff. |