validate_coupon
Check the validity of a discount coupon code for a specific eSIM package during checkout.
Instructions
Validates a discount coupon code for checkout. Note: User login is mandatory to validate a coupon. If this returns a 401 Unauthorized error, inform the user that they must log in (using send_agent_otp) first.
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": {
"code": "<code>",
"packageCode": "<packageCode>",
"token": "<token>"
},
"name": "validate_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The coupon code to validate (e.g. WELCOME10). | |
| token | Yes | The secure session token returned by verify_agent_otp. | |
| packageCode | Yes | The eSIM package code to check applicability for. |