CreateCouponInput
InputInput for the createCoupon mutation.
Fields
The amount of discount. Should always be numeric, even if setting a percentage.
This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
Coupon code.
The date the coupon expires, in the site's timezone.
The date the coupon expires, as GMT.
Coupon description.
Determines the type of discount that will be applied.
List of email addresses that can use this coupon.
If true, this coupon will not be applied to items that have sale prices.
List of category IDs the coupon does not apply to.
List of product IDs the coupon cannot be used on.
If true and if the free shipping method requires a coupon, this coupon will enable free shipping.
If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.
Max number of items in the cart the coupon can be applied to.
Maximum order amount allowed when using the coupon.
Meta data.
Minimum order amount that needs to be in the cart before coupon applies.
List of category IDs the coupon applies to.
List of product IDs the coupon can be used on.
How many times the coupon can be used in total.
How many times the coupon can be used per customer.