Appearance
Dashboard Revenue
Completed-payment revenue: all-time total plus a rolling window with a daily series. Useful for "revenue this month" style reporting.
GET /v1/dashboard/revenueQuery Parameters
| Parameter | Default | Description |
|---|---|---|
days | 30 | Window length in days (max 365). |
Response
json
{
"data": {
"totalRevenue": 12450.00,
"windowDays": 30,
"windowRevenue": 1890.00,
"series": [
{ "date": "2026-05-09", "value": 240.00 },
{ "date": "2026-05-12", "value": 99.00 }
]
}
}| Field | Description |
|---|---|
totalRevenue | Sum of all completed payments (all time). |
windowDays | The window length actually applied. |
windowRevenue | Completed-payment revenue within the window. |
series | Per-day revenue within the window (days with no revenue are omitted). |
Example
bash
curl -X GET "https://api.packedge.dev/v1/dashboard/revenue?days=90" \
-H "Authorization: Bearer pk_your_api_key"