wafle_coupons_update
Update a store coupon by ID. Only the fields you provide are changed, leaving other coupon settings intact.
Instructions
Patch a coupon by id. Only sent fields change.
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": {
"slug": "<slug>",
"coupon_id": "<coupon_id>"
},
"name": "wafle_coupons_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| value | No | ||
| active | No | ||
| max_uses | No | ||
| coupon_id | Yes | ||
| expires_at | No |