OpenapiPoints
Points consumption statistics for the admin statistics page.
Requires the `points.view` permission. Consumption is attributed to the transaction's creation day.
GET
Requires the points.view permission. Consumption is attributed to the
transaction's creation day.
bearer_authheader
AuthorizationBearer <token>days?|Statistics window in days; only 7 or 30 are accepted. Defaults to 7.
Format
int32Points consumption statistics for the requested window
application/json- response
Points consumption statistics over a fixed window, measured from
consume transactions only — revoked/reclaimed points never offset
these figures.
buckets*array<>consumingUsers*integerFormat
int64consumptionTrend*array<>totalConsumedPoints*integerFormat
int64windowDays*integerFormat
int32curl -X GET 'https://example.com/api/points/stats/consumption'Example Response
{
"buckets": [
{
"bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
"bucketKey": "string",
"bucketName": "string",
"consumedPoints": 0
}
],
"consumingUsers": 0,
"consumptionTrend": [
{
"consumedPoints": 0,
"date": "string"
}
],
"totalConsumedPoints": 0,
"windowDays": 0
}