deleteCoupon
Delete a coupon so it can no longer be redeemed. Deleting is permanent and cannot be undone. It also archives every promocode of the coupon and removes the coupon from the plans, resource pricing tiers, and subscriptions it is granted on, so those subscriptions' future invoices are no longer discounted. Purchases already discounted keep their discount, and the coupon's redemptions stay. Returns the coupon as it was before the delete. Get couponId from getCoupons. Never invent UUIDs; only use values from prior tool responses.
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": {
"couponId": "<couponId>"
},
"name": "deleteCoupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| couponId | Yes | The id of the coupon. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | Yes |