A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
}
}
}
}
}
Solved! Go to the solution
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
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