FROM CACHE - en_header

how can see the variants(inventory) quantity history shopify

Solved
DaviAmaral
Excursionist
26 4 4

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)

Accepted Solutions
PaulNewton
Shopify Partner
4765 390 1021

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.

Finally Combinable Discounts - EARLY ACCESS ONLY - Use Free Shipping With Other Discounts

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org
Problem Solved? ✔Accept and Like solutions to help future merchants
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com

View solution in original post

Reply 1 (1)
PaulNewton
Shopify Partner
4765 390 1021

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.

Finally Combinable Discounts - EARLY ACCESS ONLY - Use Free Shipping With Other Discounts

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org
Problem Solved? ✔Accept and Like solutions to help future merchants
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com