Coupons
Company-Level Toggle
Coupons can be enabled or disabled at the company level. If disabled, the coupon code field won't appear at checkout.
Creating a Coupon
- Go to Coupons in the dashboard sidebar.
- Click Add Coupon.
- Fill in:
| Field | Description |
|---|---|
| Code | Unique coupon code (per company). This is what customers enter at checkout. |
| Type | once (single use per customer) or multiple (reusable). |
| Value | Discount amount (dollar value). |
| Min order | Minimum order subtotal required to use this coupon. |
| Usage limit | Maximum number of times this coupon can be used in total. |
| Expiry date | When the coupon expires. |
| Valid | Toggle to activate/deactivate the coupon. |
How Coupons Work at Checkout
- Customer enters a coupon code at checkout.
- The system validates the code server-side:
- Coupon exists and belongs to the company.
- Coupon is marked as valid (active).
- Not expired.
- Minimum order amount met.
- Usage limit not reached.
- If valid, the discount is applied to the order total.
- On successful order, usage count is atomically incremented.
Managing Coupons
From the coupons dashboard you can:
- Edit existing coupons (change value, limits, expiry).
- Activate/deactivate coupons.
- Delete coupons no longer needed.
- View usage — See how many times each coupon has been used vs. its limit.
