Payezydevelopers
Sandbox

API reference / Recipients

Add an account to a recipient

POST/v1/orgs/{orgId}/counterparties/{counterpartyId}/accounts

Adds another bank account or wallet to a recipient. Requires two-factor authentication.

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.
counterpartyIdpath, uuidrequiredA recipient from createCounterparty or listCounterparties.

Request body

FieldWhat it does
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.
make_defaultbooleanNo description in the spec yet.

Default false

Response 201

The recipient with the new account

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
duplicate_account409this wallet is already saved for this recipient
too_many_accounts422

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