Skip to main content

Get Selection Summary

POST 

/api/ledger/entries/selection-summary

Per-nominal-code debit/credit/line-count breakdown of a selection of entries plus grand totals — powers the table's expandable Selection Summary panel (parity with the legacy SelectedTransactionsSummary), sourced from the real journal lines.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Authentication: Requires Bearer token.

Request body:

  • scope (optional, selected default | all) — all summarizes every entry matching the CURRENT filters (forward the same filter[...] / filter_groups query params), capped at 5000; entry_ids then optional.
  • entry_ids (array, required unless scope=all, max 5000) — the selected entry ids.

Response: entry_count, currency (null when the selection mixes currencies), total_debit, total_credit, and accounts[] of {nominal_code_id, code, name, debit, credit, line_count} (unmapped lines collapse under a null nominal_code_id).

Request

Responses

OK

Response Headers
    Content-Type