Integrate live inventory to shop

New Member
2 0 0


I have a live feed (updates every hour) and I was looking to integrate it to my shop. 

The feed is in XML format and I know how to parse it to be in the csv format for shopify. Looking on the admin section there is no place to write scripts or execute cron jobs, so was wondering if this is a feature that can be got for a plain shop? 

I could also write this and have it run on my own server but looking at the API docs I don't see any endpoints that accept csv files. Is there an endpoint that I could do a bulk upload/update to?

If this is a no to both my questions, what is the best way around my problem?


Hey there @charlcole ,

As far as I know it's not possible to schedule cron jobs directly on your Shopify store so you'll need to run them on your own server or use a Shopify app.

When using the Shopify API, I also don't think there's a way to pass in the CSV data directly to an API endpoint, you'll need to pass it the values for the required parameters.

With the REST Admin API, for instance, you'll need to use the InventoryLevel API endpoint and send a POST request to it, passing in the required parameters for each product variant you'd like to update.

To set/overwrite the quantity, you'll need to provide the following to the endpoint /admin/api/2021-04/inventory_levels/set.json:

  1. inventory_item_id - You can find this value by querying either the Product or Product Variant endpoint.
  2. location_id - You can find this via the Location endpoint (I believe the location ID also shows up in the URL in the Shopify Admin when viewing an inventory location).
  3. available - The new quantity.

Note that with the REST API, you can't query the Product/Variant endpoints by SKU or Barcode directly so you might need to pull down your entire product data first and write the code on your end to retrieve the inventory_item_id based on the SKU/Barcode or another product identifier attribute that your XML feed uses.  The GraphQL API might be more flexible with this.

If you're open to using an app, we have an app EZ Inventory that might be able to take care of this for you as well.  I can't say for sure if it will work for you without seeing your XML feed as some XML feeds have quite unusual structures (like very nested data or data grouped in a certain way) that might not be supported by our app.

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill
New Member
2 0 0

Hi @Jonathan-HA ,

That's annoying that the shopify app doesn't have an editor and allow me to schedule cron jobs. Seems like this is something pretty basic to have!! 

Sounds like to get a life feed of products into my store is something that is not very easy.

I like the sound of your app tho, it seems like it could do what I need. Reading the description EZ Inventory just focuses on the inventory, i.e. I need to have the products added already and then I provide whatever information is needed to the app so the inventory will be updated. Am I right with that description? 

The feed comes from a URL and a sample would be in the format;

    <Category>Sample Category</Category>
    <Power>13 Amp</Power>
    <Max_Ambient>25°C at 60% RH</Max_Ambient>
    <Catalogue_Supplier_Name>Sample Supplier</Catalogue_Supplier_Name>
    <Stock>✓ in stock</Stock>
    <Product_Title>1100CHV WH</Product_Title>
    <Sub_Title>sub title</Sub_Title>
    <Refrigerant_Charge>2 x 95</Refrigerant_Charge>

Needless to say there will be multiple products but that is the basic layout of a product. Do you think that your app will be able to support the feed?


Hey @charlcole ,

That's correct, our app is designed just for updating the inventory quantity of product variants that already exist in your Shopify store.  It won't be able to add new products or update other attributes.

Thanks for sending that sample XML, it looks like this would work with our app.

The one thing I noticed is the "Stock" field doesn't use an integer value, which the Shopify API requires.  Our app has an option to use a conditional formula to assign an integer value to it based on the text value.  For example, you can do something like this in the app:

100 if {{ Stock }} == "✓ in stock" else 10 if {{ Stock }} == "low stock" else 0 if {{ Stock }} == "out of stock" else "no match"

More info here on this:

Feel free to contact us directly at as well if you have any additional questions.

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill
23 0 4

Hi @charlcole 

We've built multiple apps that auto update inventory from feeds to Shopify. We are happy to take a look at your feed and evaluate if we can build a flow where new products are can be seamlessly created as well. New product creation could be with an approve/reject step before the upload to Shopify.

Email me at