get_code_discounts
List code-based discounts that require customers to enter a promo code at checkout, with optional search and pagination for finding specific promotions.
Instructions
List only code-based discounts (requires customer to enter a code at checkout).
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_code_discounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| first | No | ||
| query | No | Search query to filter code discounts |