Update Coupon Code
update_coupon_codeUpdate one coupon code in the provided event.
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": {
"event_id": "<event_id>",
"coupon_code_id": "<coupon_code_id>"
},
"name": "update_coupon_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The code buyers type. Editable; past orders keep the code they were bought with. | |
| end_time | No | Validity window end as a local event-time datetime without a timezone designator, e.g. 2026-08-21T15:00:00; interpreted in the event's timezone. Pass null to clear it. | |
| event_id | Yes | Event UUID returned by search_events. | |
| is_enabled | No | ||
| start_time | No | Validity window start as a local event-time datetime without a timezone designator, e.g. 2026-08-21T15:00:00; interpreted in the event's timezone. Pass null to clear it. | |
| coupon_code_id | Yes | ||
| ticket_type_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | ||
| coupon | Yes | ||
| message | Yes |