validate_coupon_code
Checks a coupon code for validity and redeemability without redeeming it, considering validity dates, usage limits, and optional project, before showing redemption options to a customer.
Instructions
Validate a coupon code without redeeming it. Checks whether the given coupon code is valid and can be redeemed, considering the coupon configuration validity dates and usage limits. This is a non-destructive check — the coupon code remains unredeemed and available for future use. Use this before presenting redemption options to a customer.
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": {
"couponCode": "<couponCode>"
},
"name": "validate_coupon_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| couponCode | Yes | The coupon code string to validate. | |
| validationDate | No | The date to check validity against, in ISO 8601 format (YYYY-MM-DD). Defaults to today if not specified. | |
| projectShortName | No | Short name of the project to validate the coupon code against. Limits validation to coupons associated with a specific project. |