# Inventory\_changes does not detect recent change in inventory

**URL:** <https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279>\
**Category:** GraphQL API\
**Created:** [December 30, 2019, 6:15pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279 "2019-12-30T18:15:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [December 30, 2019, 6:15pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/1 "2019-12-30T18:15:57Z")

</div>

I am doing an `inventory_changes` query with a specific SKU, and then sorting by `'-created_at'` to get the most recent inventory change for this SKU. I know that the inventory changed for this SKU within the past week, but the most recent change detected by inventory\_changes is from 2018. Is there something wrong with my query?

Here is the `request_id: '5e0a3df051e56e4ff47a4b76'`

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [December 31, 2019, 12:40pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/2 "2019-12-31T12:40:48Z")

</div>

Hi @nturk  
I wanted you to know that I already submitted a ticket for the Engineering team to have a look at this behavior.  
I will let you know as soon as I have an update.  
Thanks!  
Tom

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 3, 2020, 1:56am UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/3 "2020-01-03T01:56:51Z")

</div>

Hey Tom,

Just checking in to see if there’s an update from Engineering.

Thanks

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 3, 2020, 4:27pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/4 "2020-01-03T16:27:09Z")

</div>

Hey @tomasw

I did another inventory\_changes query using only a date range to confirm that no changes have been detected even though there was an inventory change within the past 2 weeks.

The request id is: “5e0f6b1000a637dd16aae2d2”

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 6, 2020, 4:19pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/5 "2020-01-06T16:19:52Z")

</div>

Hey @tomasw

Any update from engineering on this?

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [January 6, 2020, 5:27pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/6 "2020-01-06T17:27:47Z")

</div>

Hi @nturk !  
I apologize for the delay in my response. I don’t have an update or ETA yet, but probably tomorrow I will have a better idea. An engineer is currently working on a fix for this.  
I’ll provide an update tomorrow.  
Thanks!,  
Tom

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 6, 2020, 5:36pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/7 "2020-01-06T17:36:53Z")

</div>

Hey @tomasw

No problem. Thank you for the update on the status of things.

---

<div class="post-metadata">

**Author:** ![statonjm](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@statonjm](https://community.shiphero.com/u/statonjm)\
**Post date:** [January 6, 2020, 10:20pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/8 "2020-01-06T22:20:22Z")

</div>

I am so glad I found this thread - this is my first time using GraphQL, and I am also new to Ship Hero. I thought I was doing something incorrect. If an additional request\_id would be helpful… “5e13b5ee2313a367a89a3dcc”

Looking forward to this being resolved and incorporating this into our data!  
Thanks

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 9, 2020, 4:05pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/9 "2020-01-09T16:05:55Z")

</div>

Hey @tomasw

Any update on this? I desperately need inventory\_changes to work for my functionality.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [January 9, 2020, 8:53pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/10 "2020-01-09T20:53:33Z")

</div>

Hi @nturk  
I apologize for the delay on my response, currently one of our engineers is working on the fix, we should have it available for tomorrow.  
I’ll update as soon as we have it done.  
Thanks for the patience!,  
Tom

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [January 13, 2020, 3:28pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/11 "2020-01-13T15:28:31Z")

</div>

HI @nturk & @statonjm  
A fix for this should already be live!.  
I appreciate your patience on this.  
Thanks and let me know if there’s anything else I can help you with,  
Tom

---

<div class="post-metadata">

**Author:** ![nturk](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@nturk](https://community.shiphero.com/u/nturk)\
**Post date:** [January 13, 2020, 4:33pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/12 "2020-01-13T16:33:39Z")

</div>

Hey @tomasw

Thanks for the update! I can see the latest inventory change now.

Although, the query comes with two “Unexpected Error” messages as well, but they look to be identical since they are both code 22:

`request_id: "5e1c9aafa5d630449bb5c4d6"`

![image](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/bfbf7d092daf3aa544444b79be46266334865ed7.png)

---

<div class="post-metadata">

**Author:** ![statonjm](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@statonjm](https://community.shiphero.com/u/statonjm)\
**Post date:** [January 13, 2020, 10:01pm UTC](https://community.shiphero.com/t/inventory-changes-does-not-detect-recent-change-in-inventory/279/13 "2020-01-13T22:01:03Z")

</div>

I started using the inventory\_changes query, I luckily noticed some gaps when querying! On the front end, I appear to have inventory changes from 12/07/19 to 12/08/19 (seen on front end) but the query produces no results for this date range. There were no messages nor errors, just an empty array where I expected the data to be.

@nturk Did you experience/notice any issues like this as well? Made me nervous for other data I was pulling - not sure if any other data points are missing.

@tomasw requestid = 5e1ce84e475aa70d7ad90082

UPDATE: nevermind! I asked our inventory specialist about it (sorry new to ShipHero!) and turns out I had many false assumptions! I assumed inventory changed when an order is created - sorry if I wasted anybody’s time!
