Reports API
All report endpoints support CSV export by appending /csv to the path.
Tax Summary
GET /api/v1/reports/tax-summary
GET /api/v1/reports/tax-summary/csvQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
from_date | string | Start date (ISO 8601) |
to_date | string | End date (ISO 8601) |
Aging Report
GET /api/v1/reports/aging
GET /api/v1/reports/aging/csvReturns outstanding invoices grouped by age brackets (current, 1-30, 31-60, 61-90, 90+ days).
Revenue by Customer
GET /api/v1/reports/revenue-by-customer
GET /api/v1/reports/revenue-by-customer/csvQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
from_date | string | Start date (ISO 8601) |
to_date | string | End date (ISO 8601) |
Revenue by Product
GET /api/v1/reports/revenue-by-product
GET /api/v1/reports/revenue-by-product/csvQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
from_date | string | Start date (ISO 8601) |
to_date | string | End date (ISO 8601) |
Dashboard Stats
GET /api/v1/dashboard/statsReturns overview metrics: total revenue, outstanding amount, overdue amount, and invoice counts by status.
Revenue Chart
GET /api/v1/dashboard/revenue-chartReturns monthly revenue data for chart rendering.
Recent Invoices
GET /api/v1/dashboard/recent-invoicesReturns the most recent invoices.