Last modified:2026-08-13 18:45:26
Returns top-up and one-time purchase counts grouped by plan name for the period. Each item includes a type of topup or one_time.Request: Bearer token (admin)Query: period - one of: last_7_days, monthly, last_3_months, last_6_months, this_year, previous_year (no daily)Success: 200 - data.period plus data.distribution[] (each: plan_name, count, type [topup|one_time]).Query: demo (optional, default false) - fabricated placeholder data, temporaryErrors: 401 - invalid token | 403 - not admin | 422 - invalid period