Payezydevelopers
Sandbox

API reference / Act as a platform

List a customer's linked accounts

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/linked-accounts

Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/linked-accounts. Every bank account and wallet connected to the organization (the Accounts page): the ones Payezy opened for its accounts (named virtual accounts and custodial wallets) and, with counterparties:view, its own accounts elsewhere (withdrawal destinations). An organization can hold several of each. Requests to open more that are still in progress are listed under requests.

Before you call it

  • Organizationplatform
  • Permissionplatform:customer_accounts_view

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.

Response 200

Bank accounts first, then wallets; Payezy-issued before external

FieldWhat it does
itemsLinkedAccount[]requiredRecords in this page.
items[].idstring (uuid)requiredIdentifier of this record.
items[].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

items[].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

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

One of pending active

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

One of receive_deposits hold_funds withdrawals

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

One of bank wallet

requests[].sourcestringrequiredWhere this customer or account came from.
requests[].source_labelstringrequiredName of the linked-account source.
requests[].labelstringrequiredShort name chosen for this record.
requests[].statusenumrequiredWhere this record is in its lifecycle. One of: requested, opening, opened, failed.

One of requested opening opened failed

requests[].created_atstring (date-time)requiredWhen this record was created, as an ISO-8601 timestamp.