Log in
Repository

CouponRepositoryInterface

Magento\SalesRule\Api\CouponRepositoryInterface

What it does

This interface defines the contract for managing shopping cart price rule coupons in Magento 2.

Developers use this repository to create, retrieve, update, delete, and search for coupon codes that customers can apply during checkout to receive discounts.

It provides a standardized API for coupon management operations across the application.

Public Methods

  • save()
  • getById()
  • getList()
  • deleteById()