skip to Main Content

Is it possible to make a bulk update for inventory on Magento 2?

Updating one by one throughout StockItemInterface is too slow.

2

Answers


  1. Sure! You should use a csv file with updated product data and do import using Magento import tool.

    Login or Signup to reply.
  2. Since Magento 2.3 you can use new Multi-Source Inventory (MSI) which provides Bulk APIs for main source management operations, for example, the one you mentioned here is https://github.com/magento-engcom/msi/blob/2.3-develop/app/code/Magento/InventoryApi/Api/SourceItemsSaveInterface.php

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search