Invoices
Upload Invoice
Records the QuickBooks invoice details against an approved invoice request. The PDF must be uploaded to document-service first — pass its ID as document_id. Corresponds to workflow node NODE_BILLING / action generate_invoice.
POST
Upload Invoice
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Required range:
x > 0Required range:
x >= 0Response
Successful Response
Previous
Get SeriesTime-series invoiced vs collected — feeds line charts and grouped bar charts.
Each point in `series` has:
- `date` — x-axis label (ISO date or YYYY-MM for monthly)
- `invoiced` — KES recognised (accrual basis)
- `collected` — KES received (cash basis)
- `gap` — invoiced minus collected (positive = clients paying late)
- `invoice_count` / `payment_count` — event counts for tooltips
**Recommended chart:** grouped bar (`invoiced` vs `collected` per bucket)
or dual-line with area fill between lines to show the accrual-cash gap.
Zero-value buckets are included so the x-axis is always continuous.
Next
Upload Invoice
