Log in
Interface

RefundOrderInterface

Magento\Sales\Api\RefundOrderInterface

What it does

This interface defines the contract for creating offline refunds (credit memos) for orders in Magento 2.

Developers use this when they need to programmatically refund an order without processing the refund through a payment gateway, such as for cash refunds or manual payment methods.

The interface allows specifying which items to refund, whether to notify customers, and include comments with the credit memo.

Public Methods

  • execute()