Hi, I am wondering if there is a way to get the inventory history of a product using REST ADMIN API same way that I can see it on Shopify Admin like this post explain.
I would like to retrieve at least the inventory of the last 48 hs of any product.
Hi and hello, currently there is no way of extracting a history for the inventory levels. There is maybe a quick solution: We could try to implement a history logging mechanism thru the Admin API so that you can get reports based on those history data.
Thanks @Klondev for your answer.
But, yes, we need a solution for this since I am not the only one here asking this question, this is a "must have" feature, and I would appreciate if you can do that.
We also need this API along with Transfer API.
This API feature would be very important, a way to systematically track and pull inventory adjustment data would be great for store security and loss prevention.
Hi all - I noticed @kiavash's new post here and wanted to reach out. At the moment, you folks are correct that there isn't a way to track a product's inventory adjustment history via the REST API. It is possible to get some minimal information about inventory levels, by querying the InventoryLevel resource (particularly, the "updatedAt" field). That said, that's definitely not as detailed as the view within the merchant admin.
There is a great use case here though, so I wanted to get in touch through this thread to mention that I'll be putting together a report on this to send to our product team as a feature request. I can't guarantee anything in terms of an answer or if the feature will be built, but it is for sure something we can see the value in being available to partner developers.
Al | Shopify Developer Support.
Hi @ShopifyDevSup, the API for the inventory adjustment history is significant to many merchants.
At least, showing the reason for the inventory update in webhook of inventory_levels is also a good option to record the inventory adjustment.
webhooks are not very reliable if the listener goes down for a moment.
an API call, this way we can poll shopify and retrieve the data, even if it's only the last 90 days shown by shopify we can do a replication to our own database.