API reference / Accounts and funding
Get an account statement
GET/v1/orgs/{orgId}/accounts/{accountId}/statement
Ledger entries for an account over a period, with opening and closing balances.
Before you call it
- Permission
accounts:view
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
accountIdpath, uuidrequired | A Payezy account from listAccounts. |
beforequery, date-time | No description in the spec yet. |
limitquery, integer | How many items to return. 1 to 200, default 50 |
Response 200
Ledger lines for the account, newest first
| Field | What it does |
|---|---|
accountFinancialAccountrequired | No description in the spec yet. |
account.idstring (uuid)required | No description in the spec yet. |
account.namestringrequired | No description in the spec yet. |
account.currencystringrequired | No description in the spec yet. |
account.statusenumrequired | No description in the spec yet. One of |
account.balanceBalancerequired | USD amounts as decimal strings. Available excludes holds and pending credits. |
account.balance.currencystringrequired | No description in the spec yet. |
account.balance.postedstringrequired | No description in the spec yet. |
account.balance.availablestringrequired | No description in the spec yet. |
account.balance.pending_instringrequired | Incoming funds not yet settled |
account.balance.pending_outstringrequired | Held for payouts in flight |
account.created_atstring (date-time)required | No description in the spec yet. |
itemsStatementLine[]required | No description in the spec yet. |
items[].idstring (uuid)required | No description in the spec yet. |
items[].transaction_idstring (uuid)required | No description in the spec yet. |
items[].directionenumrequired | credit adds to the balance One of |
items[].amountstringrequired | No description in the spec yet. |
items[].statusenumrequired | No description in the spec yet. One of |
items[].descriptionstringrequired | No description in the spec yet. |
items[].payment_idstring (uuid) | No description in the spec yet. |
items[].effective_atstring (date-time)required | No description in the spec yet. |
next_beforestring (date-time) | No description in the spec yet. |