Payezydevelopers
Sandbox

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

  • Permissionaccounts:view

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe 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, uuidrequiredA Payezy account from listAccounts.
beforequery, date-timeNo description in the spec yet.
limitquery, integerHow many items to return.

1 to 200, default 50

Response 200

Ledger lines for the account, newest first

FieldWhat it does
accountFinancialAccountrequiredNo description in the spec yet.
account.idstring (uuid)requiredNo description in the spec yet.
account.namestringrequiredNo description in the spec yet.
account.currencystringrequiredNo description in the spec yet.
account.statusenumrequiredNo description in the spec yet.

One of active frozen closed

account.balanceBalancerequiredUSD amounts as decimal strings. Available excludes holds and pending credits.
account.balance.currencystringrequiredNo description in the spec yet.
account.balance.postedstringrequiredNo description in the spec yet.
account.balance.availablestringrequiredNo description in the spec yet.
account.balance.pending_instringrequiredIncoming funds not yet settled
account.balance.pending_outstringrequiredHeld for payouts in flight
account.created_atstring (date-time)requiredNo description in the spec yet.
itemsStatementLine[]requiredNo description in the spec yet.
items[].idstring (uuid)requiredNo description in the spec yet.
items[].transaction_idstring (uuid)requiredNo description in the spec yet.
items[].directionenumrequiredcredit adds to the balance

One of credit debit

items[].amountstringrequiredNo description in the spec yet.
items[].statusenumrequiredNo description in the spec yet.

One of pending posted

items[].descriptionstringrequiredNo description in the spec yet.
items[].payment_idstring (uuid)No description in the spec yet.
items[].effective_atstring (date-time)requiredNo description in the spec yet.
next_beforestring (date-time)No description in the spec yet.