Endpoints at a glance

MethodPathPurpose
GET/ledger/v1/balancesSingle account balance for a period
GET/ledger/v1/balances/summaryAll non-zero balances
GET/ledger/v1/balances/bucketsBucketed balances (e.g. a year by quarters)
GET/ledger/v1/transactionsTransaction lines by date range
GET/ledger/v1/subledgerSubledger rollup by dimension
GET/ledger/v1/parties/{partyId}/exposureNet exposure for one party
GET/ledger/v1/journalPaginated event journal
WS/ledger/v1/eventsLive event stream

Live API document: http://localhost:8081/q/openapi · Swagger UI: http://localhost:8081/q/swagger-ui.

Common headers

HeaderRequiredNotes
X-Tenant-IDyesOrganization to read
Authorizationin productionBearer token with {orgId}:read:ledger

Conventions

  • Balances are signed, debit-positive minor units: Σ debits − Σ credits.
  • Account references follow NNNN-slug (e.g. 1500-receivables); several endpoints accept bare 4-digit codes and ranges like 5000-5999.
  • Time is sliced with timePeriodType + timePeriodValue — see Core concepts.
  • Reads are pre-calculated. Balances and rollups are aggregated as transactions post — per account, period and every dimension type in parallel — so queries are lookups, not scans. Each query filters on one dimension at a time.