Interface

CouponManagementInterface

Magento\Quote\Api\CouponManagementInterface

What it does

This interface defines the contract for managing discount coupons in shopping carts.

Developers use this service to retrieve the current coupon code applied to a cart, apply a new coupon code, or remove an existing coupon.

It's commonly used in checkout processes, cart management APIs, and custom discount implementations.

Public Methods

  • get()
  • set()
  • remove()