Log in
Repository

InvoiceItemRepositoryInterface

Magento\Sales\Api\InvoiceItemRepositoryInterface

What it does

This interface defines the contract for managing invoice item data in Magento 2.

Developers use this repository to perform CRUD operations on individual line items within invoices, such as retrieving invoice items by search criteria, loading specific items by ID, saving new or modified items, and deleting items.

It's particularly useful when building custom integrations, reports, or extensions that need to interact with invoice item data programmatically.

Public Methods

  • getList()
  • get()
  • delete()
  • save()