Repository
InvoiceRepositoryInterface
Magento\Sales\Api\InvoiceRepositoryInterface
What it does
This repository interface provides methods to manage invoice records in Magento 2.
Developers use this interface to retrieve, create, save, delete, and search for invoices - which are records of payment receipts for orders.
It follows Magento's service contract pattern, making it the standard way to interact with invoice data programmatically through dependency injection.
Public Methods
- getList()
- create()
- get()
- delete()
- save()