API reference / Accounts and funding
Open an additional bank account
POST/v1/orgs/{orgId}/linked-accounts/banks
Opens an additional bank account of the chosen source for one of the organization's Payezy accounts (the first one by default); deposits to it credit that account. Needs accounts:manage and two-factor authentication. The account may be pending until its details are issued. Retrying with the same Idempotency-Key returns the original account.
Before you call it
- Permission
accounts:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
- IdempotencySend an
Idempotency-Key. Retrying with the same key returns the original result.
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 |
|---|---|
sourcestringrequired | No description in the spec yet. |
labelstring | Name shown on the Accounts page |
account_idstring (uuid) | Payezy account deposits credit; the first one when omitted |
Response 200
Replay of an earlier request with the same Idempotency-Key
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
kindenumrequired | No description in the spec yet. One of |
sourceenumrequired | payezy is opened for the organization by Payezy and backs a Payezy account; external is the organization's own account elsewhere (a withdrawal destination). One of |
statusenumrequired | No description in the spec yet. One of |
labelstringrequired | No description in the spec yet. |
is_primarybooleanrequired | Primary for its Payezy account, or the default withdrawal destination |
capabilitiesenum[]required | No description in the spec yet. One of |
railsstring[]required | No description in the spec yet. |
assetstring | No description in the spec yet. |
account_idstring (uuid) | The Payezy financial account this backs (payezy source only) |
account_namestring | No description in the spec yet. |
bankLinkedBankDetails | No description in the spec yet. |
bank.bank_namestring | No description in the spec yet. |
bank.routing_numberstring | No description in the spec yet. |
bank.account_numberstring | Full number, only for Payezy-issued deposit accounts |
bank.account_last4string | No description in the spec yet. |
bank.account_typestring | No description in the spec yet. |
bank.beneficiary_namestring | No description in the spec yet. |
bank.memostring | No description in the spec yet. |
walletLinkedWalletDetails | No description in the spec yet. |
wallet.networkstringrequired | No description in the spec yet. |
wallet.addressstringrequired | 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 |
|---|---|
source_unavailable409 | this account type isn't available for your organization yet |
unknown_source422 | choose one of the listed account types |
Every error is a Problem document. Branch on code; quote request_id to support.