Coupons
Public
Seller (session + manageCoupons)
Coupon model fields include code, discount type/value, limits,
isActive, validFrom, validUntil (see Prisma order model).
Never compute final prices only on the client — server validate wins.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Seller coupon CRUD and public validate.
POST /api/coupons/validate
| Method | Path |
|---|---|
| GET/POST | /api/coupons |
| GET/PUT/DELETE |
isActive, validFrom, validUntil (see Prisma order model).
Never compute final prices only on the client — server validate wins.