Shypyard Blog

Left stranded after OneSaas's shutdown?

Don't worry, Shypyard's got your back! Migrate today to ensure your workflows aren't out of sync for too long and take advantage of our free 14-day trial.

Start your Free Trial
Blog Posts

Your In-Depth Guide To Shopify Inventory Webhooks

Thanks! Your vote has been received and will be used to determine our upcoming blogs.
Submission failed, please try again

What You Need to Know

Start your Free Trial

What are Inventory Webhooks?

Webhooks are a fantastic way to elevate your business. We previously discussed how Shopify merchants can leverage webhooks within stores to automatically handle events such as new clients and orders. In this article, we will explore why Shopify's inventory-related webhooks especially are an essential part of managing the day-to-day of your business. They add to the success of your operations by allowing you to automate your supply chain, the movement of items in warehouses, and track the location of products.

Here are the inventory related resources that Shopify provides:

InventoryItem: This term represents the number of physical goods available to be shipped to a customer. It contains SKU, tracking number, and other essential information about the product.

InventoryLevel: InventoryLevel represents the specific quantity of inventory at one location that is able to be sold. Each location with an inventory item has an inventory level for that specific product.

Location: Location represents the physical locations of production factories, store locations, and warehouses.

How Your Business Can Use Inventory Webhooks

Sending Low-Stock Alerts


If you find yourself forgetting to check stock levels, using the inventory_levels webhooks can be a great help. You can set up system alerts to be notified when stock is low, and automatically place an order for more inventory. Alternatively, webhooks can send a trigger to alert you if a product is overstocked past an ideal level. Finding this balance in inventory levels is essential to running an efficient business and not tying up your cash in working capital.

Automatically Balancing Inventory Between Locations


Inventory webhooks can be extremely useful if your business uses drop shipping or has multiple factories. An inventory webhook can send a trigger if stock is low in one location and trigger a follow-on process to automatically switch over to shipping from a different warehouse. This reduces the manual process of balancing inventory between different locations.

Viewing Analytics


Data-driven individuals can appreciate inventory webhooks for the information they provide. You can use them to create a real-time dashboard of all your inventory changes. This can help you plan your next restock, making sure you have an adequate quantity of products in a certain colour or size.

Communicating with Suppliers

InventoryItem / Location

Rather than manually emailing your suppliers with quantities for new orders, the inventory_level webhook helps you automatically alert them in real-time when you're ready for a restock.

Middleman for Connections to other Software


If you have multiple apps you hope to connect such as an accounting system, (eg: Shopify and MYOB AccountRight), webhooks can act as a direct connection between the two. For example, when a merchant introduces new products to a warehouse, Shopify will send the inventory_item webhook, which can then trigger a process to add that item to your accounting system's various accounts.

How Can I Integrate Inventory Webhooks?

Shopify has a complete list of the code required to run certain webhooks. For more information on how to create webhooks in Shopify, check out this article. However, Shopify Flow doesn't support every webhook your business may use.

How Can I Set Up an Inventory Webhook in Shypyard?

A fantastic alternative to Shopify Flow is Shypyard! Shypyard supports all Shopify webhooks, so your business can reach its full potential. An added bonus: installing webhooks in Shypyard requires no coding experience!

To set up a webhook in Shypyard, log into your dashboard from the main website. On the dashboard, click into your store's app and click the blue "Create New Task" button.

This will open a popup that allows you to create a new task for your store. You can filter through the templates Shypyard offers, import an existing template, or write your own code. Choose one of the buttons, or select an existing template to continue.

Shypyard will automatically open the "Task Editor". Depending on the option you previously chose (template vs no template), you will see different screens. Below you can see 2 possible views. The left screen was obtained by using a template Shypyard provides, and the right screen is what you will see if you choose to start a brand new task.

When looking at the task editor, you'll notice the term "event". Shypyard automatically creates an object called an "event" that allows a user to read all incoming webhook data.

To add an inventory webhook, press the "Add trigger" button on the left bar. This will bring up a popup that allows you to select a task trigger. Click "Shopify Webhook" to set the connection up. If you do not see the "Shopify Webhook" option, ensure you have the Shopify integration installed.

From there, select a Shopify integration from a dropdown menu, and select the inventory webhook you wish to use.

And voila! Your first inventory webhook is installed. You can install as many triggers as you want for one task. However, please note that you will need to differentiate events with each new webhook you add. You can do this by naming each event, name being the function the webhook completes.

FAQs About Shopify Inventory Webhooks

What are webhook endpoints?

A webhook endpoint is a URL that has been configured. For a list of inventory webhook endpoints, check out this Shopify index.

Where do I find the "cost" field for my webhooks?

The "cost" field is a property of the InventoryItem item resource. Every Shopify product has a product variant (or multiple), and each product variant has an inventory_item_id field. From there, you can use the Inventory Item endpoint to set the cost of an item.

How do I track accurate inventory levels?

To find accurate inventory levels, you will need to subscribe to both inventory_levels/update and products/update. There will be a maximum 1-2 second delay when firing both, however, the data will be accurate.

Can I filter my webhooks to only provide alerts for certain items?

No, you can not filter inventory_level or any other webhook to only receive certain types of updates. The properties provided on Shopify are the only ones you can filter with. However, certain Shopify apps such as Low Stock Alert allow you to set inventory alerts for certain products.

In conclusion, inventory webhooks are a fantastic way to streamline your businesses' operations. As a growing store, you have to manage hundreds of little tasks every day. Using webhooks can save time, and provide a seamless product that consistently works.

Be the first to hear when we launch!

Thank you! Your submission has been received!
Invalid Email. Please try again.