redeem_promo_code
Applies a promotional code to a Flighty user account and requires write access enabled. Use it to activate a promo code through Flighty's API.
Instructions
redeem_promo_code: POST /v1/user/promocode/{code}/redeem. Mutating; requires FLIGHTY_ALLOW_WRITES=true. Not live-validated. path keys: code. Mutation behavior has not been live-tested.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "redeem_promo_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| query | No | ||
| payload | No | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||