Log in
Interface

CreditmemoManagementInterface

Magento\Sales\Api\CreditmemoManagementInterface

What it does

This interface defines the contract for managing credit memos (refunds) in Magento 2.

Developers use this service to perform operations like canceling credit memos, sending email notifications to customers, retrieving comments, and processing refunds either online or offline.

It's the primary API for handling post-invoice refund workflows when customers return items or need adjustments.

Public Methods

  • cancel()
  • getCommentsList()
  • notify()
  • refund()