wafle_analytics_by_period
Retrieve revenue and order totals grouped by day, week, or month to compare periods like the last 30 days against previous 30 days for trend analysis.
Instructions
Time-series breakdown of analytics: revenue + orders bucketed by day/week/month.
Use for charts and 'compare last 30d to previous 30d' workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| range | No | Predefined window or 'custom' (then provide from_ts/to_ts). | 30d |
| to_ts | No | ||
| bucket | No | day | |
| from_ts | No |