how can see the variants(inventory) quantity history shopify

Solved
DaviAmaral
Excursionist
19 2 1

How can I have access to inventory level history?

For example, see the quantity of a specific SKU  in 2021-09-01,2021-09-02,2021-09-03 and 2021-09-04,

 

I was trying the Graphql but I don't think it what I want

 

{ inventoryItems(first: 10, query:"updated_at:>=2018-09-01") {
  edges {
       node {
                id
               updatedAt
               variant {
                            id
                            sku
                            inventoryQuantity
                        }

           }
     }
  }
}

0 Likes
PaulNewton
Shopify Partner
3136 196 578

This is an accepted solution.

Duplicate , There is no such API support at this time:

April 2020, 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

https://community.shopify.com/c/shopify-apis-and-sdks/access-to-inventory-level-history/td-p/691933 


In other words, currently apps have to maintain their own state and history of inventory.

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com