Skip to main content
A counterparty represents a payout recipient: a person or business you send funds to. Counterparties hold identity information. Payment routing details (bank account numbers, wallet addresses) are stored separately as payment details attached to the counterparty.

Endpoints


The Counterparty object

string
Unique counterparty identifier.
string
The entity this counterparty belongs to.
string
individual or business.
string
Display label. Defaults to full name for individuals and legal name for businesses.
string
active or inactive. Deactivating a counterparty changes only this status. See Deactivate a counterparty.
object
Identity details. Shape depends on type.
object
Arbitrary key-value metadata.
number
0 unless the counterparty has been deleted, when it holds the deletion time. Deactivating a counterparty doesn’t change it.
number
Unix timestamp (milliseconds) when the counterparty was created.
number
Unix timestamp (milliseconds) when the counterparty was last updated.

Create a counterparty

POST /counterparties Creates a counterparty of type individual or business. Attach payment details separately after creation. Returns 201 Created. The call is not idempotent and the API does not check for duplicates: sending the same body twice creates two counterparties. The status is always active on creation, and the API ignores fields it doesn’t recognize, including status, without an error.

Request parameters

string
required
individual or business.
string
The entity this counterparty belongs to. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.
string
Display label. Defaults to first name + last name for individuals or legal name for businesses.
object
required
Identity details. Required fields differ by type.
object
Arbitrary key-value metadata. The API stores any object, including nested objects and non-string values, without validation. Omitted from the response when you don’t send it.

Request

Response

Returns the created Counterparty object.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

List counterparties

GET /counterparties Returns a paginated list of counterparties, newest first by default. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid. Soft-deleted counterparties are never returned.

Query parameters

string
Filter by entity. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.
string
Filter by counterparty type. individual or business. Any other value returns 422 error_validation_value_not_supported.
string
Filter by status. active or inactive. When omitted, the list contains both. Any other value returns 422 error_validation_value_not_supported.
Returns counterparties whose name matches the text, ignoring case. For example, search=supplier matches Probe Supplier Ltd.
integer
Only counterparties created at or after this time, as a Unix timestamp in milliseconds. A date string such as 2026-10-27 returns 422 error_validation_invalid_format.
integer
Only counterparties created at or before this time, as a Unix timestamp in milliseconds. A created_from later than created_to returns an empty list.
string
Sort order. One of created_desc (the default), created_asc, name_asc, or name_desc. Any other value returns 422 error_validation_value_not_supported. pagination.order reflects the direction of the sort.
integer
Number of results to return. Between 1 and 100. Defaults to 20. A value of 0, above 100, or non-numeric returns 422 error_validation_value_out_of_range.
string
Pagination cursor for the next page: the data.meta.pagination.next_cursor value from the previous response. The value isn’t validated, so an unrecognised cursor returns the list after it.
string
Pagination cursor for the previous page: the data.meta.pagination.previous_cursor value from the previous response. Passing previous_cursor as cursor returns the page after it instead. If you send both, prev_cursor takes precedence. See Pagination.

Request

Response

Returns the counterparties under data.data and the pagination state under data.meta.pagination. The response doesn’t include filters_applied. has_previous is true whenever you send cursor, even when no earlier record exists. Each item is a Counterparty object, and meta appears on an item only when metadata was stored for it.

Filter the list

Returns the two newest active individual counterparties. A filter that matches nothing returns an empty list.

Fetch the next page

Pass next_cursor from the previous response as cursor and keep the same filters. The response is the next page, and has_next is false on the last one.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

Get a counterparty

GET /counterparties/{counterparty_id} Retrieves a single counterparty by ID. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid. An inactive counterparty is returned like any other, with status set to inactive. A soft-deleted counterparty returns 404.

Path parameters

string
required
The counterparty ID, a 26-character ULID. The format isn’t validated: an ID that is malformed, doesn’t exist, or belongs to another entity returns 404 error_resource_not_found. Card and webhook payloads show a synthetic counterparty_id such as acct-{account_id}-card-debit. It isn’t a counterparty record, so it returns 404 here.

