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.
Query parameters
Section titled “Query parameters”eventNamestring- Which event to aggregate; omit for all.
calculationstringcount,distinct_customers,sum,avg,min, ormax.overPropertystring- The numeric property for sum/avg/min/max; required for those calculations.
periodstringdaily(default),weekly, ormonthlybuckets.customerIdstring- Filter to one shop.
startDatestring- Window start; defaults to 30 days ago.
endDateworks the same.
Returns
Section titled “Returns”200The aggregate
total plus the bucketed series.400Numeric calculation without
overProperty, or unknown calculation/period.401Bad or missing
X-Api-Key.