Commerce Promotion Create
commerce_promotion_createCreates a new promotion in Drupal Commerce, defining its store, offer, conditions, and label.
Instructions
Create a new commerce promotion.
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": {
"id": "<id>",
"label": "<label>",
"store_id": "<store_id>",
"offer": "<offer>"
},
"name": "commerce_promotion_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| label | Yes | ||
| offer | Yes | ||
| store_id | Yes | ||
| conditions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||