create_coupon
Create discount coupons with unique codes, supporting percent, fixed cart, and fixed product discounts. Set usage limits, expiry, and product restrictions.
Instructions
Create a discount coupon. Code must be unique. Supports percent, fixed cart, and fixed product discount types. Use fields param to request only needed fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Coupon code | |
| amount | No | Discount amount | |
| fields | No | Comma-separated fields to return in response | |
| product_ids | No | Product IDs this coupon applies to | |
| usage_limit | No | Total usage limit | |
| date_expires | No | Expiry date (ISO 8601) | |
| discount_type | No | Discount type | percent |
| free_shipping | No | Grants free shipping | |
| individual_use | No | Cannot be combined with other coupons | |
| maximum_amount | No | Maximum order amount | |
| minimum_amount | No | Minimum order amount | |
| excluded_product_ids | No | Product IDs excluded from this coupon | |
| usage_limit_per_user | No | Usage limit per user |