update_promo_code
Update an existing promo code's status, usage limit, or expiry date to control promotions.
Instructions
Update an existing promo code (e.g. disable it or change expiry).
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": {
"promo_code_id": "<promo_code_id>"
},
"name": "update_promo_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promo_code_id | Yes | The promo code ID to update. | |
| status | No | New status. | |
| quantity | No | New usage limit. | |
| expiry_date | No | New expiry date as ISO 8601 string. |