Skip to main content
Creating a counterparty registers a payment recipient — either an individual or an organization — against an end user’s profile. By pre-creating counterparties ahead of wire initiation, you eliminate validation delays at the point of payment and ensure bank-partner onboarding is completed in advance. Each counterparty is scoped to a single end user and can be onboarded to one or more supported bank partners.

Endpoint

Required scope: com.diameterpay.api/counter-parties.write

Request Headers

string
required
Bearer token obtained from your OAuth2 token endpoint. Format: Bearer {access_token}
string
required
A UUID v4 string that uniquely identifies this request. Replaying the same key within the idempotency window returns the original response without creating a duplicate.

Request Body

string
required
The counterparty classification. Must be one of:
  • ORGANIZATION — a business or legal entity
  • INDIVIDUAL — a natural person
string
required
UUID of the end user who owns this counterparty.
string
required
The bank partner to onboard this counterparty with initially. Must be one of:
  • PORTAGE
  • SLOVAK_SAVINGS_BANK
string
Full legal name of the counterparty. Required when type is ORGANIZATION.
string
First name of the counterparty. Required when type is INDIVIDUAL.
string
Last name of the counterparty. Required when type is INDIVIDUAL.
string
Middle name of the counterparty. Optional — applicable only when type is INDIVIDUAL.
object
required
Bank account and routing details used to execute wire transfers to this counterparty.

Response

Returns HTTP 201 Created with a CounterPartyOutput object on success.
string
UUID uniquely identifying this counterparty record.
string
The counterparty type: ORGANIZATION or INDIVIDUAL.
string
UUID of the end user this counterparty belongs to.
object
The wire transfer details provided at creation, including bankName, accountNumber, routingNumberType, routingNumber, and address.
array
List of bank partner onboarding records for this counterparty.
string
ISO 8601 timestamp of when the counterparty was created.
string
ISO 8601 timestamp of the most recent update to the counterparty record.

Examples

Create an Organization Counterparty

Create an Individual Counterparty

Response