askledgerDocs
REST-APITransactions
Documentatie

Get the cash flow statement per month

GET
/ledgers/{ledgerId}/cash-flow-statement

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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

ledgerId*string

Ledger (administration) id, from list-ledgers

Length1 <= length

Query Parameters

fromMonth?string

First month; default 11 months before toMonth (YYYY-MM, inclusive)

Match^\d{4}-(0[1-9]|1[0-2])$
toMonth?string

Last month; default the current month (YYYY-MM, inclusive)

Match^\d{4}-(0[1-9]|1[0-2])$

Response Body

OK

application/json
  1. 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  ]}