Get the cash flow statement per month
The cash flow statement (kasstroomoverzicht) per month by the indirect method (default the last 12 months): result and depreciation plus the change of every balance sheet RGS rubriek, in operating, investing and financing activities, and the resulting change in liquid assets (BLim). Money in is positive, out negative. Balance sheet accounts without an RGS code are one operating line, so the sections add up to the change in liquid assets; difference shows any gap. For money in and out of the bank accounts themselves use get-cash-flow. 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 get-cash-flow-statement.
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])$OK
application/json- response
currency*|Base currency of the ledger
months*array<string>The months covered (YYYY-MM)
firstTransactionDate*|Date of the oldest synced line (YYYY-MM-DD)
sections*array<>liquidAssets*Liquid assets (RGS BLim)
difference*array<number>Sum of the sections − change in liquid assets: 0 when the books balance
curl -X GET "https://example.com/ledgers/string/cash-flow-statement"{ "currency": "string", "months": [ "string" ], "firstTransactionDate": "string", "sections": [ { "code": "operating", "name": "string", "amounts": [ 0 ], "total": 0, "lines": [ { "code": "string", "name": "string", "amounts": [ 0 ], "total": 0 } ] } ], "liquidAssets": { "opening": 0, "change": [ 0 ], "closing": [ 0 ], "total": 0 }, "difference": [ 0 ]}