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

  1. Open the Coupons page
    Advik Booking → CouponsAdd Coupon.
  2. Enter the code
    The code customers type at checkout. Case-insensitive. We recommend short, memorable codes: SPRING10, WELCOME20, BACKTOSCHOOL.
  3. Pick the discount type
    Percentage (e.g. 20% off) or Fixed amount (e.g. $25 off). Enter the value.
  4. 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.
  5. Set the usage cap (optional)
    Maximum number of times the coupon can be used. Leave blank for unlimited.
  6. Set the validity window (optional)
    Valid from and Valid until. Customers can only apply the coupon between these dates.
  7. Activate
    Toggle Active on. Save.

Field reference

FieldRequiredNotes
CodeYesUnique, case-insensitive, max 50 chars.
Discount typeYesPercentage or fixed.
Discount valueYesNumber. For percentage: 0–100.
Min order amountNoCoupon only applies if subtotal ≥ this.
Max usesNoTotal times this coupon can be redeemed. Use count is tracked.
Valid fromNoDate / time the coupon becomes active.
Valid untilNoDate / time the coupon expires.
ActiveYesOff = 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):

  1. Code exists
  2. Coupon is active
  3. Current date is within valid range
  4. Usage limit not exceeded
  5. 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.

i

Developer hook

The advik_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.