Skip to main content
POST
Find or create Counterparty

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

Trio-Version
enum<string>
required

Version of the v2 contract the client is written against. Each breaking change publishes a new version.

Available options:
2026-10-19.v2
Trio-Target-Org-Id
string<uuid>

ID of another org to act on instead of the API key's own org. The key's org must have been granted access to it, and the request is refused with 403 FORBIDDEN otherwise. When that access or the API key is read-only, only GET and HEAD requests may carry it. When the target org requires mTLS, so does the request. Leave it out to act on the key's own org.

Body

application/json

The create counterparty attributes

Body params create counterparty

name
string
required

Name of the counterparty

tax_number
string
required

Tax number of the counterparty

Response

Counterparty

Counterparty response

data
V2 counterparty · object

A counterparty and its bank accounts

Example: