alopeyk_validate_coupon
Validate a discount coupon code to verify its validity and eligibility for application.
Instructions
Validate a discount coupon code (read-only).
Persian purpose: بررسی اعتبار کد تخفیف. Requires an access_token. Maps to
POST /api/v2/coupons with body {code}.
Args: code: The coupon code to validate. instance: Configured instance to use (default when omitted).
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>"
},
"name": "alopeyk_validate_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||