Invoices
Invoice Status Timeline
Every recorded status transition of an invoice, oldest first — captured by a database trigger so no transition is missed.
GET
Invoice status timeline
Returns the invoice’s status timeline — every transition of its status
(
draft → open → paid / past_due / uncollectible / void), oldest
first. Transitions are captured by a database trigger at the source of truth, so
no transition is missed, including automatic ones (a dunning worker marking an
invoice past_due, say).
The first row is the creation state, so its from_status is null.
Example Response
Read-only, and derived from a trigger — the timeline fills in as the invoice’s
status actually changes. An existing invoice with no recorded transitions
returns an empty
history list; a missing or cross-tenant id returns 404.