API reference / Act as a platform
List a customer's own accounts
GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/own-accounts
Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/own-accounts.
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
The organization's own bank accounts and wallets outside Payezy (withdrawal destinations)
| Field | What it does |
|---|---|
itemsExternalAccount[]required | Records in this page. |
items[].idstring (uuid)required | Bank account or wallet id. Send it as external_account_id when you pay or withdraw. |
items[].typeenumrequired | What kind of object this is. One of: bank, wallet. One of |
items[].is_defaultbooleanrequired | The account preselected when paying this recipient |
items[].labelstringrequired | Short name chosen for this record. |
items[].bank_namestring | Name of the bank. |
items[].routing_numberstring | ABA routing number of the US bank. |
items[].account_last4string | Last four digits of the bank account number. |
items[].account_typestring | Whether the bank account is a checking or savings account. |
items[].railsstring[]required | Rails this account can receive. |
items[].networkstring | Blockchain network, such as base. |
items[].addressstring | On-chain address when this account is a wallet. |