Payezydevelopers
Sandbox

API reference / Recipients

Add a recipient

POST/v1/orgs/{orgId}/counterparties

Adds a recipient with a US bank account or a wallet. Requires two-factor authentication.

When to use it

Before paying a third party. Add their first bank account or wallet in the same call; it becomes the default.

Before you call it

  • Permissioncounterparties:manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

FieldWhat it does
namestringrequiredNo description in the spec yet.
kindenumNo description in the spec yet.

One of individual business

Default "business"

emailstringNo description in the spec yet.
categoryenumNo description in the spec yet.

One of vendor customer contractor employee other

bankBankAccountInputNo description in the spec yet.
bank.labelstringNickname, e.g. Operating account (default: bank name and last four)
bank.owner_namestringNo description in the spec yet.
bank.bank_namestringNo description in the spec yet.
bank.routing_numberstringrequiredNo description in the spec yet.
bank.account_numberstringrequiredNo description in the spec yet.
bank.account_typeenumNo description in the spec yet.

One of checking savings

Default "checking"

bank.railsenum[]No description in the spec yet.

One of ach_credit same_day_ach_credit wire fednow_credit

bank.bank_addressAddressNo description in the spec yet.
bank.bank_address.street_line_1stringrequiredNo description in the spec yet.
bank.bank_address.street_line_2stringNo description in the spec yet.
bank.bank_address.citystringrequiredNo description in the spec yet.
bank.bank_address.statestringrequiredNo description in the spec yet.
bank.bank_address.zipstringrequiredNo description in the spec yet.
bank.beneficiary_addressAddressNo description in the spec yet.
bank.beneficiary_address.street_line_1stringrequiredNo description in the spec yet.
bank.beneficiary_address.street_line_2stringNo description in the spec yet.
bank.beneficiary_address.citystringrequiredNo description in the spec yet.
bank.beneficiary_address.statestringrequiredNo description in the spec yet.
bank.beneficiary_address.zipstringrequiredNo description in the spec yet.
walletWalletInputNo description in the spec yet.
wallet.labelstringNo description in the spec yet.
wallet.networkstringrequiredNo description in the spec yet.
wallet.addressstringrequiredNo description in the spec yet.

Response 201

Created (account numbers are never returned, only the last four digits)

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
namestringrequiredNo description in the spec yet.
kindenumrequiredNo description in the spec yet.

One of individual business self

emailstringrequiredNo description in the spec yet.
categoryenumrequiredNo description in the spec yet.

One of vendor customer contractor employee other

screening_statusenumrequiredNo description in the spec yet.

One of clear review blocked

accountsExternalAccount[]requiredNo description in the spec yet.
accounts[].idstring (uuid)requiredNo description in the spec yet.
accounts[].typeenumrequiredNo description in the spec yet.

One of bank wallet

accounts[].is_defaultbooleanrequiredThe account preselected when paying this recipient
accounts[].labelstringrequiredNo description in the spec yet.
accounts[].bank_namestringNo description in the spec yet.
accounts[].routing_numberstringNo description in the spec yet.
accounts[].account_last4stringNo description in the spec yet.
accounts[].account_typestringNo description in the spec yet.
accounts[].railsstring[]requiredNo description in the spec yet.
accounts[].networkstringNo description in the spec yet.
accounts[].addressstringNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_routing_number422enter a valid 9-digit ABA routing number
invalid_account_number422account numbers are 4 to 17 digits
invalid_account_type422account type must be checking or savings
duplicate_account409this wallet is already saved for this recipient
name_required422name the key after the system that will use it
unsupported_network422

Every error is a Problem document. Branch on code; quote request_id to support.

Usually next

Used in guided journeys