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.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Authentication: Requires Bearer token.
Request body:
scope(optional,selecteddefault |all) —allsummarizes every entry matching the CURRENT filters (forward the samefilter[...]/filter_groupsquery params), capped at 5000;entry_idsthen optional.entry_ids(array, required unlessscope=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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.