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
- Organization
platform - Permission
platform:customer_accounts_view
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. |
Response 200
Bank accounts first, then wallets; Payezy-issued before external
| Field | What it does |
|---|---|
itemsLinkedAccount[]required | Records in this page. |
items[].idstring (uuid)required | Identifier of this record. |
items[].kindenumrequired | bank is a virtual or external bank account. wallet is a deposit address or an external wallet. One of: bank, wallet. One of |
items[].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 |
items[].statusenumrequired | Where this record is in its lifecycle. One of: pending, active. One of |
items[].labelstringrequired | Short name chosen for this record. |
items[].is_primarybooleanrequired | Primary for its Payezy account, or the default withdrawal destination |
items[].capabilitiesenum[]required | What this account or organization is allowed to do. One of |
items[].railsstring[]required | Rails this account can receive. |
items[].assetstring | Asset code, such as USD, USDC, or SBC. |
items[].account_idstring (uuid) | The Payezy financial account this backs (payezy source only) |
items[].account_namestring | Name on the bank account. |
items[].bankLinkedBankDetails | Bank details of a linked account. |
items[].bank.bank_namestring | Name of the bank. |
items[].bank.routing_numberstring | ABA routing number of the US bank. |
items[].bank.account_numberstring | Full number, only for Payezy-issued deposit accounts |
items[].bank.account_last4string | Last four digits of the bank account number. |
items[].bank.account_typestring | Whether the bank account is a checking or savings account. |
items[].bank.beneficiary_namestring | Name to put on the wire or ACH credit. |
items[].bank.memostring | Note that travels with the payment, up to 140 characters. |
items[].walletLinkedWalletDetails | Wallet address and chain of a linked account. |
items[].wallet.networkstringrequired | Blockchain network, such as base. |
items[].wallet.addressstringrequired | On-chain address of the linked wallet. |
items[].created_atstring (date-time)required | When this record was created, as an ISO-8601 timestamp. |
requestsAccountRequest[]required | Open requests (requested or opening), newest first |
requests[].idstring (uuid)required | Identifier of this record. |
requests[].kindenumrequired | Which kind of record this is. When uploading a document, send the kind from required_documents. One of: bank, wallet. One of |
requests[].sourcestringrequired | Where this customer or account came from. |
requests[].source_labelstringrequired | Name of the linked-account source. |
requests[].labelstringrequired | Short name chosen for this record. |
requests[].statusenumrequired | Where this record is in its lifecycle. One of: requested, opening, opened, failed. One of |
requests[].created_atstring (date-time)required | When this record was created, as an ISO-8601 timestamp. |