get_discount_performance
Analyze discount code performance by revenue, orders, and discount amounts over a date range, with optional filtering for a specific code.
Instructions
Get performance of discount codes — revenue, orders, and discount amounts.
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": "get_discount_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Date range (default: last_30d) | |
| discount_code | No | Specific discount code to filter. If omitted, shows all codes. |