Get Source Item info by Sku Using Multi-Source Inventory magento 2.

You can get source item details like Quantity, Status, Source item id, source code from the item Sku using Multi-source inventory (MSI) feature.

Useful Interface:
Magento\InventoryApi\Api\SourceItemRepositoryInterface Continue reading “Get Source Item info by Sku Using Multi-Source Inventory magento 2.”

Get Assigned Sources of Stock in Multi-source Inventory (MSI) Magento 2.

Retrieves Assigned Sources links that are assigned to specific stocks in Multi-Source Inventory Magento 2.

You can check assigned sources for the stock from admin panel, Stores -> Inventory -> Stock Continue reading “Get Assigned Sources of Stock in Multi-source Inventory (MSI) Magento 2.”

Delete Stock by Stock Id Multi-source Inventory Magento 2.

You can Delete Stock by Stock Id in Multi-Source Inventory (MSI) Magento 2 programmatically by passing stock id only.

Delete the Stock data by Stock id. If the stock is not found do nothing. Continue reading “Delete Stock by Stock Id Multi-source Inventory Magento 2.”