Ledga

Reports

Trial balance and income statement, computed from posted entries on request.

Endpoints

MethodPathDescription
GET /reports/trial-balance Get trial balance report
GET /reports/income-statement Get income statement report
GET /reports/custom List the ledger's saved custom reports
POST /reports/custom Save a custom report
GET /reports/custom/{savedReport} Read a saved custom report
PUT /reports/custom/{savedReport} Update a saved custom report
DELETE /reports/custom/{savedReport} Delete a saved custom report
POST /reports/custom/{savedReport}/run Run a saved custom report
POST /reports/custom/{savedReport}/totals Count and sum a saved custom report's transactions
POST /reports/custom/{savedReport}/export Export a saved custom report

Trial balance

Every system account with debit and credit totals, plus one roll-up line for customer accounts. Debits equal credits or the ledger is inconsistent.

curl "https://ledga.io/api/v1/reports/trial-balance?as_of_date=2026-01-31&layer=settled" \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"

Income statement

Revenue and expense accounts for a date range, grouped by system and customer accounts, with net income. from_date and to_date are required.

curl "https://ledga.io/api/v1/reports/income-statement?from_date=2026-01-01&to_date=2026-01-31" \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"