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.
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. |