Inventory Management API reference
Inventory Management provides new modules, interfaces, and classes to manage inventory quantities, sources, stocks, etc. This reference details deprecated modules and new services available for managing inventory for single and multi source merchants.
Deprecated modules
Inventory Management deprecates ScalableInventory and CatalogInventory modules.
The ScalableInventory module is part of Adobe Commerce. Its original purpose was to perform inventory processing asynchronously, moving the computation of quantities to a worker that processed the calculations later. This functionality was limited in that the asynchronous processing could be performed on backordered products only.
Inventory Management creates reservations for all orders, not just those on backorder. All quantities are calculated asynchronously.
The CatalogInventory module is part of Magento Open Source. Its original purpose was to retrieve and update stock attributes, including status, quantity, and backorders. Inventory Management architecture replaces and expands these capabilities to support multiple stocks and sources, salable quantities, stock quantities, etc.
The following interfaces and classes have been deprecated. They cannot be mapped to new interfaces. The Inventory Management architecture eliminates the need for this functionality.
ScalableInventory interfaces:
ItemInterfaceItemsInterface
CatalogInventory interfaces:
QueryProcessorInterfaceRegisterProductSaleInterfaceRevertProductSaleInterfaceStockCollectionInterfaceStockConfigurationInterfaceStockCriteriaInterfaceStockIndexInterfaceStockInterface(indexer)StockInterfaceStockItemCollectionInterfaceStockItemCriteriaInterfaceStockItemInterfaceStockItemRepositoryInterfaceStockManagementInterfaceStockRegistryInterfaceStockRepositoryInterfaceStockStateInterfaceStockStatusCollectionInterfaceStockStatusCriteriaInterfaceStockStatusInterfaceStockStatusRepositoryInterface
CatalogInventory classes:
BackordersDefaultStockDefaultStockqtyItemMinsaleqtyQtyincrementsQuantityValidatorStatusStock(Helper)Stock(model/source)StockStockFactory
Inventory Management API
The following services reside under the Magento/InventoryApi/Api namespace, replacing deprecated services and APIs.
SourceItems (products assigned to sources with Quantity per Source) by provided SearchCriteriaSourceItems (quantites and stock statuses of products on sources)SourceItems (quantites and stock statuses of products on sources)Inventory Catalog API
The following services reside under the Magento/InventoryCatalogApi/Api namespace.
Inventory Sales API
The following services reside under the [Magento/InventorySalesApi/Api](https://github.com/magento/inventory/tree/1.2.4/InventorySalesApi/Api namespace, replacing deprecated services and APIs.
Inventory Configuration API
The following services reside under the Magento/InventoryConfigurationApi/Api namespace, replacing deprecated services and APIs.
StockItem entityStockItemRepositoryInterface::saveInventory Source Selection Algorithm (SSA) API
The following services reside under the Magento/InventorySourceSelectionApi/Api namespace.
Inventory Export Aggregated Stock Data API
The following services reside under the Magento/InventoryExportStockApi/Api namespace.