API reference / Act as a platform
Get a customer's funding instructions
GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/accounts/{accountId}/funding
Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/accounts/{accountId}/funding.
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. |
accountIdpath, uuidrequired | The Payezy account id from list accounts. |
Response 200
Ways to send money into the account
| Field | What it does |
|---|---|
itemsFundingInstrument[]required | Records in this page. |
items[].idstring (uuid)required | Identifier of this record. |
items[].kindenumrequired | virtual_account is the bank account number. deposit_address is the crypto address. One of: virtual_account, deposit_address. One of |
items[].statusenumrequired | Where this record is in its lifecycle. One of: pending, active, closed. One of |
items[].partnerstringrequired | Banking or payout partner that handled this. |
items[].assetstringrequired | Asset code, such as USD, USDC, or SBC. |
items[].networkstringrequired | Blockchain network, such as base. |
items[].railsstring[]required | Rails this account can receive. |
items[].bankobject | US bank account to attach. |
items[].bank.bank_namestringrequired | Name of the bank. |
items[].bank.bank_addressstring | Street address of the bank. |
items[].bank.routing_numberstringrequired | ABA routing number of the US bank. |
items[].bank.account_numberstringrequired | Bank account number. Responses return only the last four digits. |
items[].bank.beneficiary_namestringrequired | Name to put on the wire or ACH credit. |
items[].bank.beneficiary_addressstring | Address of the account holder who receives the deposit. |
items[].bank.memostring | Note that travels with the payment, up to 140 characters. |
items[].addressstring | On-chain deposit address |
Errors to handle
| Code | What it means and what to do |
|---|---|
no_virtual_account409 | this account has no active deposit details yet |
account_not_ready409 | this account is still being set up |
Every error is a Problem document. Branch on code; quote request_id to support.