create_discount
Define discount codes with percentage or fixed value, set expiration and usage limits to manage promotions in your store.
Instructions
Create a new discount code for your Karrito store. Requires KARRITO_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Discount code (e.g., VERANO20) | |
| type | Yes | Discount type: percentage (e.g., 20%) or fixed amount (e.g., $5 off) | |
| value | Yes | Discount value (percentage 0-100 or fixed amount in store currency) | |
| maxUses | No | Maximum number of times this discount can be used | |
| expiresAt | No | Expiration date in ISO 8601 format (e.g., 2026-12-31T23:59:59Z) | |
| minOrderAmount | No | Minimum order amount required to use this discount |