Revenue Chart
Get time-series revenue data for charting.
Revenue Chart
Returns time-series revenue data suitable for charting, grouped by the specified interval.
Endpoint
GET /api/v1/organizations/:orgId/sites/:siteId/analytics/revenue-chart
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
period | string | No | Time period (day, 7d, 30d, month, 12mo, custom) |
group | string | No | Grouping interval: hour or day (default: day) |
filters | string | No | JSON-encoded filter array |
Response fields
Returns an array of time-series data points:
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 timestamp for the bucket |
revenue | number | Total revenue in the period |
orders | number | Number of orders in the period |
customers | number | Distinct paying visitors in the period |