Skip to main content

Get Journal Entry Lines

GET 

/api/ledger/entries/:entry/lines

The entry's GL-impact journal lines — a lightweight cousin of Get Journal Entry that returns only the lines array (no sync_links, operations or reversal_chain). Drives the entries table's inline "Lines" row expansion.

Authorization

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

Lines are ordered GL-impact-first: debits before credits, each ordered by nominal code.

Each line includes:

  • directiondebit or credit
  • amount — the extended (line total) amount as a string
  • quantity, tax_amount — strings, or null
  • nominal_code{ id, code, name } of the account the line posts to
  • is_overridden — true when a durable override remapped this line's account
  • nominal_code_original — the account it WOULD have derived to (non-null only when overridden), drives the <derived> → <override> display
  • tax_rate{ id, name } or null
  • source_line{ type, id } of the originating document line, or null
  • role — economic role within a document-style entry: primary (product leg), control (A/R or A/P leg), tax, or discount, recovered from the mapped nominal code. The GL Impact table shows the invoiced quantity on primary legs only (v2 copies the quantity onto the control leg, so a role-blind column would double-count it); null on paths that don't load lines
  • pushed_to_providerfalse marks the control line (A/R on an Invoice/Credit Note, A/P on a Bill) that the connected provider auto-books itself, so SKU omits it from the push and the GL Impact table dims it; true = pushed; null when no accounting provider is connected

Authentication: Requires Bearer token.

Returns 404 when the entry does not exist (route is numeric-constrained).

Request

Responses

OK

Response Headers
    Content-Type