Log in
Model

InvoiceRepository

Magento\Sales\Model\Order\InvoiceRepository

What it does

This repository class provides CRUD (Create, Read, Update, Delete) operations for order invoices in Magento 2.

Developers use this class to programmatically retrieve, save, delete, or search for invoices using entity IDs or search criteria.

It serves as the primary interface for managing invoice data through the service layer, implementing a repository pattern with built-in caching for loaded invoices.

Public Methods

  • get()
  • create()
  • getList()
  • delete()
  • deleteById()
  • save()