Reports: get sums report postingaccount ledger
reports_get_sums_ledgerGet the postingaccount ledger for a selected period and account. Shows all postings of that account on the fly, no report creation needed.
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.
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. | |
| api_key | No | Optional. The BB customer api_key to act on. Defaults to the BB_API_KEY configured on the server — only set this to target a different customer. | |
| 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 |