Coupons
Discount codes your customers can enter at the Payment step. Percentage off, fixed amount off, with optional minimum order and validity windows.
Where to find it
Advik Booking → Coupons.
Creating a coupon
- Open the Coupons pageAdvik Booking → Coupons → Add Coupon.
- Enter the codeThe code customers type at checkout. Case-insensitive. We recommend short, memorable codes:
SPRING10,WELCOME20,BACKTOSCHOOL. - Pick the discount typePercentage (e.g. 20% off) or Fixed amount (e.g. $25 off). Enter the value.
- Set the minimum order (optional)Coupon only applies when the order subtotal is at least this much. Useful for "Spend $100, get 10% off" promotions.
- Set the usage cap (optional)Maximum number of times the coupon can be used. Leave blank for unlimited.
- Set the validity window (optional)Valid from and Valid until. Customers can only apply the coupon between these dates.
- ActivateToggle Active on. Save.
Field reference
| Field | Required | Notes |
|---|---|---|
| Code | Yes | Unique, case-insensitive, max 50 chars. |
| Discount type | Yes | Percentage or fixed. |
| Discount value | Yes | Number. For percentage: 0–100. |
| Min order amount | No | Coupon only applies if subtotal ≥ this. |
| Max uses | No | Total times this coupon can be redeemed. Use count is tracked. |
| Valid from | No | Date / time the coupon becomes active. |
| Valid until | No | Date / time the coupon expires. |
| Active | Yes | Off = coupon is hidden from the form and can't be applied. |
How customers use them
On the Payment step, there's a "Have a coupon code?" field. The customer types the code, clicks Apply, and:
- If valid, a green "Coupon applied" line appears with the discount amount.
- If invalid, a red "This coupon isn't valid" message.
- The price summary updates live: subtotal, discount, tax (on post-discount), total.
How discount + tax interact
Tax is always calculated on the post-discount subtotal. This matches what most tax authorities require — you can't dodge tax with a coupon.
Validation order
When a customer enters a coupon, the plugin checks (in order):
- Code exists
- Coupon is active
- Current date is within valid range
- Usage limit not exceeded
- Order subtotal ≥ minimum
The first failure is returned as a clear error message. The customer can try a different code.
Generating codes
When you click Generate code, the plugin creates a random 8-character code from ABCDEFGHJKLMNPQRSTUVWXYZ23456789 (ambiguous chars like 0/O, 1/I are excluded).
Tracking usage
Every coupon has a Used counter that increments on each successful application. You can also see a list of all bookings that used a given coupon by clicking Usage on the coupon detail view.
Developer hook
Theadvik_coupon_applied action fires after a coupon is successfully applied. Use it to fire a webhook, send a Slack message, or update an external system.Common patterns
Welcome coupon for new customers
Fixed $20 off, min order $80, valid for 60 days, max 500 uses. Distribute via welcome email.
Seasonal sale
15% off, no minimum, valid from 1st Dec to 31st Dec, max 200 uses.
VIP customer
50% off, min order $200, max 1 use. Send the code privately.