create_basic_discount
Create a percentage or fixed amount discount code for your Shopify store, with optional start/end dates, usage limits, and per-customer restrictions.
Instructions
Creates a percentage or fixed amount discount code
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>",
"code": "<code>"
},
"name": "create_basic_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Discount code (e.g. "SUMMER20") | |
| title | Yes | Internal discount title | |
| amount | No | Fixed discount amount. Use either percentage or amount. | |
| endsAt | No | End date (ISO 8601, optional) | |
| startsAt | No | Start date (ISO 8601) | |
| percentage | No | Percentage discount (e.g. 0.20 for 20%). Use either percentage or amount. | |
| usageLimit | No | Maximum number of uses (optional) | |
| appliesOncePerCustomer | No | Only once per customer |