How to create Coupon Codes in Magento 2

In the Cart Price Rule, Coupon Code is created so that buyers at your store will get the discounted price. The Coupon Code can be generated individually or in bulk for a certain customer group or specific individuals depending on your purpose. Coupons can be sent to others via emails, or included in newsletters, catalogs, and advertisements such as banners on the website, learn more.

To use the coupon, the customers can insert the code at checkout, the discount value will, then, be applied immediately. Magento 2 supports a quick response code – QR code that customers can scan on their smart phones. After that, they are led to a page on your website to get more information about the promotion.

How to create Coupon Code in Magento 2

Create an Specific Coupon

This method is implemented in the Cart Price Rule settings.

  • On the Rule Information tab, under General Information, transfer Coupon to Specific Coupon.
    • Enter the Coupon Code manually.
    • Limit how many times the coupon can be redeemed in the Uses per Coupon and User per Customer. Leave them empty to set no restriction.
      • Uses per Coupon sets the number of times the coupon code is used.
      • Uses per Customers sets the number of times the coupon code is used by the same customers.
    • If there are many cart price rules at the same time, you should set the active time and priorty to manage them better.
  • Click Save to activate the coupon code.

Publish a Mass of Coupons

This method is implemented in the Cart Price Rule settings.

  • On the General Information page, mark the Use Auto Generation checkbox to publish the a mass of coupon codes after saving the rule.
  • Under Cart Price Rule, choose Manage Coupon Codes tab and do the following:
    • Set the Coupons Qty to the quantity of coupons you want to publish.
    • Insert the number for the Code Length, the length excludes the prefix, suffix, or separators.
    • Select the Coupon Format from the following types: Alphanumeric, Alphabetical, and Numeric.
    • Insert the Code Prefix – the begining part of the code if needed.
    • Insert the Code Sufix – the end part of the code if needed.
    • Set the Dash Every X Character to make the codes eaiser to read. For example, the number 3 is inserted into that field, the codes will look like: xxx-xxx-xxx.
  • Click on Generate button to release multiple coupon codes and they are shown on the table below.

Ref: Magento 2 User Guide & Megaplaza