List counterparties

GET https://api.invunion.com/api/v1/counterparties counterparties:read Markdown

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

NameTypeRequired
page

Page number. Default 1.

Example: 1

integer
Optional
pageSize

Page size. Default 20.

Example: 20

integer
Optional
sortBy

Sort column. Default name_original.

string

No maximum

Optional
Allowed valuesaccount_codename_originalname_displaystatuscategorycitycountrycreated_atupdated_atpayer_scoretotal_revenueunmatched_transactions_count
sortOrder

Sort direction. Default asc.

Allowed valuesascdesc
string

No maximum

Optional
search

Case-insensitive match on name_original, name_display, vat_number, account_code, city, or country.

Example: Leones Cars

string

No maximum

Optional
status

Filter by computed payment status from overdue invoices.

Allowed valueslateup_to_date
string

No maximum

Optional
category

Filter by legal form.

string

No maximum

Optional
Allowed valuesindividualprofessionalgovernmental
country

ISO 3166-1 alpha-2 country code, or a free-text country name.

Example: FR

string

No maximum

Optional
is_supplier

If true, only counterparties flagged as suppliers.

Allowed valuestruefalse
boolean
Optional
is_client

If true, only counterparties flagged as clients.

Allowed valuestruefalse
boolean
Optional
is_partner

If true, only counterparties flagged as partners.

Allowed valuestruefalse
boolean
Optional
is_payer

If true, only counterparties flagged as payers.

Allowed valuestruefalse
boolean
Optional
is_internal

If true, only internal counterparties.

Allowed valuestruefalse
boolean
Optional
is_employee

If true, only employee counterparties.

Allowed valuestruefalse
boolean
Optional
payerCategory

Filter by payer score band. insufficient means no score yet.

string

No maximum

Optional
Allowed valuesgoodwatchriskyinsufficient
minScore

Minimum payer_score (0-100).

Example: 70

number
Optional
maxScore

Maximum payer_score (0-100).

Example: 100

number
Optional
hasUnmatchedInvoices

If true, only counterparties with open issued invoices. If false, only those without.

Allowed valuestruefalse
boolean
Optional
hasUnmatchedTransactions

If true, only counterparties with unmatched settlement-eligible transactions. If false, only those without.

Allowed valuestruefalse
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.