Payezydevelopers
Sandbox

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

  • Permissionaccounts: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

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
sourcestringrequiredNo description in the spec yet.
labelstringName 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

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

One of bank wallet

sourceenumrequiredpayezy 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 payezy external

statusenumrequiredNo description in the spec yet.

One of pending active

labelstringrequiredNo description in the spec yet.
is_primarybooleanrequiredPrimary for its Payezy account, or the default withdrawal destination
capabilitiesenum[]requiredNo description in the spec yet.

One of receive_deposits hold_funds withdrawals

railsstring[]requiredNo description in the spec yet.
assetstringNo description in the spec yet.
account_idstring (uuid)The Payezy financial account this backs (payezy source only)
account_namestringNo description in the spec yet.
bankLinkedBankDetailsNo description in the spec yet.
bank.bank_namestringNo description in the spec yet.
bank.routing_numberstringNo description in the spec yet.
bank.account_numberstringFull number, only for Payezy-issued deposit accounts
bank.account_last4stringNo description in the spec yet.
bank.account_typestringNo description in the spec yet.
bank.beneficiary_namestringNo description in the spec yet.
bank.memostringNo description in the spec yet.
walletLinkedWalletDetailsNo description in the spec yet.
wallet.networkstringrequiredNo description in the spec yet.
wallet.addressstringrequiredNo 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
source_unavailable409this account type isn't available for your organization yet
unknown_source422choose one of the listed account types

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