How to create a promo code?

To create a promo code, go to Sales and Marketing → Promo codes in the admin panel, then click the Add promo code button.