For more details see the Generate and Import Coupons for Magento 2 extension page.
Reduce time spent on coupon management by generating and importing an unlimited number of promo codes in a couple of clicks. Easily track coupon usage statistics and export codes for your affiliates.
After filling in the 'Rule information', the 'Conditions' and the 'Actions' tabs, click 'Save' or 'Save and Continue' button and several new tabs will be added.
Manage Coupon Codes - in a tab you can:
Delete Existing Coupons - If you would like to delete previously generated or imported coupons during current import, please set this option to ‘Yes’.
CSV File - To import coupon codes choose the CSV file with codes and then click the ‘Import’ button. Place each code on a new line.
Coupon Quantity - Specify the number of coupons you want to generate.
Delete Existing Coupons - In case you need to remove all previously created promo codes during the autogeneration process, enable this option.
Template - Specify custom template for coupons generation.
Coupons Quantity - Indicate the number of coupons you want to generate.
Delete Existing Coupons - Enable the option in case you want to delete all previously created coupons during new coupons generation process.
Code Length - Specify the number of characters for promo coupons.
Code Format - Choose one of 3 options for a code format:
Code Prefix - Set an additional code prefix that will be used before the generated code.
Code Suffix - Specify a custom code suffix used after each generated promo code.
Dash Every X Characters - This option lets you separate your promo code with a dash. Specify an interval for dash separation.
Edit - Edit coupons right from the list.
Specify the value for Uses per Coupon & Uses per Customer.
Actions: View - to check coupon usage click the View link. After that you'll be redirected to the Order & Account information page.
?coupon=XYZ-987 to the URL of any page on your site. Please replace ‘XYZ-987’ with the actual coupon code.
E.g. Let’s say you have a page http://yourwebsite.com/any-landing-page.html. After you add the coupon it will look like this:http://yourwebsite.com/any-landing-page.html?coupon=XYZ-987.
You can use such coupon links for banners, so customers will get discounts right after clicking on a banner (for instance, in a shopping cart).