Log in
Interface

ItemToSellInterface

Magento\InventorySalesApi\Api\Data\ItemToSellInterface

What it does

This interface defines a Data Transfer Object (DTO) representing an item to be sold with its SKU and quantity.

Developers use this when placing inventory reservations for sales events, typically during order placement or checkout to ensure inventory is properly reserved for products being purchased.

Public Methods

  • getSku()
  • getQuantity()
  • setSku()
  • setQuantity()
  • getExtensionAttributes()
  • setExtensionAttributes()