API reference / Act as a platform
List a customer's accounts
GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/accounts
Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/accounts.
When to use it
After the customer is active, to find the account a later payment pays from.
Before you call it
- Organization
platform, customer active - 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
Financial accounts with balances
| Field | What it does |
|---|---|
itemsFinancialAccount[]required | Records in this page. |
items[].idstring (uuid)required | Payezy account id. Send it as accountId or account_id. |
items[].namestringrequired | Name of the Payezy account. |
items[].currencystringrequired | ISO currency code, such as USD. |
items[].statusenumrequired | Whether the account is open, frozen, or closed. One of: active, frozen, closed. One of |
items[].balanceBalancerequired | USD amounts as decimal strings. Available excludes holds and pending credits. |
items[].balance.currencystringrequired | ISO currency code, such as USD. |
items[].balance.postedstringrequired | Ledger balance, including amounts that are not available to spend yet, as a decimal string. |
items[].balance.availablestringrequired | Balance that can be spent now, as a decimal string. |
items[].balance.pending_instringrequired | Incoming funds not yet settled |
items[].balance.pending_outstringrequired | Held for payouts in flight |
items[].created_atstring (date-time)required | When this record was created, as an ISO-8601 timestamp. |