Skip to content

Usage events report

GET/api/v1/usage_events/report

Aggregates events into a gapless time series: every bucket in the window appears, zero-filled when empty, so the response charts directly. Non-numeric property values are skipped in numeric calculations rather than erroring.

eventNamestring
Which event to aggregate; omit for all.
calculationstring
count, distinct_customers, sum, avg, min, or max.
overPropertystring
The numeric property for sum/avg/min/max; required for those calculations.
periodstring
daily (default), weekly, or monthly buckets.
customerIdstring
Filter to one shop.
startDatestring
Window start; defaults to 30 days ago. endDate works the same.
200The aggregate total plus the bucketed series.
400Numeric calculation without overProperty, or unknown calculation/period.
401Bad or missing X-Api-Key.