How to retrieve Coupon details by Coupon code Magento 2?

Coupon code used to get a discount from the order. Different types of coupons available for the eCommerce store like, only specific Item has a discount, a discount for the whole cart and so.

If you want to get coupon data by coupon code, You can retrieve the data of coupon by its code.

You need to Retrieve coupon information using the specified search criteria with the getList() method of Coupon Repository Interface.

Pass Coupon code you want to retrieve the data for the Coupon and get the value.

Leave a Reply