how can see the variants(inventory) quantity history shopify

Solved
DaviAmaral
Excursionist
26 4 8

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
                        }

           }
     }
  }
}

Accepted Solution (1)
PaulNewton
Shopify Partner
5931 537 1241

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.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Reply 1 (1)
PaulNewton
Shopify Partner
5931 537 1241

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.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org