Get ledger statement of account

Retrieves a bank-style statement of account showing all ledger movements that affected the merchant's balance for the specified account and date range. **Features:** - Opening balance at period start - Chronological list of all movements (debits and credits) - Running balance after each movement - Closing balance at period end - Human-readable descriptions enriched from order context **Date Range:** - Use `from` and `to` parameters in YYYY-MM-DD format - Maximum range is 365 days - Granularity parameter controls date cutoffs (daily or monthly) **Pagination:** - Uses cursor-based pagination - The `cursor` from the response can be used to fetch the next page - Default page size is 50, maximum is 100 **Example:** `GET /v1/organizations/org3_xxx/merchants/mrc_xxx/accounts/acc_xxx/reports/ledger-statement?from=2025-01-01&to=2025-01-31&granularity=daily&limit=50`

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

organizationIdstringRequired
Organization ID
merchantIdstringRequired
Merchant ID
accountIdstringRequired

Virtual account ID (must be a virtual account)

Headers

x-admin-api-keystringRequired

Query parameters

fromstringRequired

Start date (YYYY-MM-DD)

tostringRequired

End date (YYYY-MM-DD)

granularityenumOptionalDefaults to daily
Report granularity for date cutoffs
Allowed values:
cursorstringOptional

Cursor for pagination (from previous response)

limitdoubleOptional1-100Defaults to 50
Number of items per page

Response

Ledger statement generated successfully
accountIdstring
Virtual account ID
currencystring
Currency of the account
merchantIdstring
Merchant ID
periodStartdatetime
Start of the reporting period
periodEnddatetime
End of the reporting period
openingBalancestring
Balance at the start of the period
closingBalancestring
Balance at the end of the period
movementslist of objects
List of movements in chronological order
paginationobject
Pagination information
generatedAtdatetime
Timestamp when this report was generated

Errors