Get Invoice
Returns the whole current invoice document: the invoice, its live
payments (newest first), and headJournalId — the concurrency token
every subsequent write to this invoice sends as If-Match.
Unlike the listing, the detail read returns deleted invoices, so a
delete has a confirmable terminal state; 404 is reserved for an unknown
id.
Required permission: company.payment:read
Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
Invoice identifier
Response
The invoice, its live payments, and the concurrency token
THE invoice representation — the same shape everywhere an endpoint returns an invoice (listing rows, the detail read, and every write's refreshed-row response). headJournalId is the invoice's current journal head — the optimistic-concurrency token subsequent writes echo back as If-Match.
The invoice's live payments, newest first
The invoice's current journal head — the If-Match value for the next write (also carried on the invoice row)
