Invoices
Invoice Journal Entries
Every ledger posting that references an invoice — issuance, tax reclass, payment, and any credit, refund or write-off legs — each with its debit and credit account.
GET
Invoice journal entries (ledger drill)
Returns every ledger posting that references this invoice: its Code-1
issuance, Code-6 tax reclass, Code-3 payment, and any credit, refund, or
write-off legs. Each entry is one balanced transfer — a debit account and a
credit account (id, code, and name), an amount in minor units, its posting
code, and a timestamp. This is the finance-accounting side of the invoice
page: the answer to “which postings produced this invoice’s numbers?”
Account ids deep-link each leg to its ledger account;
transaction_id links
to the journal entry itself. See
Explain any number for how this fits with the
other drill-down endpoints, and the ledger guide for what
each posting code means.
Example Request
Example Response
Entry Fields
Read-only. An existing invoice with no postings yet returns an empty
entries list — a draft, or an invoice whose best-effort posting is still
pending reconciliation. A missing or cross-tenant id returns 404.