commerce.create_promotion
Creates a multi-product storefront flash-sale / festival promotional campaign with discount value, date range, and optional countdown banner.
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>",
"discountValue": "<discountValue>"
},
"name": "commerce.create_promotion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Promotion campaign name | |
| type | No | Discount type (default 'percentage') | |
| theme | No | Banner theme | |
| siteId | No | Optional store Site ID | |
| endDate | No | Optional ISO end date | |
| headline | No | Optional storefront banner headline | |
| badgeText | No | Optional badge label | |
| startDate | No | Optional ISO start date | |
| subheadline | No | Optional banner subheadline | |
| productNames | No | Optional target product names (applies storewide if omitted) | |
| discountValue | Yes | Discount percentage or fixed NPR amount | |
| publishBanner | No | Publish storefront announcement banner immediately |