unredeem_code
Reverse a redemption made by mistake. Only a redeemed code changes, and the participant assignment is kept — this is the safe way to undo a redeem_code call. To also take the code back from the participant, use unassign_code instead. Requires the Codes & Coupons module enabled on the account — on 403 "module not enabled", do NOT retry; tell the user to contact Sweeppea support.
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": {
"coupon_token": "<coupon_token>"
},
"name": "unredeem_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_token | Yes | The code token (UUID v4) of a redeemed code |