Access to inventory level history?

Highlighted
New Member
7 0 0

Is the data presented at:

https://{storeName}.myshopify.com/admin/products/{productId}/variants/{variantId}/inventory_history?location_id={locationId}

exposed anywhere in the Shopify API?

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @brett20 ,

 

There is no API to get the Inventory History of a specific inventory item. A close workaround you could do instead is subscribe to the Webhook topic of "inventory_levels/update". That way you will get a notification from Shopify every time an Inventory Level change occurs, and you will know exactly which Inventory Item ID and which location the change happened for. Read more about webhooks here: https://shopify.dev/docs/admin-api/rest/reference/events/webhook

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
7 0 0

Thanks for the reply @hassain.

I had seen that the webhook was available and that'll be fine going forward... but it would be great to be able to access the history so that we can look back to before we'd implemented the webhook.

0 Likes