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
pageSize

Page size. Default 20, maximum 100.

Example: 20

integer
Optional
cursor

Opaque cursor: pass the nextCursor of the previous response. Valid only with the same sortBy, sortOrder, and filters. Omit it for the first page.

Example: Y3JlYXRlZF9hdDpkZXNjfDIwMjYtMDktMDhUMTQ6MTA6MDAuMDAwWnw3ZDljMTNlNA

string

Max 512

Optional
includeTotal

total is returned on the first page unless includeTotal=false, and on cursor pages only when includeTotal=true. Skip it to save a count.

Allowed valuestruefalse
boolean
Optional
page

Deprecated. Offset page number kept for older integrations; use cursor instead. Ignored when cursor is sent.

Example: 2

integer
Optional
updatedSince

ISO 8601 instant. Returns only rows modified strictly after it. Use it with cursor for incremental sync.

Example: 2026-09-01T00:00:00Z

string

No maximum

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 More than 100 requests in one minute from this API key or IP address. Wait for the Retry-After header (seconds) and retry.
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.