createPromocode
Create a promocode that members enter to redeem a coupon, in the coupon's location. Returns the created promocode. The code must be unique in the location, ignoring case. A redemption limit cannot exceed the coupon's own. Get couponRef from getCoupons. 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": {
"promocode": "<promocode>"
},
"name": "createPromocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promocode | Yes | Promocode to create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promocode | Yes |