Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

ID of the user.

Pattern: ^user_[A-Za-z0-9]+$

Body

application/json

Counter party details. The type field selects whether the counter party is an individual or a business, which determines the required fields.

An individual counter party. Only type, firstName, and lastName are always required; the other fields become required depending on what is later attached (external wallet needs the name only; external account needs phoneNumber, email, dateOfBirth, taxId, taxIdType, nationality, address).

type
enum<string>
required
Available options:
INDIVIDUAL
Example:

"INDIVIDUAL"

firstName
string
required
Example:

"Jane"

lastName
string
required
Example:

"Doe"

phoneNumber
string

Phone number.

Example:

"+14155552671"

email
string<email>
Example:

"jane.doe@example.com"

dateOfBirth
string<date>

Date of birth in YYYY-MM-DD format.

Example:

"1990-01-15"

taxId
string

Tax identification number.

Example:

"123-45-6789"

taxIdType
string

Type of tax identifier (e.g. SSN, ITIN).

Example:

"SSN"

taxIdCountry
string

ISO 3166-1 alpha-3 country that issued the tax ID.

Example:

"USA"

nationality
string

ISO 3166-1 alpha-3 country code.

Example:

"USA"

address
object

Address of the counter party.

Response

Counter party created successfully.

A counter party.

id
string

Public ID of the counter party (prefixed with cpty_).

Example:

"cpty_7dLpR2mNpXwZ7bV1aQz3x"

userId
string

Public ID of the user this counter party belongs to (prefixed with usr_).

Example:

"usr_3Kf9dQ2mNpXwZ7bV1aLcs"

type
enum<string>
Available options:
INDIVIDUAL,
BUSINESS
Example:

"INDIVIDUAL"

category
string

Business category. Present for business counter parties.

Example:

"software"

firstName
string

Present for individual counter parties.

Example:

"Jane"

lastName
string

Present for individual counter parties.

Example:

"Doe"

businessName
string

Present for business counter parties.

Example:

"Acme Corp"

phoneNumber
string
Example:

"+14155552671"

email
string<email>
Example:

"jane.doe@example.com"

taxId
string

Tax identification number.

Example:

"123-45-6789"

dateOfBirth
string<date> | null

Date of birth. Present for individual counter parties.

Example:

"1990-01-15"

incorporationDate
string<date> | null

Date of incorporation. Present for business counter parties.

Example:

"2015-06-01"

nationality
string

ISO 3166-1 alpha-3 country code. Present for individual counter parties.

Example:

"USA"

address
object

Address of the counter party.

status
enum<string>
Available options:
ACTIVE,
INACTIVE
Example:

"ACTIVE"

createdAt
string<date-time>
Example:

"2026-07-01T10:30:00.000Z"

updatedAt
string<date-time>
Example:

"2026-07-01T10:30:00.000Z"