Log in
Repository

OrderItemRepositoryInterface

Magento\Sales\Api\OrderItemRepositoryInterface

What it does

This interface defines the contract for managing order items in Magento 2, providing CRUD operations to retrieve, create, update, and delete individual line items within sales orders.

Developers use this repository when they need to programmatically access or manipulate order items, such as retrieving product details from an order, updating quantities, or filtering items based on specific criteria using search criteria.

Public Methods

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