Redemption caps, minimum order amounts, and date windows

When creating or editing a discount, you can layer on constraints to keep promotions controlled:

Global redemption cap — total times the code can be used across all customers (e.g. "first 100 redemptions"). When the cap is hit, the code flips to Exhausted and stops accepting at checkout.

Per-customer cap — how many times any single customer can redeem the code (e.g. "1 per customer" for first-time-buyer codes, "3 per customer" for repeat-friendly codes).

Minimum order amount — the cart must total at least this amount before the code applies (e.g. $50 minimum for a $10-off code).

Date window — start date (when the code goes live), end date (when it expires). Leave either blank to mean "no boundary on that side." A code with only an end date is live immediately and expires on the date you set.

All of these are enforced server-side at checkout — clients can't bypass them by editing the page.