Get Series
Time-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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Reporting window. One of the preset windows below, or custom (requires date_from and date_to):
- today — current day only
- week — Monday of the current week to today
- mtd — Month To Date: 1st of this month to today
- qtd — Quarter To Date: 1st of this quarter to today (e.g. Apr 1 in Q2)
- ytd — Year To Date: Jan 1 to today
- rolling_30 — last 30 calendar days, regardless of month boundaries
- rolling_60 — last 60 calendar days
- rolling_90 — last 90 calendar days (standard treasury lookback)
- custom — supply
date_from=YYYY-MM-DD&date_to=YYYY-MM-DD
Time bucket size for the x-axis:
- daily — one point per day (best for: today, week, mtd, rolling_30)
- weekly — one point per Mon–Sun week (best for: rolling_60, rolling_90, qtd)
- monthly — one point per month (best for: ytd, custom long ranges)
Start date for period='custom' (YYYY-MM-DD).
End date for period='custom' (YYYY-MM-DD).
Response
Successful Response
