Coupons
Coupons in Apex are the digital equivalent of the physical ones that you get in supermarkets and other shops that lets you avail a certain amount as discount during your purchases.
While techincally not being the same, there are 4 different types of coupons:
- Cart Coupon
- Variant Coupon
- Refund Coupon (Deprecated)
- Single Use Coupon
Out of these, both Cart Coupon
& Variant Coupon
are STIs of the Coupon
table, and hence share a bunch of common validations and fields. Single Use Coupon
, has its own table. The Refund Coupon
's utility from the business point of view has been replaced with Store Credit
s.