createCoupon
Create a discount coupon in a location. Returns the created coupon. Provide either percentOff (with enabledForCredits) or amountOff, never both; amountOff is in the location currency. A coupon for subscriptionItems requires duration, and durationInMonths when duration is "repeating". Members redeem a coupon through its promocodes: create one with createPromocode. Call getLocations to list locations, or getLocation to fetch one by locationId. Get limitedItems ids from the same location: getResources for bookings, getEvents for eventTickets, getProducts for shopProducts, getPackages for packages, and getPlans for subscriptionItems. An id the location does not have is dropped, so check limitedItems in the result. Never invent UUIDs; only use values from prior tool responses.
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": {
"coupon": "<coupon>"
},
"name": "createCoupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | Yes | Coupon to create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | Yes |