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
| Campo | Descrição |
|---|---|
| Código | The unique code the customer enters at checkout |
| Tipo de desconto | Percentage (0–100) or Fixed amount |
| Desconto | The discount value (percent or fixed amount) |
| Desconto máximo | Cap for percentage coupons (0 = unlimited) |
| Escopo | universal (any order), product (specific products), or user (specific users) |
| Products / Users | The products or users the coupon applies to, when the scope is product or user |
| Quantidade | Total number that can be issued (0 = unlimited) |
| Uso máximo por usuário | How many times one user may use it (0 = unlimited) |
| Valor mínimo do pedido | Minimum order total required to apply the coupon |
| Moeda | Currency the coupon applies to |
| Start / Expire time | The validity window |
| Estado | Whether the coupon is active |
Como funciona
- Create a coupon on the Coupons page and share its Code.
- At checkout, the customer enters the code on their order.
- 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.