Log in
Interface

DefaultStockProviderInterface

Magento\InventoryCatalogApi\Api\DefaultStockProviderInterface

What it does

This interface defines a service that retrieves the default stock ID in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to reference the default stock location, which is the traditional single-source inventory that existed before MSI was introduced.

It's commonly used in inventory operations to distinguish between default and custom stock sources.

Public Methods

  • getId()