Reports: get sums report postingaccount ledger
reports_get_sums_ledgerRetrieve the postingaccount ledger for a selected account and date range. Get on-demand postings without pre-creating a sums report.
Instructions
🟢 READ-ONLY: Fetches data. Makes no changes to the accounting records.
get sums report postingaccount ledger
Returns the postingaccount ledger ("Kontenblatt") of one postingaccount, holding its postings of the requested period.
The postingaccount numbers available for a sums report are provided by reports/get/sums, both as the keys of the 'sums' object and as its entries' 'postingaccount_number'.
In contrast to the report itself the ledger is created on the fly, so no report has to be created beforehand. Note that retrieving the ledger of a postingaccount holding a lot of postings may take a while.
Use to read one posting account's ledger for a bounded date range.
For the totals across all posting accounts, use reports_get_sums.
The API returns the ledger on demand; no previously generated sums report or report ID is required.
Endpoint: POST /reports/get/sums/ledger
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The date the postings are taken into account by. Can be either 'date' ("Buchungsdatum") or 'date_delivery_else_date' ("Buchungs- und Leistungsdatum"). If specified, the field will be validated. | |
| date_to | Yes | The last day of the period the ledger is returned for, in format 'YYYY-MM-DD' (e.g. '2026-03-31'). | |
| date_from | Yes | The first day of the period the ledger is returned for, in format 'YYYY-MM-DD' (e.g. '2026-01-01'). | |
| postingaccount_number | Yes | The number of the postingaccount to return the ledger for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | blank | |
| success | Yes | Success boolean | |
| report_sums_postingaccount_ledger | No | The ledger's data, containing the keys 'integrityError', 'postingaccount_number' and 'postingaccountLedger'. The 'postingaccount_number' is the number of the postingaccount the ledger has been returned for, whereas 'postingaccountLedger' is an array of the postingaccount's postings within the requested period, each one providing its date, posting text, counter postingaccount, amount, vat and the unformatted balance 'balanceAfterAbsolute' together with its side 'balanceAfterSide'. The array is empty if there are no postings in the requested period. |