create_coupon
Generate discount coupons for Stream by specifying name, value, and type (percentage or fixed amount with currency). Configure active status for promotional campaigns.
Instructions
Create a new discount coupon on Stream.
Set is_percentage to True for percentage discount, False for fixed amount. For fixed coupons, currency is required (e.g. SAR, USD).
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>",
"discount_value": "<discount_value>"
},
"name": "create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| discount_value | Yes | ||
| is_percentage | No | ||
| currency | No | ||
| is_active | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||