Get WooCommerce Sales Report
woocommerce_get_sales_reportRetrieve aggregate sales totals (revenue, orders, items, tax, shipping, discounts, refunds) for a week, month, year, or custom date range.
Instructions
Retrieve aggregate sales totals (revenue, orders, items, tax, shipping, discounts, refunds) for a period or custom date range.
Args:
period: 'week'|'month'|'last_month'|'year' (optional; omit if using date_min/date_max)
date_min / date_max (string, optional): YYYY-MM-DD custom range, overrides 'period'
response_format ('markdown'|'json'): default 'markdown'
Returns: Sales totals summary. If neither period nor date range is given, WooCommerce defaults to the current week.
Examples:
Use when: "what were our sales last month" -> period="last_month"
Use when: "sales between June 1 and June 30" -> date_min="2026-06-01", date_max="2026-06-30"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Predefined period: 'week', 'month', 'last_month', 'year'. Overridden by date_min/date_max if provided. | |
| date_max | No | End date (YYYY-MM-DD), for a custom range | |
| date_min | No | Start date (YYYY-MM-DD), for a custom range | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |