We do not have a Flow action to do that yet. However, if you have some technical skills, you could do that now by calling the Shopify admin API to update the product inventory. We don’t have any plans yet to add this action short-term, but we’ve made a note that you are looking for it.
Yes, I do mean to use Shopify admin API + Shopify Flow.
BTW, the previous link I gave you is GraphQL API, which I don’t think can easily used by you. Instead, you should use the REST API . The API has details on the header you need as well in the example:
Thank you, Lily, for your helpful insight and support. I am still encountering below error, even after changing “newvalue” to “100” as the desired quantity setting and attempting to leave “newvalue” as is, still get the same error.
Thanks, Lily for your help, although it wasn’t exactly what I was looking for, it did lead me in the right direction and I was able to find a solution that worked for me. I appreciate your assistance.
In case anyone looking for the same thing here is what worked for me:
Hi Stan, I have done exactly this, for me when stock level reaches 3 or less I overide stock level to 0 with shopify flow using the method above. I cant open flow on my phone with full view, I will reply tomorrow with a screenshot from my laptop on how how I did it.
Here is how my flow automation is set up: I will probably remove the email at the end as it gets annoying. I set it up just to see if it was working as intended.
I have been working on this for a few days, but can’t seem to get it to work. I want to create a flow that adjusts the inventory of an item once monthly, when I run the flow it get
{"errors":"Not Found"}
Same thing when I follow the link itself. Not sure what is wrong, I believe I followed everything mentioned in the thread. Were there any other steps you took?
You are getting that on the Send HTTP Request? I think it would help to see your configuration but my first guess is that you are using the wrong ID to set inventory.
Are you sure the ID’s match? Probably doesn’t matter but remove any whitespace after the string, since I see 2 newlines. Is neither of those work, try it with postman or some API client to get it working.
Hi Paul, when you are referring to ID do you mean Store ID, inventory ID, or Location ID? I have a feeling that the URL is the problem as its giving a 404 and I was actually able to accidentally access the login page of other stores with the same API. I have checked the Store ID several times to ensure it is accurate.
BBPT I was stuck on with the same 404 error and you might have the same issue.
Note that the “inventory_item_id” is not the same value as the variant ID you can pick up on the product/variant page link.
I used Matrixify to retrieve the variables I needed but you can also get via API.
You can use /adjust to add or subtract a quantity instead of setting a value.