RefundInvoiceInterface
Magento\Sales\Api\RefundInvoiceInterface
What it does
This interface defines the contract for creating credit memos (refunds) for invoices in Magento 2.
Developers use this when implementing refund functionality, allowing them to specify which items to refund, whether the refund should be processed online with the payment gateway, and whether to notify customers.
It provides a standardized way to handle invoice refunds programmatically through Magento's service layer.
Public Methods
- execute()