Skip to content

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/revenue

Query Parameters

ParameterDefaultDescription
days30Window 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 }
    ]
  }
}
FieldDescription
totalRevenueSum of all completed payments (all time).
windowDaysThe window length actually applied.
windowRevenueCompleted-payment revenue within the window.
seriesPer-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"