Create a Counterparty
Create a Counterparty.
Authorizations
Token from POST /auth/token
Headers
Required on POST and PUT requests. Use a unique value per logical mutation attempt, for example a UUID.
Body
- individual
- business
Individual counterparty create arm. The server composes the response name as firstName + " " + lastName.
Entity type discriminator.
individual Given name, as it appears on the counterparty's identity document. 1..140 chars.
1 - 140Family name, as it appears on the counterparty's identity document. 1..140 chars.
1 - 140Owning customer ID (cst_ prefix).
Date of birth (YYYY-MM-DD).
Registered address. Required unless your project is configured not to require one. When supplied, it is validated in full: non-blank line1, city, zipCode and a two-letter ISO country (state required for US).
Contact email address.
Phone in E.164 format.
Tax ID (CPF, CNPJ, SSN, etc.). Required for some external-account types.
ISO 3166-1 alpha-2.
Free-form key-value pairs stored on the resource and echoed back on reads.
Response
The request has succeeded and a new resource has been created as a result.
A third party a customer transacts with — an entry in the customer's address book. Counterparties will own External Accounts (registered payment destinations) in a later slice.
The customer whose address book holds this counterparty.
Public TypeID, e.g. txn_01h455vb4pex5vsknk084sn02q.
^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$Lifecycle of a counterparty. rejected is set when compliance screening finds a prohibited country, on create or on a later update. A counterparty rejected only for countryProhibited returns to active when an update moves its address to an allowed country; deleted marks a soft-deleted record that remains readable by id.
active, rejected, deleted Why the counterparty was rejected. Present only when status is rejected.
Single-line display name, read-only and server-composed: businessName for a business, or firstName + " " + lastName for an individual. It is the same string an instrument's owner.name carries. Write the structured fields; read this one.
Determines which structured name fields apply. Can be absent on reads for older counterparties that have not been classified yet.
individual, business Given name — present when entityType is individual and the row has structured name fields. Echoed back exactly as supplied.
Family name — present when entityType is individual and the row has structured name fields. Echoed back exactly as supplied.
Registered legal name — present when entityType is business and the row has structured name fields. Echoed back exactly as supplied.
Registered address. Omitted when the counterparty has none, such as one created without an address on a project that does not require it.
ISO 3166-1 alpha-2.