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. Inactive counterparties cannot receive transfers.object
Identity details. Shape depends on
type.object
Arbitrary key-value metadata.
number
0 if the counterparty is active. Non-zero if the counterparty has been deleted.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.
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. 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. Keys and values must be strings.
Request
Response
Returns the created Counterparty object.Errors
List counterparties
GET /counterparties
Returns a paginated list of counterparties.
Query parameters
string
Filter by entity. Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
string
Filter by counterparty type.
individual or business.string
Filter by status.
active or inactive.integer
Number of results to return. Between 1 and 100. Defaults to
20.string
Pagination cursor returned in the previous response’s
meta.pagination.next_cursor.Request
Response
Get a counterparty
GET /counterparties/{counterparty_id}
Retrieves a single counterparty by ID.
Path parameters
string
required
The counterparty ID. 26-character ULID.
Query parameters
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Request
Response
Returns the Counterparty object.Update a counterparty
PATCH /counterparties/{counterparty_id}
Partially updates a counterparty. Only the fields you provide are changed; omitted fields remain unchanged.
Path parameters
string
required
The counterparty ID. 26-character ULID.
Request parameters
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
string
Updated display label.
object
Any subset of profile fields for the counterparty’s type. Only provided fields are updated.
Request
Response
Returns the updated Counterparty object.List counterparty payment details
GET /counterparties/{counterparty_id}/payment-details
Returns the payment details attached to a counterparty.
Path parameters
string
required
The counterparty ID. 26-character ULID.
Query parameters
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Request
Response
Returns a paginated list of payment detail objects.Response
Deactivate a counterparty
POST /counterparties/{counterparty_id}/deactivate
Sets the counterparty’s status to inactive. Deactivated counterparties cannot receive new transfers.
Path parameters
string
required
The counterparty ID. 26-character ULID.
Request parameters
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Request
Response
Returns the updated Counterparty object withstatus: "inactive".
