update_coupon
Modify an existing coupon using its ID. Change fields such as code, type, amount, start/end dates, usage limit, or active status directly.
Instructions
Update an existing coupon by id (partial update).
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>",
"data": "<data>"
},
"name": "update_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The resource id | |
| data | Yes | Fields to change on the coupon. Common fields: code, type (percentage|fixed), amount, minPurchase, maxDiscount, startDate, endDate, usageLimit, active. |