Log in
Interface

RefundInvoiceInterface

Magento\Sales\Api\RefundInvoiceInterface

What it does

This interface defines a service contract for refunding invoices in Magento 2.

Developers use this to programmatically create credit memos (refunds) for existing invoices, with options to specify which items to refund, whether to process online or offline, send notifications, and add comments.

It's typically used in custom refund workflows, order management integrations, or when building custom admin interfaces for handling returns.

Public Methods

  • execute()