update_discount
Modify an existing discount code's properties: code, type, amount, usage limit, or expiry date.
Instructions
[WPCafe Pro] Update an existing discount code.
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": {
"id": "<id>"
},
"name": "update_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Discount ID | |
| code | No | New code string | |
| type | No | Discount type | |
| amount | No | New discount value | |
| max_uses | No | Updated usage limit | |
| expiry_date | No | New expiry date (YYYY-MM-DD) |