Log in
Interface

SourceItemInterface

Magento\InventoryApi\Api\Data\SourceItemInterface

What it does

This interface defines the contract for representing inventory quantities of products at specific warehouse locations (sources) in Magento's Multi-Source Inventory system.

Developers use this to get or set product stock levels, SKUs, source codes, and stock status for each physical storage location.

It's essential when working with inventory management, stock updates, or creating custom inventory-related features.

Public Methods

  • getSku()
  • setSku()
  • getSourceCode()
  • setSourceCode()
  • getQuantity()
  • setQuantity()
  • getStatus()
  • setStatus()
  • getExtensionAttributes()
  • setExtensionAttributes()