create_discount
Create discount codes for Shopify store customers. Specify discount type (percentage or fixed amount), value, start and end dates, and usage limits.
Instructions
Create a basic discount code (percentage or fixed amount)
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>",
"discountType": "<discountType>",
"value": "<value>",
"startsAt": "<startsAt>"
},
"name": "create_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Discount code (what customers enter) | |
| title | Yes | Discount title | |
| value | Yes | Discount value (e.g., '10' for 10% or $10) | |
| endsAt | No | End date (ISO 8601 format) | |
| startsAt | Yes | Start date (ISO 8601 format) | |
| usageLimit | No | Total number of times this code can be used | |
| discountType | Yes | Type of discount | |
| minimumSubtotal | No | Minimum purchase amount (if applicable) | |
| minimumRequirement | No | Minimum purchase requirement | |
| appliesOncePerCustomer | No | Limit to one use per customer |