/api/v1/couponsCreate a new coupon.
Requires the Coupons:Edit permission.
Body
codestringrequiredThe coupon code customers will enter.
discountTypestringrequiredDiscount calculation method.
- Values:
percentagefixed
discountValuenumberrequiredPercent (0–100) or fixed amount.
applicationScopestringrequiredWhat the coupon applies to.
- Values:
packagescategoriesstore
packageScopestringRequired when
applicationScope is packages.- Values:
allspecific
packageIdsstring[]· uuidRequired when
packageScope is specific.maxUsesintegerTotal use cap.
maxUsesPerUserintegerPer-customer use cap.
validFromstring· date-timeEarliest valid date.
validUntilstring· date-timeLatest valid date.
isActivebooleanWhether the coupon is enabled. Defaults to
true.