create-discount
Generate custom discount codes for Shopify stores. Define discount type, value, duration, and usage limits to enhance promotional campaigns.
Instructions
Create a basic discount code
Input Schema
Name | Required | Description | Default |
---|---|---|---|
appliesOncePerCustomer | Yes | Whether discount can be used only once per customer | |
code | Yes | Discount code that customers will enter | |
endsAt | No | Optional end date in ISO format | |
startsAt | Yes | Start date in ISO format | |
title | Yes | Title of the discount | |
value | Yes | Discount value (percentage as decimal or fixed amount) | |
valueType | Yes | Type of discount |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"appliesOncePerCustomer": {
"description": "Whether discount can be used only once per customer",
"type": "boolean"
},
"code": {
"description": "Discount code that customers will enter",
"type": "string"
},
"endsAt": {
"description": "Optional end date in ISO format",
"type": "string"
},
"startsAt": {
"description": "Start date in ISO format",
"type": "string"
},
"title": {
"description": "Title of the discount",
"type": "string"
},
"value": {
"description": "Discount value (percentage as decimal or fixed amount)",
"type": "number"
},
"valueType": {
"description": "Type of discount",
"enum": [
"percentage",
"fixed_amount"
],
"type": "string"
}
},
"required": [
"title",
"code",
"valueType",
"value",
"startsAt",
"appliesOncePerCustomer"
],
"type": "object"
}