Query parameters

string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. An ID that matches no entity returns 404 error_resource_not_found. See Managing child entities for details.

Request

Response

Returns the Counterparty object. meta appears only when metadata was stored for the counterparty.
200 OK

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

Update a counterparty

PATCH /counterparties/{counterparty_id} Updates a counterparty’s nickname and profile. The profile object merges one level at a time: a profile field you omit stays unchanged, but phone and identification replace the stored value as a whole. Returns 200 OK. An empty body succeeds and changes nothing. Only nickname and profile can be updated. type, status and meta are ignored if sent.

Path parameters

string
required
The counterparty ID. A counterparty that doesn’t exist, belongs to another entity, or isn’t a valid ID returns 404 error_resource_not_found.

Request parameters

string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in the JSON request body; an entity_id query parameter is ignored. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.
string
Updated display label. An empty string is ignored and null returns 422 error_validation_error, so a nickname can’t be cleared. Changing the profile names doesn’t change the nickname.
object
Any subset of the counterparty’s profile fields, using the fields for its type as in Create a counterparty. Fields that don’t belong to the counterparty’s type, and fields the API doesn’t recognize, are ignored without an error. A field can’t be removed: null returns 422 error_validation_error.
You can update a counterparty that has been deactivated. The update doesn’t check its status and doesn’t change it.

Request

Response

Returns the updated Counterparty object.
200 OK

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

List counterparty payment details

GET /counterparties/{counterparty_id}/payment-details Returns the payment details attached to a counterparty, oldest first. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid.

Path parameters

string
required
The counterparty ID, a 26-character ULID. The counterparty isn’t looked up, so an ID that is malformed, doesn’t exist, or belongs to another entity returns 200 OK with an empty data array, not a 404.

Query parameters

string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. An ID that matches no entity returns 404 error_resource_not_found. See Managing child entities for details.
string
Return only payment details that use this payment scheme, for example fps, ach or nuvion_direct. An unsupported value returns 422 error_validation_value_not_supported.
string
Return only payment details in this currency: an ISO 4217 code, or a Nuvion stablecoin code (USC, UST, RLD). A code with no matching payment details returns an empty list.
string
Return only payment details for this country, as an ISO 3166-1 alpha-2 code, for example GB.
string
Return only the payment detail with this exact account number.
string
Pagination cursor for the next page: the data.meta.pagination.next_cursor value from the previous response. The value isn’t validated, so an unrecognised cursor returns an empty list.
This endpoint has a fixed page size of 20. A limit parameter is ignored, and the response always reports "limit": 20. It doesn’t page backward: prev_cursor is ignored.

Request

Response

Returns the payment details under data.data and the pagination state under data.meta.pagination. The response doesn’t include filters_applied, and the items don’t include created or updated. The list includes the payment details of an inactive counterparty. Each item is a payment detail object.
Response

Filter the list

Returns only the payment details that use the nuvion_direct scheme. A filter that matches nothing returns an empty list.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object.

Deactivate a counterparty

POST /counterparties/{counterparty_id}/deactivate Sets the counterparty’s status to inactive. Returns 200 OK. Deactivation changes only the status. An inactive counterparty is still returned by Retrieve and List, you can still update it, and the API still accepts payment details and new transfers for it. Check status in your own payout flow before you send money to a counterparty. The deleted field stays 0, because it only changes when a counterparty is deleted.
Deactivation cannot be reversed via the API. Contact Nuvion support to reactivate a counterparty.

Path parameters

string
required
The counterparty ID. A malformed ID, or one that doesn’t exist, belongs to another entity, or has been deleted, returns 404 error_resource_not_found.

Request parameters

The body is optional.
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.

Request

Response

Returns the updated Counterparty object with status: "inactive".
200 OK

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses: