Log in
Interface

InvoiceOrderInterface

Magento\Sales\Api\InvoiceOrderInterface

What it does

This interface defines the contract for creating invoices from orders in Magento 2.

Developers use this to programmatically invoice an order, with options to capture payment, specify which items to invoice, send notifications, and add comments.

It's the standard API approach for invoice creation, typically used in custom order management workflows or integrations.

Public Methods

  • execute()