Log in
Interface

StockInterface

Magento\InventoryApi\Api\Data\StockInterface

What it does

This interface defines the data structure for a Stock entity in Magento's Multi-Source Inventory (MSI) system.

A Stock represents a virtual aggregation of inventory sources (warehouses, stores) that can be assigned to sales channels.

Developers use this interface when working with stock management operations, such as creating custom stocks, retrieving stock information, or integrating inventory data with other modules.

Public Methods

  • getStockId()
  • setStockId()
  • getName()
  • setName()
  • getExtensionAttributes()
  • setExtensionAttributes()