List balances per ledger account per month
Balances of general ledger accounts per month: opening balance, debit, credit, movement and closing balance, for every month in the range (default the last 12 months). Filter by ledgerAccount, classification or kind; accounts without any lines are left out. Answers questions like 'how did our revenue develop per month' or 'what was the balance of account 1300 at the end of June'. For profit and loss accounts use movement per month: their balance keeps adding up over the years. Amounts are in the ledger's base currency, debit positive and credit negative. Balances add up every synced line; when the package was synced from a certain date on (see firstTransactionDate) and that year has no opening balance entry, absolute balances miss what came before.
Requires the ledger:read scope (Lezen). Same operation as the MCP tool list-account-balances.
bearerAuthorizationBearer <token>A company group API key (al_live_…, created at /dashboard/api), an OAuth access token from the same authorization flow MCP clients use, or (other LedgerSuite products, /administrations routes only) a LedgerSuite client_credentials token.
ledgerId*stringLedger (administration) id, from list-ledgers
1 <= lengthfromMonth?stringFirst month; default 11 months before toMonth (YYYY-MM, inclusive)
^\d{4}-(0[1-9]|1[0-2])$toMonth?stringLast month; default the current month (YYYY-MM, inclusive)
^\d{4}-(0[1-9]|1[0-2])$ledgerAccount?stringLedger account id (lac_…) or account code, e.g. 1100
1 <= lengthclassification?string"asset""liability""equity""revenue""expense""unknown"kind?stringbalance or pnl (profit and loss)
"balance""pnl""unknown"limit?integerMax accounts (default 20, max 100)
1 <= value <= 100cursor?stringnextCursor of the previous page
1 <= lengthOK
application/json- response
items*array<>total*|Total matching records; null for a free-text search, which ranks instead of counting
nextCursor*|Pass as cursor to get the next page; null on the last page
currency*|Base currency of the ledger
months*array<string>The months covered (YYYY-MM)
firstTransactionDate*|Date of the oldest synced line (YYYY-MM-DD)
curl -X GET "https://example.com/ledgers/string/balances"{ "items": [ { "ledgerAccountId": "string", "code": "string", "name": "string", "classification": "asset", "kind": "balance", "rgsCode": "string", "openingBalance": 0, "closingBalance": 0, "months": [ { "month": "string", "openingBalance": 0, "debit": 0, "credit": 0, "movement": 0, "closingBalance": 0 } ] } ], "total": 0, "nextCursor": "string", "currency": "string", "months": [ "string" ], "firstTransactionDate": "string"}