How to import stock?

How to import stock?

Inventory import depends on the number of sources/stocks that are created on Magento instance in Stores > Inventory > Stocks & Stores > Inventory > Sources.

Case 1. Import to the instance with only one stock and source.

Please use the following fields to update the inventory:

Root Entity



Catalog Inventory Item Entity


Stock ID can be replaced by stock name, if the "Stock Name to Stock ID" modifier is added to the field



Stock status should be either 1 (In Stock) or 0 (Out of Stock). It is also possible to enable 'Replace' modifier to map values from the file to the stock status



Here is an example of the import file:



Case 2. Import to the instance with multiple stocks/sources

Root Entity



MSI Inventory Source Item Entity



Here is an example of the import file:



More use-case scenarios may be found in the article Useful Tips and Popular Import Use Cases.

      • Related Articles

      • Import and Export Guidelines

        General Information About the Package and Its Tariffs The Import & Export solution is designed for migrating data from one website to another or to/from a different platform, as well as for automated/manual updates of product quantities, prices, and ...
      • Custom Stock Status API

        1. Amasty\Stockstatus\Api\RuleRepositoryInterface - class for managing custom stock status rules. POST /V1/amasty_stockstatus/rule, method="save" - create a custom stock rule; PUT /V1/amasty_stockstatus/rule/:id, method="save" - edit a custom stock ...
      • Custom Stock Status | GraphQL methods

        Query getAmCustomStockStatus description: get information about a stock status
      • How can I import multiple media gallery images?

        In order to import and link multiple gallery images to the product, the following fields should be added to the import profile: Sku or entity_id fields are added for the extension to identify the product and assign the rest of the mapped data to it. ...
      • How to apply statuses only to products with specific quantity?

        The module works with the Magento product attributes as a basis for forming the product collection that receives a custom stock status. In Magento, quantity is a system attribute that cannot be used in rules' conditions. Due to this, setting a status ...