Interface

StockConfigurationInterface

Magento\CatalogInventory\Api\StockConfigurationInterface

What it does

This interface defines methods for retrieving and managing catalog inventory configuration settings in Magento 2, such as minimum/maximum sale quantities, stock thresholds, backorder settings, and quantity increments.

Developers use this interface to access store-level inventory configuration values programmatically when working with product stock management.

Note: This interface is deprecated since 100.3.0 and replaced by Multi Source Inventory (MSI).

Public Methods

  • getDefaultScopeId()
  • getIsQtyTypeIds()
  • isQty()
  • canSubtractQty()
  • getMinQty()
  • getMinSaleQty()
  • getMaxSaleQty()
  • getNotifyStockQty()
  • getEnableQtyIncrements()
  • getQtyIncrements()
  • getBackorders()
  • getManageStock()
  • getCanBackInStock()
  • isShowOutOfStock()
  • isAutoReturnEnabled()
  • isDisplayProductStockStatus()
  • getDefaultConfigValue()
  • getConfigItemOptions()