---
title: "Generate account statement"
method: GET
path: "/api/ledger/statements"
tags: ["Statements"]
---

# Generate account statement

`GET /api/ledger/statements`

Generate a statement for an account within a date range.
Supports JSON format (default) or BAI2 text format for banking integration.

## Query parameters

- `accountId` string, required
- `from` string, date, required
- `to` string, date, required
- `currency` string
- `format` 'json' | 'bai2'

## Headers

- `x-tenant-id` string, required

## Response `200`

Account statement

- StatementResponse
  - `accountId` string
  - `currency` string
  - `from` string, date
  - `to` string, date
  - `openingBalanceMinor` string
  - `closingBalanceMinor` string
  - `entries` StatementEntry[]
    - `occurredAt` string, date-time
    - `transferId` string, uuid
    - `journalId` string, uuid
    - `eventType` string
    - `side` 'debit' | 'credit'
    - `amountMinor` string
    - `currency` string
    - `runningBalanceMinor` string
    - `memo` string, nullable
  - `generatedAt` string, date-time

## Other responses

- `400` — Validation error
- `401` — Missing or invalid authentication

---

[API](https://skmtc.net/stalela/apis/stalela-ledger-api.md) · [All operations](https://skmtc.net/stalela/apis/stalela-ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stalela/stalela-ledger-api/versions/59ee80b620db/schema)
