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.
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:
direction—debitorcreditamount— the extended (line total) amount as a stringquantity,tax_amount— strings, or nullnominal_code—{ id, code, name }of the account the line posts tois_overridden— true when a durable override remapped this line's accountnominal_code_original— the account it WOULD have derived to (non-null only when overridden), drives the<derived> → <override>displaytax_rate—{ id, name }or nullsource_line—{ type, id }of the originating document line, or nullrole— economic role within a document-style entry:primary(product leg),control(A/R or A/P leg),tax, ordiscount, recovered from the mapped nominal code. The GL Impact table shows the invoiced quantity onprimarylegs only (v2 copies the quantity onto the control leg, so a role-blind column would double-count it);nullon paths that don't load linespushed_to_provider—falsemarks 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;nullwhen no accounting provider is connected
Authentication: Requires Bearer token.
Returns 404 when the entry does not exist (route is numeric-constrained).
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
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.