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)
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 |