> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinmarkt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Coupons

> Seller coupon CRUD and public validate.

# Coupons

## Public

```bash theme={null}
POST /api/coupons/validate
```

No session. Rate limited (\~20/window). Used by checkout / embed prefill.

## Seller (session + manageCoupons)

| Method         | Path         |
| -------------- | ------------ |
| GET/POST       | /api/coupons |
| GET/PUT/DELETE |              |

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.
