create_coupon
Create a coupon code attributed to a partner in an affiliate program, with a preview-and-confirm step to review details before the coupon is saved.
Instructions
Create a coupon code that attributes to a partner. Write: the first call returns a preview and a confirmToken; call again with confirm: true and that token to do it.
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": {
"programId": "<programId>",
"partnerId": "<partnerId>",
"code": "<code>"
},
"name": "create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| confirm | No | Set true, with confirmToken, to perform the change shown in the preview. | |
| partnerId | Yes | ||
| programId | Yes | ||
| confirmToken | No | The token a preview returned. |