Create products from a JSON feed

Stockeo can create products in your Shopify store from your supplier's JSON feed.

Add new Stockeo automation

First, add a new Stockeo automation. Navigate to your Shopify admin panelAppsStockeo. Click Create Automation. Type the automation name (or leave the default one). In the Processing Mode section pick whether to update or create (this option in our case) products. The Schedule section allows you to set when the automation should run.

Set the connection

Set where to get the product feed from. Pick one of the available channels - HTTP, FTP, or Email. If you are going to use the first option, pick the method (GET or POST) and paste the URL. You can also add headers and select an authentication method. To check if your connection works fine, click on Test.

Data Mapping

Let's move to the Data Mapping section. Start by choosing the JSON file format. Then, for the subsequent properties, assign the corresponding names from the JSON. You also can decide whether products created in this automation will have Draft or Active status.

It can be that there is no product title in the feed. However, the title is required by Shopify for creating a product. In this case, use the Liquid formula to combine properties from the feed to create a product title. Similarly, with the Liquid formula, you can create an SKU and description.

The feed above does not contain the number quantity, but the text. Find more on how to transform a text quantity to number.

You can also decide whether the products created should have a draft or active status. If you choose neither, by default the products will be the draft.

Speed up the automation using filters

If you have or plan to have products from other suppliers then a good practice is to add a fixed tag for this supplier, and also set a filter on this tag.

This will speed up processing, and make it easier to bulk edit or delete the products in case there would be something wrong with the imported data.

Run your automation

To see how it works, wait for a scheduled action or click Run to create products right away. Then navigate to the Stockeo History section. If you can see 'In progress' status, please refresh the page. The creation time depends on the feed size and the number of products. When the status is 'Success', you can click on Details to check how many and which products have been created. Click an SKU to see the created product.

Last updated