---
description: >-
  Stockeo can sync the inventory in your Shopify store with your supplier's XML
  feed.
---

# Update inventory from an XML feed

### Create an automation in Stockeo

Let's start by adding a new Stockeo automation. Navigate to your **Shopify admin panel** → **Apps** → **Stockeo**. Hit **Create Automation**. Type the automation name (or leave the default one), select whether to create or update (this option in our case) products and set when the automation should run.&#x20;

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FLFO0traU8i1QgdOExFE7%2Fstockeo-app-for-shopify-create-new-automation.gif?alt=media&#x26;token=3c3b23bb-826b-4c65-8982-2df75b06ef0e" alt="How to create new automation in Stockeo app for Shopify animated"><figcaption><p>Create new Stockeo automation</p></figcaption></figure>

In the next step, set where to get the product feed from. Select one of the available channels - HTTP, FTP, or Email. If you are going to use FTP, fill in the Host URL, Username, Password, and File path fields. Once you finished, click Connect.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FYt01F2OywJMBJGBOIDPL%2Fset-the-ftp-feed-source-in-stockeo-for-shopify-animated.gif?alt=media&#x26;token=89a82a7f-9dee-4364-8a4a-8c59433ce31e" alt="How to set up feed source in the Stockeo app for Shopify animated"><figcaption><p>Set the feed source</p></figcaption></figure>

Let's move to the Data Mapping section. Start by choosing the file format. Specify the Product Element, i.e. the name of the XML element that wraps product details. Set the SKU and Quantity fields according to the names used in the file from your supplier. You can also add other fields that you would like to update such as Barcode, Compare at Price, Cost Per Item, Price, Title or Weight.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FLc0lHIKTQyqYV1P5ztlI%2Fstockeo-app-for-shopify-set-data-mapping.gif?alt=media&#x26;token=11ab551f-5894-4727-909b-b7175f16f2f2" alt="How to set Data Mapping in the Stockeo app for Shopify animated"><figcaption><p>Set the Data Mapping</p></figcaption></figure>

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2F2mp3YNXxQ5hHlADJtiOQ%2Fstockeo-for-shopify-set-data-mapping-xml.png?alt=media&#x26;token=308912f8-f9db-4550-84b8-ff60db494e53" alt="Fields from the supplier&#x27;s file needed in Stockeo data mapping section annotated"><figcaption><p>Fields from your supplier's feed needed in the Stockeo Data Mapping section</p></figcaption></figure>

Set the filters to choose which products should be modified. You can filter by vendor or product tags. Pick also the location for which the quantity will be updated. Finally, save the automation.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FjdUUFT8xXoY5KgBP0LEr%2Fstockeo-app-for-shopify-add-filters-set-location.gif?alt=media&#x26;token=0138f410-da70-4adc-82b9-1cb8d81756e9" alt="How to set filters and location in the Stockeo automation animated"><figcaption><p>Set filters and location</p></figcaption></figure>

### Run your automation

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

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2F0UUhUNcXVWjXWM4C0bcJ%2Fstockeo-app-for-shopify-run-automation.gif?alt=media&#x26;token=25f0d6d5-f711-4acd-9a44-24dfa4fd1090" alt=""><figcaption><p>Run automation and check a summary</p></figcaption></figure>

If your XML feed has a more complex structure and you need to extract product data from attributes, visit [Enhanced XML Data Mapping](../data-mapping/format/xml#enhanced-xml-data-mapping) to learn more.
