curl --globoff --request GET \
--url 'https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/statements?format=pdf&year=2026' \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"dataURI": "data:application/pdf;filename=generated.pdf;base64,JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c+PgplbmRvYmoK",
"format": "pdf"
}
}Generate a statement
Generates an account statement as a PDF or CSV and returns it inline as a data URI: read format to know which. Choose the period with chosenMonth, year, or startDate + endDate; if more than one is sent, chosenMonth wins, then the date range, then year. Fee charges are merged into the statement automatically.
The two formats encode differently: the PDF is data:application/pdf;filename=generated.pdf;base64,… (base64); the CSV is data:text/csv;charset=utf-8,… (URL-encoded, not base64, starting with a UTF-8 byte-order mark).
Large statements are refused rather than timed out: more than 30,000 rows (CSV) or 5,000 rows (PDF) returns a 422 STATEMENT_TOO_LARGE. For larger periods, queue the statement, which supports up to 250,000 CSV rows or 50,000 PDF rows. An empty CSV is a 404 STATEMENT_NO_TRANSACTIONS. An empty PDF returns the same 404 when crypto is enabled for the programme; otherwise it completes with a no-activity statement.
To download in a browser, set the data URI as a link’s href with a download name; the browser handles both encodings. Server-side, take everything after the first comma and base64-decode it for PDF or percent-decode it for CSV.
curl --globoff --request GET \
--url 'https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/statements?format=pdf&year=2026' \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"dataURI": "data:application/pdf;filename=generated.pdf;base64,JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c+PgplbmRvYmoK",
"format": "pdf"
}
}