{"id":7211,"date":"2023-10-23T18:20:26","date_gmt":"2023-10-23T18:20:26","guid":{"rendered":"https:\/\/www.getmesa.com/blog\/blog\/?p=7211"},"modified":"2025-12-22T23:25:53","modified_gmt":"2025-12-22T23:25:53","slug":"how-to-connect-ftp-inventory-feed-to-update-shopify-products","status":"publish","type":"post","link":"https:\/\/www.getmesa.com/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/","title":{"rendered":"How To Connect FTP Inventory Feed To Update Shopify Products"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, we&#8217;ll introduce you to a lesser-known yet powerful technique to manage your Shopify product inventory efficiently: updating product inventory using FTP files and leveraging FTP inventory feeds. You may be familiar with FTP (File Transfer Protocol) for transferring files, but did you know it can also be a game-changer for inventory management in your Shopify store? This method can save you hours of manual work and reduce the likelihood of human error, which is invaluable for busy ecommerce professionals like you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this blog post, we will walk you through the process of updating your Shopify product inventory using <a href=\"https:\/\/www.getmesa.com\/apps\/shopify\/integrate\/ftp\">FTP by MESA<\/a>, from setting up the necessary workflow to automating the entire process. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the end of this tutorial, you&#8217;ll have another valuable workflow in your arsenal to keep your Shopify store&#8217;s inventory levels running smoothly and accurately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s dive in!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-dots\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>TL;DR: Skip the step-by-step tutorial.&nbsp;<\/strong>Use this template to update inventory from FTP drops with just a few clicks.<\/p>\n\n\n<div class=\"mesa-template-backend frontend-hidden\">\n    <p><strong>MESA Template ID<\/strong><\/p>\n    <p>shopify-inventory-updates-from-csv-on-ftp-server<\/p>\n<\/div>\n\n<div class=\"mesa-template\" data-template=\"shopify-inventory-updates-from-csv-on-ftp-server\"><\/div>\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\t\t<style>.mesa-template-backend {\n    background: rgba(139, 139, 150, 0.1);\n    padding: 22px;\n}\n\n.mesa-template-backend h5,\n.mesa-template-backend p {\n    margin: 0 0 5px;\n}\n\n.mesa-template-backend p {\n    font-size: 16px;\n}\n\n.mesa-template-backend p:last-child {\n    display: inline-block;\n    background: #fff;\n    padding: 5px 10px;\n}\n\n.mesa-template-backend p strong {\n    font-size: 12px;\n}<\/style>\n\t\t\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents:<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.getmesa.com/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#Watch-the-tutorial-video\" >Watch the tutorial video<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.getmesa.com/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#How-to-update-Shopify-inventory-from-FTP-files\" >How to update Shopify inventory from FTP files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.getmesa.com/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#Benefits-of-using-FTP-to-manage-product-inventory\" >Benefits of using FTP to manage product inventory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.getmesa.com/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#Workflow-wrap-up\" >Workflow wrap-up<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-watch-the-tutorial-video\"><span class=\"ez-toc-section\" id=\"Watch-the-tutorial-video\"><\/span>Watch the tutorial video<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Update Your Shopify Inventory Levels Automatically From A CSV File Uploaded to FTP\" width=\"1170\" height=\"878\" src=\"https:\/\/www.youtube.com\/embed\/bsqkCD4vYaM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption>Video tutorial how to use FTP and CSV files to update product inventory on Shopify<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-update-shopify-inventory-from-ftp-files\"><span class=\"ez-toc-section\" id=\"How-to-update-Shopify-inventory-from-FTP-files\"><\/span>How to update Shopify inventory from FTP files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-total-time\"><span class=\"schema-how-to-duration-time-text\">Time needed:&nbsp;<\/span>10 minutes<\/p><p class=\"schema-how-to-description\">Follow these step-by-step instructions to connect FTP files to your Shopify store&#8217;s inventory.<\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1683571847213\"><strong class=\"schema-how-to-step-name\">First, create a workflow using the FTP by MESA trigger step<\/strong> <p class=\"schema-how-to-step-text\">Be sure to add your FTP server account credentials to authenticate this app.<img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7937\" alt=\"FTP - fetch CSV file\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/fetch-ftp-csv-file.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/fetch-ftp-csv-file-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683575667165\"><strong class=\"schema-how-to-step-name\">Next, update the File Name and frequency options<\/strong> <p class=\"schema-how-to-step-text\">Add the file name and path if necessary. The frequency controls how often this trigger event will run this workflow.<img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7939\" alt=\"update CSV file path on ftp server\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/csv-file-inventory.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/csv-file-inventory-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1698083973185\"><strong class=\"schema-how-to-step-name\">Next, add Loop by MESA<\/strong> <p class=\"schema-how-to-step-text\">In the field for &#8220;Values to loop over&#8221;, be sure to add the variable <code>{{ftp}}<\/code><img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7940\" alt=\"loop over values in CSV file from ftp server\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683575884359\"><strong class=\"schema-how-to-step-name\">Next, add the Custom Code by MESA action step<\/strong> <p class=\"schema-how-to-step-text\">Then, add this description so you know what this step is all about: <em>Retrieve product variant details that match with the SKU via Shopify GraphQL. Add the Inventory Item ID to the payload that gets pass to the next step.<\/em><img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7941\" alt=\"custom code step\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-code-step.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-code-step-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683576017153\"><strong class=\"schema-how-to-step-name\">Click Edit Code to view the code editor<\/strong> <p class=\"schema-how-to-step-text\">Add the following code snippet to add the inventory item ID. The easiest way is to select the code below and replace the contents entirely:<br\/><br\/><code>const Mesa = require('vendor\/Mesa.js');<br\/>const ShopifyGraphql = require('vendor\/ShopifyGraphql.js');<br\/>const Shopify = require('vendor\/Shopify.js');<br\/><br\/>\/**<br\/>* A Mesa Script exports a class with a script() method.<br\/>*\/<br\/>module.exports = new class {<br\/><br\/>\/**<br\/>* Mesa Script<br\/>*<br\/>* @param {object} payload The payload data<br\/>* @param {object} context Additional context about this task<br\/>*\/<br\/>script = (payload, context) => {<br\/>\/\/ Assign variables<br\/>const vars = context.steps;<br\/>let inventoryItemIdGid = 0;<br\/>const productSku = vars.loop.SKU;<br\/>Mesa.log.info(\"Product SKU\", productSku);<br\/><br\/>\/\/ Set up Shopify GraphQL query and retrieve product variant details based on SKU<br\/>let query = `<br\/>query($query: String!) {<br\/>productVariants(first: 3, query: $query) {<br\/>edges {<br\/>node {<br\/>displayName<br\/>id<br\/>sku<br\/>inventoryItem {<br\/>id<br\/>}<br\/>product {<br\/>id<br\/>title<br\/>}<br\/>}<br\/>}<br\/>}<br\/>}<br\/>`;<br\/>const response = ShopifyGraphql.send(query, {<br\/>\"query\": \"sku:\" + productSku,<br\/>});<br\/>Mesa.log.info(\"Response\", response);<br\/><br\/>\/\/ Get Inventory Item ID from Shopify GraphQL response and include in vars.loop payload<br\/>if (<br\/>response &amp;&amp;<br\/>response.data &amp;&amp;<br\/>response.data.productVariants &amp;&amp;<br\/>response.data.productVariants.edges[0] &amp;&amp;<br\/>response.data.productVariants.edges[0].node &amp;&amp;<br\/>response.data.productVariants.edges[0].node.inventoryItem &amp;&amp;<br\/>response.data.productVariants.edges[0].node.inventoryItem.id<br\/>) {<br\/>inventoryItemIdGid = response.data.productVariants.edges[0].node.inventoryItem.id;<br\/>vars.loop.inventory_item_id = inventoryItemIdGid.match(\/\\d+\/)[0];<br\/>Mesa.log.info(\"Inventory Item ID\", vars.loop.inventory_item_id);<br\/><br\/>\/\/ We're done, call the next step!<br\/>Mesa.output.next(vars.loop);<br\/>} else {<br\/>Mesa.log.info('No Inventory Item ID included. Do not continue to next step');<br\/>}<br\/>}<br\/>}<\/code><br\/><br\/><br\/>Save your workflow.<img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7942\" alt=\"custom liquid code to set inventory levels from a CSV\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-liquid-code.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/custom-liquid-code-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683577182693\"><strong class=\"schema-how-to-step-name\">Next, add Shopify to your workflow and choose the Set Inventory Level action<\/strong> <p class=\"schema-how-to-step-text\">To narrow your search more quickly use the filter search bar.<img loading=\"lazy\" decoding=\"async\" width=\"3024\" height=\"3380\" class=\"wp-image-7220\" alt=\"shopify set inventory level\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-level.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level.png 3024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-268x300.png 268w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-916x1024.png 916w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-768x858.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-1374x1536.png 1374w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-1832x2048.png 1832w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-1920x2146.png 1920w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-278x311.png 278w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-179x200.png 179w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-385x430.png 385w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-level-143x160.png 143w\" sizes=\"auto, (max-width: 3024px) 100vw, 3024px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683577351117\"><strong class=\"schema-how-to-step-name\">Next, add the variables to the Set Inventory Level action<\/strong> <p class=\"schema-how-to-step-text\">Click the {+} icon button per field to choose their respective variable values.<br\/><br\/><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">Note: If you haven&#8217;t saved your workflow yet, the variables may not appear. You can copy\/paste the values below or Save and name your workflow then, the variable will be available to select from the side sheet.<\/mark><br\/><br\/><strong>Available quantity:<\/strong> <code>{{ loop.Inventory }}<\/code><br\/><strong>Location:<\/strong> <em>Choose the right one for your store<\/em><br\/><strong>Inventory Item ID:<\/strong> Custom value, then enter <code>{{ custom.inventory_item_id }}<\/code><img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7943\" alt=\"shopify set inventory levels\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-levels.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-set-inventory-levels-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1683577705725\"><strong class=\"schema-how-to-step-name\">Finally, Save then, name your new workflow.<\/strong> <p class=\"schema-how-to-step-text\">Be sure to turn you workflow On for it to run automatically.<img loading=\"lazy\" decoding=\"async\" width=\"1512\" height=\"859\" class=\"wp-image-7944\" alt=\"workflow complete: Update Shopify inventory levels from a CSV file on an FTP server\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/workflow-complete-2.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2.png 1512w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-300x170.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-1024x582.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-768x436.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-547x311.png 547w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-352x200.png 352w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-757x430.png 757w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/workflow-complete-2-282x160.png 282w\" sizes=\"auto, (max-width: 1512px) 100vw, 1512px\" \/><\/p> <\/li><\/ol><\/div>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-dots\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Save yourself the setup. <\/strong>Use this template instead:<\/p>\n\n\n<div class=\"mesa-template-backend frontend-hidden\">\n    <p><strong>MESA Template ID<\/strong><\/p>\n    <p>shopify-inventory-updates-from-csv-on-ftp-server<\/p>\n<\/div>\n\n<div class=\"mesa-template\" data-template=\"shopify-inventory-updates-from-csv-on-ftp-server\"><\/div>\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Benefits-of-using-FTP-to-manage-product-inventory\"><\/span>Benefits of using FTP to manage product inventory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s explore the most compelling advantages that will make a significant impact on your store&#8217;s operations:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Time and Effort Savings: <\/strong>By <a href=\"https:\/\/www.getmesa.com\/blog\/how-to-automate-product-inventory-on-shopify\/\">automating product inventory<\/a> updates using FTP files, you can eliminate the need for manual data entry and reduce the time spent on routine tasks. This frees up more time for you to focus on more strategic aspects of your business.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Reduced Human Error: <\/strong>Manual inventory updates can be prone to human error, such as typos or incorrect data input. By automating the process using FTP inventory feeds, you can minimize the possibility of mistakes and ensure accurate inventory data is always maintained in your Shopify store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Seamless Integration:<\/strong> FTP is a widely used and supported file transfer protocol, which means you can easily integrate FTP inventory feeds with other software systems, tools, or platforms you&#8217;re already using. This simplifies the process of sharing inventory data with suppliers, warehouses, or other stakeholders in your supply chain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Faster Inventory Updates: <\/strong>The FTP-based inventory update workflow allows for rapid and frequent updates, ensuring your Shopify store&#8217;s inventory data is always up-to-date. This translates to better stock control, minimized stockouts, and improved customer satisfaction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Scalability:<\/strong> As your store grows, so does the volume of inventory data you need to manage. This workflow with FTP inventory feeds can easily scale with your business, ensuring that your inventory management system remains efficient and effective, no matter the size of your store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Customization:<\/strong> MESA can help you tailor the FTP inventory feeds to suit your store&#8217;s unique needs. This allows you to create tailored automation workflows that address specific challenges and drive further operational efficiencies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By leveraging the power of FTP-based inventory updates, you can stay competitive in the fast-paced world of ecommerce while maximizing the value of your resources.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Workflow-wrap-up\"><\/span>Workflow wrap-up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In conclusion, updating your Shopify product inventory using FTP files and FTP inventory feeds is a powerful and efficient method that offers numerous benefits for you and your team. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you strive to stay ahead in the competitive ecommerce landscape, adopting innovative techniques like FTP-based inventory updates and incorporating FTP inventory feeds is essential. By leveraging the power of MESA to automate and customize this workflow, you can unlock new levels of efficiency and success in your store. Don&#8217;t miss the opportunity to streamline your inventory management and make the most of your resources. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Give this method a try and experience the transformative impact it can have on your Shopify store&#8217;s operations.<\/p>\n\n\n\n<div class=\"card-next-steps\">\n\t<div class=\"card__content\">\n\t\t<h4>What to do next&#8230;<\/h4>\n<p>The fastest way to see automation working in your store is to start with a single workflow.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.getmesa.com\/pricing\"><strong>Try MESA free<\/strong><\/a> \u2014 start a 7-day free trial and get your first workflow running.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/templates\"><strong>Browse the template library<\/strong><\/a> \u2014 pre-built workflows for the most common Shopify automation tasks.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/yedric\"><strong>Talk to Yedric<\/strong><\/a> \u2014 describe what you want to automate, and let our AI assistant build it for you.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/support\"><strong>Get free workflow setup<\/strong><\/a> \u2014 MESA&#8217;s team will build your first workflow at no cost.<\/li>\n<\/ol>\n\t<\/div><!-- \/.card__content -->\n\n\t\n<div class=\"socials card__socials\">\n\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/twitter.com\/getmesa\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/twitter-icon.svg\" class=\"attachment-small size-small\" alt=\"icon: twitter\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/www.youtube.com\/@getmesa\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/youtube-icon.svg\" class=\"attachment-small size-small\" alt=\"icon: youtube\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/www.linkedin.com\/company\/9754608\/\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/linkedin-icon.svg\" class=\"attachment-small size-small\" alt=\"linkedin icon\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t<\/ul>\n<\/div><!-- \/.socials -->\n<\/div><!-- \/.card-next-steps -->\n","protected":false},"excerpt":{"rendered":"<p>Today, we&#8217;ll introduce you to a lesser-known yet powerful technique to manage your Shopify product inventory efficiently: updating product inventory&#8230;<\/p>\n","protected":false},"author":1,"featured_media":7224,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[48],"tags":[285,245,287],"class_list":["post-7211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-workflow-tutorials","tag-code","tag-ftp","tag-loop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Connect FTP Inventory Feed To Update Shopify Products - MESA<\/title>\n<meta name=\"description\" content=\"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store&#039;s inventory levels accurate.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Connect FTP Inventory Feed To Update Shopify Products - MESA\" \/>\n<meta property=\"og:description\" content=\"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store&#039;s inventory levels accurate.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/\" \/>\n<meta property=\"og:site_name\" content=\"MESA\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/mesabyshoppad\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-23T18:20:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-22T23:25:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ryan ODonnell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@getmesa\" \/>\n<meta name=\"twitter:site\" content=\"@getmesa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan ODonnell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/\"},\"author\":{\"name\":\"Ryan ODonnell\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/person\\\/37dc9b968192b2be49af3950022179cc\"},\"headline\":\"How To Connect FTP Inventory Feed To Update Shopify Products\",\"datePublished\":\"2023-10-23T18:20:26+00:00\",\"dateModified\":\"2025-12-22T23:25:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/\"},\"wordCount\":934,\"publisher\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/tutorial-ftp-inventory-feed-shopify.jpg\",\"keywords\":[\"code\",\"ftp\",\"loop\"],\"articleSection\":[\"Workflow Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/\",\"name\":\"How To Connect FTP Inventory Feed To Update Shopify Products - MESA\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/tutorial-ftp-inventory-feed-shopify.jpg\",\"datePublished\":\"2023-10-23T18:20:26+00:00\",\"dateModified\":\"2025-12-22T23:25:53+00:00\",\"description\":\"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store's inventory levels accurate.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/tutorial-ftp-inventory-feed-shopify.jpg\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/tutorial-ftp-inventory-feed-shopify.jpg\",\"width\":1280,\"height\":720,\"caption\":\"tutorial ftp to shopify inventory\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Connect FTP Inventory Feed To Update Shopify Products\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\",\"name\":\"MESA\",\"description\":\"Discover how to automate your Shopify growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\",\"name\":\"MESA - AI automation Platform\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/mesa-shoppad.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/mesa-shoppad.jpeg\",\"width\":225,\"height\":225,\"caption\":\"MESA - AI automation Platform\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/web.facebook.com\\\/mesabyshoppad\\\/\",\"https:\\\/\\\/x.com\\\/getmesa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/shoppad\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCqsf_WhcGEsZMvms1idivyw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/person\\\/37dc9b968192b2be49af3950022179cc\",\"name\":\"Ryan ODonnell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"caption\":\"Ryan ODonnell\"},\"sameAs\":[\"https:\\\/\\\/www.getmesa.com\"]},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#howto-1\",\"name\":\"How To Connect FTP Inventory Feed To Update Shopify Products\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#article\"},\"description\":\"Follow these step-by-step instructions to connect FTP files to your Shopify store's inventory.\",\"totalTime\":\"P0DT0H10M\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683571847213\",\"name\":\"First, create a workflow using the FTP by MESA trigger step\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Be sure to add your FTP server account credentials to authenticate this app.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-bc343f8004f73314505607c614b6c586\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/fetch-ftp-csv-file.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/fetch-ftp-csv-file.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683575667165\",\"name\":\"Next, update the File Name and frequency options\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Add the file name and path if necessary. The frequency controls how often this trigger event will run this workflow.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-ddb99b90c4e222615c7a3e2b05b2e385\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/csv-file-inventory.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/csv-file-inventory.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1698083973185\",\"name\":\"Next, add Loop by MESA\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"In the field for \\\"Values to loop over\\\", be sure to add the variable {{ftp}}\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-f523aa8bedd497b46b27088d989432c8\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/loop-over-CSV-file-on-ftp.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/loop-over-CSV-file-on-ftp.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683575884359\",\"name\":\"Next, add the Custom Code by MESA action step\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Then, add this description so you know what this step is all about: Retrieve product variant details that match with the SKU via Shopify GraphQL. Add the Inventory Item ID to the payload that gets pass to the next step.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-1bd65bb0ba4d433f38ea96d964ef6703\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/custom-code-step.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/custom-code-step.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683576017153\",\"name\":\"Click Edit Code to view the code editor\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Add the following code snippet to add the inventory item ID. The easiest way is to select the code below and replace the contents entirely:const Mesa = require('vendor\\\/Mesa.js');const ShopifyGraphql = require('vendor\\\/ShopifyGraphql.js');const Shopify = require('vendor\\\/Shopify.js');\\\/*** A Mesa Script exports a class with a script() method.*\\\/module.exports = new class {\\\/*** Mesa Script** @param {object} payload The payload data* @param {object} context Additional context about this task*\\\/script = (payload, context) => {\\\/\\\/ Assign variablesconst vars = context.steps;let inventoryItemIdGid = 0;const productSku = vars.loop.SKU;Mesa.log.info(\\\"Product SKU\\\", productSku);\\\/\\\/ Set up Shopify GraphQL query and retrieve product variant details based on SKUlet query = `query($query: String!) {productVariants(first: 3, query: $query) {edges {node {displayNameidskuinventoryItem {id}product {idtitle}}}}}`;const response = ShopifyGraphql.send(query, {\\\"query\\\": \\\"sku:\\\" + productSku,});Mesa.log.info(\\\"Response\\\", response);\\\/\\\/ Get Inventory Item ID from Shopify GraphQL response and include in vars.loop payloadif (response &&response.data &&response.data.productVariants &&response.data.productVariants.edges[0] &&response.data.productVariants.edges[0].node &&response.data.productVariants.edges[0].node.inventoryItem &&response.data.productVariants.edges[0].node.inventoryItem.id) {inventoryItemIdGid = response.data.productVariants.edges[0].node.inventoryItem.id;vars.loop.inventory_item_id = inventoryItemIdGid.match(\\\/\\\\d+\\\/)[0];Mesa.log.info(\\\"Inventory Item ID\\\", vars.loop.inventory_item_id);\\\/\\\/ We're done, call the next step!Mesa.output.next(vars.loop);} else {Mesa.log.info('No Inventory Item ID included. Do not continue to next step');}}}Save your workflow.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-47a1f6741e5d51df86719e1821777639\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/custom-liquid-code.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/custom-liquid-code.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683577182693\",\"name\":\"Next, add Shopify to your workflow and choose the Set Inventory Level action\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"To narrow your search more quickly use the filter search bar.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-3b65b01a81734c847f8e352782f06599\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/shopify-set-inventory-level.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/shopify-set-inventory-level.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683577351117\",\"name\":\"Next, add the variables to the Set Inventory Level action\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Click the {+} icon button per field to choose their respective variable values.Note: If you haven't saved your workflow yet, the variables may not appear. You can copy\\\/paste the values below or Save and name your workflow then, the variable will be available to select from the side sheet.Available quantity: {{ loop.Inventory }}Location: Choose the right one for your storeInventory Item ID: Custom value, then enter {{ custom.inventory_item_id }}\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-e25b816827936f8ac328c6ea2d4b4322\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/shopify-set-inventory-levels.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/shopify-set-inventory-levels.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#how-to-step-1683577705725\",\"name\":\"Finally, Save then, name your new workflow.\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Be sure to turn you workflow On for it to run automatically.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\\\/#schema-image-8ee1fb63d894493e78bb2fdf3904a862\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/workflow-complete-2.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/workflow-complete-2.png\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Connect FTP Inventory Feed To Update Shopify Products - MESA","description":"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store's inventory levels accurate.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/","og_locale":"en_US","og_type":"article","og_title":"How To Connect FTP Inventory Feed To Update Shopify Products - MESA","og_description":"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store's inventory levels accurate.","og_url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/","og_site_name":"MESA","article_publisher":"https:\/\/web.facebook.com\/mesabyshoppad\/","article_published_time":"2023-10-23T18:20:26+00:00","article_modified_time":"2025-12-22T23:25:53+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg","type":"image\/jpeg"}],"author":"Ryan ODonnell","twitter_card":"summary_large_image","twitter_creator":"@getmesa","twitter_site":"@getmesa","twitter_misc":{"Written by":"Ryan ODonnell","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#article","isPartOf":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/"},"author":{"name":"Ryan ODonnell","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/person\/37dc9b968192b2be49af3950022179cc"},"headline":"How To Connect FTP Inventory Feed To Update Shopify Products","datePublished":"2023-10-23T18:20:26+00:00","dateModified":"2025-12-22T23:25:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/"},"wordCount":934,"publisher":{"@id":"https:\/\/www.getmesa.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#primaryimage"},"thumbnailUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg","keywords":["code","ftp","loop"],"articleSection":["Workflow Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/","name":"How To Connect FTP Inventory Feed To Update Shopify Products - MESA","isPartOf":{"@id":"https:\/\/www.getmesa.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#primaryimage"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#primaryimage"},"thumbnailUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg","datePublished":"2023-10-23T18:20:26+00:00","dateModified":"2025-12-22T23:25:53+00:00","description":"Learn how to update your Shopify product inventory using an FTP inventory feed and always keep your store's inventory levels accurate.","breadcrumb":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#primaryimage","url":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg","contentUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/tutorial-ftp-inventory-feed-shopify.jpg","width":1280,"height":720,"caption":"tutorial ftp to shopify inventory"},{"@type":"BreadcrumbList","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.getmesa.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Connect FTP Inventory Feed To Update Shopify Products"}]},{"@type":"WebSite","@id":"https:\/\/www.getmesa.com\/blog\/#website","url":"https:\/\/www.getmesa.com\/blog\/","name":"MESA","description":"Discover how to automate your Shopify growth","publisher":{"@id":"https:\/\/www.getmesa.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.getmesa.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.getmesa.com\/blog\/#organization","name":"MESA - AI automation Platform","url":"https:\/\/www.getmesa.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/mesa-shoppad.jpeg","contentUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/mesa-shoppad.jpeg","width":225,"height":225,"caption":"MESA - AI automation Platform"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/mesabyshoppad\/","https:\/\/x.com\/getmesa","https:\/\/www.linkedin.com\/company\/shoppad\/","https:\/\/www.youtube.com\/channel\/UCqsf_WhcGEsZMvms1idivyw"]},{"@type":"Person","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/person\/37dc9b968192b2be49af3950022179cc","name":"Ryan ODonnell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","caption":"Ryan ODonnell"},"sameAs":["https:\/\/www.getmesa.com"]},{"@type":"HowTo","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#howto-1","name":"How To Connect FTP Inventory Feed To Update Shopify Products","mainEntityOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#article"},"description":"Follow these step-by-step instructions to connect FTP files to your Shopify store's inventory.","totalTime":"P0DT0H10M","step":[{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683571847213","name":"First, create a workflow using the FTP by MESA trigger step","itemListElement":[{"@type":"HowToDirection","text":"Be sure to add your FTP server account credentials to authenticate this app."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-bc343f8004f73314505607c614b6c586","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/fetch-ftp-csv-file.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/fetch-ftp-csv-file.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683575667165","name":"Next, update the File Name and frequency options","itemListElement":[{"@type":"HowToDirection","text":"Add the file name and path if necessary. The frequency controls how often this trigger event will run this workflow."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-ddb99b90c4e222615c7a3e2b05b2e385","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/csv-file-inventory.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/csv-file-inventory.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1698083973185","name":"Next, add Loop by MESA","itemListElement":[{"@type":"HowToDirection","text":"In the field for \"Values to loop over\", be sure to add the variable {{ftp}}"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-f523aa8bedd497b46b27088d989432c8","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/loop-over-CSV-file-on-ftp.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683575884359","name":"Next, add the Custom Code by MESA action step","itemListElement":[{"@type":"HowToDirection","text":"Then, add this description so you know what this step is all about: Retrieve product variant details that match with the SKU via Shopify GraphQL. Add the Inventory Item ID to the payload that gets pass to the next step."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-1bd65bb0ba4d433f38ea96d964ef6703","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-code-step.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-code-step.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683576017153","name":"Click Edit Code to view the code editor","itemListElement":[{"@type":"HowToDirection","text":"Add the following code snippet to add the inventory item ID. The easiest way is to select the code below and replace the contents entirely:const Mesa = require('vendor\/Mesa.js');const ShopifyGraphql = require('vendor\/ShopifyGraphql.js');const Shopify = require('vendor\/Shopify.js');\/*** A Mesa Script exports a class with a script() method.*\/module.exports = new class {\/*** Mesa Script** @param {object} payload The payload data* @param {object} context Additional context about this task*\/script = (payload, context) => {\/\/ Assign variablesconst vars = context.steps;let inventoryItemIdGid = 0;const productSku = vars.loop.SKU;Mesa.log.info(\"Product SKU\", productSku);\/\/ Set up Shopify GraphQL query and retrieve product variant details based on SKUlet query = `query($query: String!) {productVariants(first: 3, query: $query) {edges {node {displayNameidskuinventoryItem {id}product {idtitle}}}}}`;const response = ShopifyGraphql.send(query, {\"query\": \"sku:\" + productSku,});Mesa.log.info(\"Response\", response);\/\/ Get Inventory Item ID from Shopify GraphQL response and include in vars.loop payloadif (response &&response.data &&response.data.productVariants &&response.data.productVariants.edges[0] &&response.data.productVariants.edges[0].node &&response.data.productVariants.edges[0].node.inventoryItem &&response.data.productVariants.edges[0].node.inventoryItem.id) {inventoryItemIdGid = response.data.productVariants.edges[0].node.inventoryItem.id;vars.loop.inventory_item_id = inventoryItemIdGid.match(\/\\d+\/)[0];Mesa.log.info(\"Inventory Item ID\", vars.loop.inventory_item_id);\/\/ We're done, call the next step!Mesa.output.next(vars.loop);} else {Mesa.log.info('No Inventory Item ID included. Do not continue to next step');}}}Save your workflow."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-47a1f6741e5d51df86719e1821777639","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-liquid-code.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/custom-liquid-code.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683577182693","name":"Next, add Shopify to your workflow and choose the Set Inventory Level action","itemListElement":[{"@type":"HowToDirection","text":"To narrow your search more quickly use the filter search bar."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-3b65b01a81734c847f8e352782f06599","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-level.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-level.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683577351117","name":"Next, add the variables to the Set Inventory Level action","itemListElement":[{"@type":"HowToDirection","text":"Click the {+} icon button per field to choose their respective variable values.Note: If you haven't saved your workflow yet, the variables may not appear. You can copy\/paste the values below or Save and name your workflow then, the variable will be available to select from the side sheet.Available quantity: {{ loop.Inventory }}Location: Choose the right one for your storeInventory Item ID: Custom value, then enter {{ custom.inventory_item_id }}"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-e25b816827936f8ac328c6ea2d4b4322","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-levels.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-set-inventory-levels.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#how-to-step-1683577705725","name":"Finally, Save then, name your new workflow.","itemListElement":[{"@type":"HowToDirection","text":"Be sure to turn you workflow On for it to run automatically."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/how-to-connect-ftp-inventory-feed-to-update-shopify-products\/#schema-image-8ee1fb63d894493e78bb2fdf3904a862","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/workflow-complete-2.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/workflow-complete-2.png"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/7211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/comments?post=7211"}],"version-history":[{"count":11,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/7211\/revisions"}],"predecessor-version":[{"id":17350,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/7211\/revisions\/17350"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/media\/7224"}],"wp:attachment":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/media?parent=7211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/categories?post=7211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/tags?post=7211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}