Payezydevelopers
Sandbox

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

  • Organizationplatform
  • Permissionplatform:customer_operate
  • IdempotencySend an Idempotency-Key. Retrying with the same key returns the original result.

Parameters

ParameterWhat it does
platformOrgIdpath, uuidrequiredYour platform's organization id. platformOrgId is the platform response's org_id.
customerOrgIdpath, uuidrequiredcustomerOrgId is the customer response's org_id.

Request body

FieldWhat it does
sourcestringrequiredWhere this customer or account came from.
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)requiredIdentifier of this record.
kindenumrequiredbank is a virtual or external bank account. wallet is a deposit address or an external wallet. One of: bank, wallet.

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

statusenumrequiredWhere this record is in its lifecycle. One of: pending, active.

One of pending active

labelstringrequiredShort name chosen for this record.
is_primarybooleanrequiredPrimary for its Payezy account, or the default withdrawal destination
capabilitiesenum[]requiredWhat this account or organization is allowed to do.

One of receive_deposits hold_funds withdrawals

railsstring[]requiredRails this account can receive.
assetstringAsset code, such as USD, USDC, or SBC.
account_idstring (uuid)The Payezy financial account this backs (payezy source only)
account_namestringName on the bank account.
bankLinkedBankDetailsBank details of a linked account.
bank.bank_namestringName of the bank.
bank.routing_numberstringABA routing number of the US bank.
bank.account_numberstringFull number, only for Payezy-issued deposit accounts
bank.account_last4stringLast four digits of the bank account number.
bank.account_typestringWhether the bank account is a checking or savings account.
bank.beneficiary_namestringName to put on the wire or ACH credit.
bank.memostringNote that travels with the payment, up to 140 characters.
walletLinkedWalletDetailsWallet address and chain of a linked account.
wallet.networkstringrequiredBlockchain network, such as base.
wallet.addressstringrequiredOn-chain address of the linked wallet.
created_atstring (date-time)requiredWhen this record was created, as an ISO-8601 timestamp.

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.