Log in
Repository

OrderItemRepositoryInterface

Magento\Sales\Api\OrderItemRepositoryInterface

What it does

This repository interface provides methods to manage individual items within sales orders in Magento 2.

Developers use it to retrieve, save, or delete order items programmatically, such as when building custom order management features, reporting tools, or integrations that need to access product line items from orders.

It follows Magento's repository pattern for standardized CRUD operations on order item entities.

Public Methods

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