ghl_create_coupon
Create a discount coupon by specifying code, discount type, and value. Optionally set validity dates, usage limits, and product restrictions.
Instructions
Create a discount coupon.
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": {
"name": "<name>",
"code": "<code>",
"discountType": "<discountType>",
"discount": "<discount>"
},
"name": "ghl_create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Coupon code (e.g. SAVE20) | |
| name | Yes | ||
| endDate | No | Coupon expiry date ISO 8601 | |
| discount | Yes | Discount value (% or $ amount) | |
| startDate | No | Coupon validity start date ISO 8601 | |
| productIds | No | Restrict to specific product IDs | |
| usageLimit | No | Max number of times coupon can be used | |
| discountType | Yes |