/api/v1/coupons/{id}Retrieve a single coupon by its ID.
Requires the Coupons:View permission.
Path parameters
idstring· uuidrequiredThe coupon ID.
Coupon object
idstring· uuidrequiredThe coupon ID.
codestringrequiredThe coupon code customers enter at checkout.
discountTypestringrequiredHow the discount value is interpreted.
- Values:
percentagefixed
discountValuenumberrequiredPercent (0–100) or fixed amount in the store currency.
applicationScopestringrequiredWhat the coupon applies to.
- Values:
packagescategoriesstore
packageScopestringWhether the coupon applies to all packages or specific ones.
- Values:
allspecific
packageIdsstring[]· uuidSpecific packages this coupon applies to.
maxUsesintegerMaximum total uses, null for unlimited.
maxUsesPerUserintegerMaximum uses per customer, null for unlimited.
usesintegerrequiredNumber of times this coupon has been used.
validFromstring· date-timeCoupon is invalid before this date.
validUntilstring· date-timeCoupon is invalid after this date.
isActivebooleanrequiredWhether the coupon can currently be redeemed.
createdAtstring· date-timerequiredCreation timestamp.
updatedAtstring· date-timerequiredLast update timestamp.