Payezydevelopers
Sandbox

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

  • Organizationplatform, customer active
  • 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

Financial accounts with balances

FieldWhat it does
itemsFinancialAccount[]requiredRecords in this page.
items[].idstring (uuid)requiredPayezy account id. Send it as accountId or account_id.
items[].namestringrequiredName of the Payezy account.
items[].currencystringrequiredISO currency code, such as USD.
items[].statusenumrequiredWhether the account is open, frozen, or closed. One of: active, frozen, closed.

One of active frozen closed

items[].balanceBalancerequiredUSD amounts as decimal strings. Available excludes holds and pending credits.
items[].balance.currencystringrequiredISO currency code, such as USD.
items[].balance.postedstringrequiredLedger balance, including amounts that are not available to spend yet, as a decimal string.
items[].balance.availablestringrequiredBalance that can be spent now, as a decimal string.
items[].balance.pending_instringrequiredIncoming funds not yet settled
items[].balance.pending_outstringrequiredHeld for payouts in flight
items[].created_atstring (date-time)requiredWhen this record was created, as an ISO-8601 timestamp.

Usually next