Magento 2 – How to Import Products from Another Database

databasemagento-2.1magento-2.1.3magento2

I have an ERP system with a database that holds more or less 400,000 items.

I need the 400,000 items to be migrated to my Magento 2.1.3 database.

Is it possible to directly import items from my ERP database to magento's using an sql query? Will all thats needed after be to run the indexer to have the pages displayed?

What is the correct procedure for a direct import? Is there any example SQL out there someone has on hand to show me how its done?

Thanks!

Best Answer

We used the Magento REST API to import products, categories and customers.

Example REST API usage for calling Magento Search:

$ curl http://ex-magento-site.com/rest/V1/search

We decided to build a webapi extension to give us access to custom functionality so we exposed /import rather than /search.

This works well with importing 20k products, 100 categories and 4k customers.

Related Topic