Log in
Interface

InvoiceItemCreationInterface

Magento\Sales\Api\Data\InvoiceItemCreationInterface

What it does

This interface defines the structure for creating invoice items programmatically in Magento 2.

Developers use this when building custom invoice creation logic through the API, allowing them to specify which order items should be included in an invoice and pass additional extension attributes.

It extends both LineItemInterface for item details and ExtensibleDataInterface for custom attribute support.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()