Create a discount code with rules for value, limits, and dates.
Set the code customers will enter at checkout.
Choose percentage or fixed amount and any order minimums.
Optionally limit redemptions and set when the coupon is valid.