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
- Permission
counterparties:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The 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
| Field | What it does |
|---|---|
namestringrequired | No description in the spec yet. |
kindenum | No description in the spec yet. One of Default |
emailstring | No description in the spec yet. |
categoryenum | No description in the spec yet. One of |
bankBankAccountInput | No description in the spec yet. |
bank.labelstring | Nickname, e.g. Operating account (default: bank name and last four) |
bank.owner_namestring | No description in the spec yet. |
bank.bank_namestring | No description in the spec yet. |
bank.routing_numberstringrequired | No description in the spec yet. |
bank.account_numberstringrequired | No description in the spec yet. |
bank.account_typeenum | No description in the spec yet. One of Default |
bank.railsenum[] | No description in the spec yet. One of |
bank.bank_addressAddress | No description in the spec yet. |
bank.bank_address.street_line_1stringrequired | No description in the spec yet. |
bank.bank_address.street_line_2string | No description in the spec yet. |
bank.bank_address.citystringrequired | No description in the spec yet. |
bank.bank_address.statestringrequired | No description in the spec yet. |
bank.bank_address.zipstringrequired | No description in the spec yet. |
bank.beneficiary_addressAddress | No description in the spec yet. |
bank.beneficiary_address.street_line_1stringrequired | No description in the spec yet. |
bank.beneficiary_address.street_line_2string | No description in the spec yet. |
bank.beneficiary_address.citystringrequired | No description in the spec yet. |
bank.beneficiary_address.statestringrequired | No description in the spec yet. |
bank.beneficiary_address.zipstringrequired | No description in the spec yet. |
walletWalletInput | No description in the spec yet. |
wallet.labelstring | No description in the spec yet. |
wallet.networkstringrequired | No description in the spec yet. |
wallet.addressstringrequired | No description in the spec yet. |
Response 201
Created (account numbers are never returned, only the last four digits)
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
namestringrequired | No description in the spec yet. |
kindenumrequired | No description in the spec yet. One of |
emailstringrequired | No description in the spec yet. |
categoryenumrequired | No description in the spec yet. One of |
screening_statusenumrequired | No description in the spec yet. One of |
accountsExternalAccount[]required | No description in the spec yet. |
accounts[].idstring (uuid)required | No description in the spec yet. |
accounts[].typeenumrequired | No description in the spec yet. One of |
accounts[].is_defaultbooleanrequired | The account preselected when paying this recipient |
accounts[].labelstringrequired | No description in the spec yet. |
accounts[].bank_namestring | No description in the spec yet. |
accounts[].routing_numberstring | No description in the spec yet. |
accounts[].account_last4string | No description in the spec yet. |
accounts[].account_typestring | No description in the spec yet. |
accounts[].railsstring[]required | No description in the spec yet. |
accounts[].networkstring | No description in the spec yet. |
accounts[].addressstring | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
invalid_routing_number422 | enter a valid 9-digit ABA routing number |
invalid_account_number422 | account numbers are 4 to 17 digits |
invalid_account_type422 | account type must be checking or savings |
duplicate_account409 | this wallet is already saved for this recipient |
name_required422 | name 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.