Skip to content

Is it possible to use Magento’s import functionality to create multiple configurable products using REST api

I want to create a custom REST api where we can pass multiple configurable products data (similar to what we use in import.csv), and it will create the configurable as well as the child products based on the data provided.

During product import Magento reads import csv file, and creates configurable products alongside its child products for the given configurations.

Is it possible to extract the method Magento uses to import products , and use them in the custom api ? If so, how can it be done ?