discounts_coupon_categories
Choose which categories a coupon code applies to. Money is integer minor units (cents). Calling this changes nothing: it returns a preview of what would change and a confirmation link. Only the merchant, on that page, can make it happen.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "discounts_coupon_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The existing coupon code. | |
| onlyCategories | No | Category names: the code takes money off these only. | |
| exceptCategories | No | Category names the code never touches. |