Hi there,
I’m trying to update stock levels in Shopify using the API. It runs without error but doesn’t update the stock. I’m passing the correct data as far as I can tell but nothing is updating. Any ideas, please ?
Hi there,
I’m trying to update stock levels in Shopify using the API. It runs without error but doesn’t update the stock. I’m passing the correct data as far as I can tell but nothing is updating. Any ideas, please ?
Hey Jason!
If you want to set inventory (overwrite the number of stock with a new number you provide), you need to adjust your URL, as shown in these docs:
admin/api/2020-07/inventory_levels/set.json
would be the new tail to your URL, and then it should work. Make sure its a POST
request too!
It is odd that their API would not have given you a 404 error with your settings above…
That’s it, I needed the adjust. Working great now. Thanks