API reference / Act as a platform
Open a customer's bank account
POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/linked-accounts/banks
Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as 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
- Organization
platform - Permission
platform:customer_operate - IdempotencySend an
Idempotency-Key. Retrying with the same key returns the original result.
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
Request body
| Field | What it does |
|---|---|
sourcestringrequired | Where this customer or account came from. |
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 | Identifier of this record. |
kindenumrequired | bank is a virtual or external bank account. wallet is a deposit address or an external wallet. One of: bank, wallet. 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 | Where this record is in its lifecycle. One of: pending, active. One of |
labelstringrequired | Short name chosen for this record. |
is_primarybooleanrequired | Primary for its Payezy account, or the default withdrawal destination |
capabilitiesenum[]required | What this account or organization is allowed to do. One of |
railsstring[]required | Rails this account can receive. |
assetstring | Asset code, such as USD, USDC, or SBC. |
account_idstring (uuid) | The Payezy financial account this backs (payezy source only) |
account_namestring | Name on the bank account. |
bankLinkedBankDetails | Bank details of a linked account. |
bank.bank_namestring | Name of the bank. |
bank.routing_numberstring | ABA routing number of the US bank. |
bank.account_numberstring | Full number, only for Payezy-issued deposit accounts |
bank.account_last4string | Last four digits of the bank account number. |
bank.account_typestring | Whether the bank account is a checking or savings account. |
bank.beneficiary_namestring | Name to put on the wire or ACH credit. |
bank.memostring | Note that travels with the payment, up to 140 characters. |
walletLinkedWalletDetails | Wallet address and chain of a linked account. |
wallet.networkstringrequired | Blockchain network, such as base. |
wallet.addressstringrequired | On-chain address of the linked wallet. |
created_atstring (date-time)required | When this record was created, as an ISO-8601 timestamp. |
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.