create_automatic_discount_basic
Create automatic percentage or fixed amount discounts applied without a code when cart meets conditions like minimum subtotal or quantity.
Instructions
Create an automatic amount-off discount (percentage or fixed) that's applied without a code when cart meets criteria.
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": {
"title": "<title>",
"startsAt": "<startsAt>",
"discountType": "<discountType>",
"discountValue": "<discountValue>"
},
"name": "create_automatic_discount_basic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Name shown to customers and in admin. | |
| startsAt | Yes | Activation date (ISO 8601). | |
| endsAt | No | ||
| discountType | Yes | Type of discount. | |
| discountValue | Yes | Percentage (0–100) or fixed dollar amount. | |
| appliesOnEachItem | No | For fixed_amount: apply to each item. Default: false. | |
| appliesToAll | No | Apply to all products. Default: true. | |
| productIds | No | ||
| collectionIds | No | ||
| variantIds | No | ||
| minimumSubtotal | No | ||
| minimumQuantity | No | ||
| combinesWith | No | Discount classes this discount can combine with. |