Skip to main content

Coupon

Coupons let you offer discounts that customers redeem with a code at checkout. Manage them on the Coupons page in the Casdoor admin sidebar.

Coupon fields​

FieldDescription
CodeThe unique code the customer enters at checkout
Discount typePercentage (0–100) or Fixed amount
DiscountThe discount value (percent or fixed amount)
Max discountCap for percentage coupons (0 = unlimited)
Scopeuniversal (any order), product (specific products), or user (specific users)
Products / UsersThe products or users the coupon applies to, when the scope is product or user
QuantityTotal number that can be issued (0 = unlimited)
Max usage per userHow many times one user may use it (0 = unlimited)
Min order amountMinimum order total required to apply the coupon
CurrencyCurrency the coupon applies to
Start / Expire timeThe validity window
StateWhether the coupon is active

How it works​

  1. Create a coupon on the Coupons page and share its Code.
  2. At checkout, the customer enters the code on their order.
  3. Casdoor validates the coupon — scope, validity window, minimum order amount, quantity, and per-user usage limit — and applies the discount to the order total.

Each redemption is recorded so that quantity and per-user usage limits are enforced.