create_coupon
Create discount coupons for customers by specifying code, discount type (percentage or fixed), value, validity period, and usage constraints.
Instructions
Create a new promotional discount coupon code for store customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Coupon code (e.g. SUMMER20, WELCOME100) | |
| endDate | No | Coupon expiration date (YYYY-MM-DD) | |
| startDate | No | Coupon valid start date (YYYY-MM-DD) | |
| usageLimit | No | Total usage limit count | |
| discountType | Yes | Discount type: percentage off or fixed SAR amount | |
| discountValue | Yes | Discount value (e.g. 15 for 15% or 50 for 50 SAR) | |
| minOrderAmount | No | Minimum required order total to use coupon | |
| maxDiscountAmount | No | Maximum cap on discount amount for percentage coupons |