Calculate refund rate by product, category and time period.
### name
Refund Rate Analysis — By Product, Vendor, or Period
### oneLiner
Calculates the refund rate for each product or vendor over a selected period and shows exactly where money is leaking.
### whenToUse
- Before a supplier review conversation, to bring hard numbers on product quality.
- When one product category appears to generate more complaints than the rest.
- At end of quarter, to identify which SKUs are eroding margin through returns.
### howToRun
```
Run skill: shopify-admin-refund-rate-analysis
Store: yourstore.myshopify.com
days_back: 30
group_by: product
min_orders: 5
```
### whatYouGet
A CSV file `refund_rate_YYYY-MM-DD.csv` with columns: `group`, `group_name`, `total_units_sold`, `refunded_units`, `refund_rate_pct`, `total_refund_amount`, `currency`. Groups below `min_orders` are excluded so single-order outliers don't skew rates. A refund rate above 5–10% on a specific product typically signals a listing, quality, or expectation mismatch.
### polishContext
### safetyNote