Get money in and out and the bank balance per month (by administration)
Money in and out per month and the bank and cash balance over time (default the last 12 months), from the ledger accounts of the bank and cash journals. Use it for questions like 'how much money came in last quarter', 'what was our bank balance at the end of each month' or 'are we burning cash'. Lines of one transaction are netted, so a transfer between two of the ledger's own bank accounts within one entry counts as neither. accounts lists the bank and cash accounts with their balances. 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.
Same as the ledger endpoint, addressed by LedgerSuite administration id instead of ledgerId. Other LedgerSuite products call this with their own client_credentials token (audience urn:ledgersuite:askledger, scope askledger:read) for administrations that include them; company group API keys and OAuth tokens work too.
Requires the ledger:read scope (Lezen). Same operation as the MCP tool get-cash-flow.
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.
administrationId*stringLedgerSuite administration id; its linked ledger is used
fromMonth?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])$OK
application/json- response
currency*|Base currency of the ledger
firstTransactionDate*|Date of the oldest synced line on a bank or cash account (YYYY-MM-DD)
openingBalance*numberBank and cash balance before the first month
closingBalance*numberBank and cash balance at the end of the last month
accounts*array<>Bank and cash accounts; empty when the ledger's journals name no account
months*array<>curl -X GET "https://example.com/administrations/string/cash-flow"{ "currency": "string", "firstTransactionDate": "string", "openingBalance": 0, "closingBalance": 0, "accounts": [ { "ledgerAccountId": "string", "code": "string", "name": "string", "journalCodes": [ "string" ], "journalType": "sales", "openingBalance": 0, "closingBalance": 0 } ], "months": [ { "month": "string", "openingBalance": 0, "inflow": 0, "outflow": 0, "net": 0, "closingBalance": 0 } ]}