How each discount code did
coupon_statsEach discount code's paid orders over the last N days: how many times it was used, the revenue from those orders, the discount it gave away and the average order. Codes nobody used are listed too. Real orders only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "coupon_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back. Use 0 for all time. Default 90. | |
| account | No | Only to work in a client's account: its id from list_accounts. Leave it out for your own account. | |
| product | No | Optional: one checkout's id or slug. Default: every checkout. |