Log in
Interface

InvoiceOrderInterface

Magento\Sales\Api\InvoiceOrderInterface

What it does

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

Developers use this when they need to programmatically generate invoices, with options to capture payment, specify specific items to invoice, send notifications, and add comments.

It's commonly used in custom order processing workflows, payment integrations, or automated invoicing systems.

Public Methods

  • execute()