Reports
Access financial reports programmatically. All reports support date range filtering.
Profit & Loss
GET/api/v1/reports/profit-loss
| Parameter | Type | Description |
|---|---|---|
startDate | date | Period start (default: Jan 1 of current year) |
endDate | date | Period end (default: today) |
Response
{
"totalRevenue": 128500.00,
"totalExpenses": 85200.00,
"netIncome": 43300.00,
"revenueGroups": [
{ "subType": "Sales Revenue", "subtotal": 115000, "accounts": [...] },
{ "subType": "Service Revenue", "subtotal": 13500, "accounts": [...] }
],
"expenseGroups": [
{ "subType": "Cost of Goods Sold", "subtotal": 45000, "accounts": [...] },
{ "subType": "Operating Expense", "subtotal": 40200, "accounts": [...] }
]
}Balance Sheet
GET/api/v1/reports/balance-sheet
| Parameter | Type | Description |
|---|---|---|
asOfDate | date | Balance sheet as of this date (default: today) |
Trial Balance
GET/api/v1/reports/trial-balance
| Parameter | Type | Description |
|---|---|---|
asOfDate | date | As of date |
Cash Flow
GET/api/v1/reports/cash-flow
| Parameter | Type | Description |
|---|---|---|
startDate | date | Period start |
endDate | date | Period end |
AR Aging
GET/api/v1/reports/ar-aging
Accounts receivable aging — outstanding invoices bucketed by age (current, 30, 60, 90+ days).
AP Aging
GET/api/v1/reports/ap-aging
Accounts payable aging — outstanding bills bucketed by age.
Tax Summary
GET/api/v1/reports/tax-summary
| Parameter | Type | Description |
|---|---|---|
year | number | Tax year (default: current year) |
quarter | number | Quarter 1-4 (optional) |