# Inventory Changes query

**URL:** <https://community.shiphero.com/t/inventory-changes-query/71>\
**Category:** GraphQL API\
**Created:** [August 7, 2019, 1:19pm UTC](https://community.shiphero.com/t/inventory-changes-query/71 "2019-08-07T13:19:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [August 7, 2019, 1:19pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/1 "2019-08-07T13:19:53Z")

</div>

Hello!

To call the inventory\_changes query via the API, a sku is currently required. Would it be possible to change this so that we could supply a location\_id _instead_ of a sku, and therefore get the full history of a specific location? This would help us a lot with researching possible warehousing issues across multiple items that lived in a given location over time.

Or maybe there’s already a way to do this via the API that I’m not aware of? I’d be happy to hear about it if there is.

Thanks,  
Jeremy

---

<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:** [August 7, 2019, 2:25pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/2 "2019-08-07T14:25:25Z")

</div>

Hello Jeremy,  
Unfortunately, we don’t have a way to do that yet, but I just submitted a feature request for that to be added. I will let you know as soon as we have it available.  
Please let me know if there’s anything else we can help you with,  
Thanks!

---

<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:** [August 19, 2019, 5:54pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/3 "2019-08-19T17:54:03Z")

</div>

Hi Jeremy! This is just an update to let you know that your feature request is available now.  
You should be able to query the inventory\_changes using location\_id or location\_name 👍  
Please let me know if there’s anything else we can help you with.  
Thanks!  
Tom W

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [August 21, 2019, 12:18pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/4 "2019-08-21T12:18:54Z")

</div>

Hi @tomasw,

Thanks for the update! I just tried it out, and I can’t get it to work with just a location\_name. It’s still requiring that I submit a sku in addition to the location\_name.

Thanks,  
Jeremy

---

<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:** [August 21, 2019, 5:02pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/5 "2019-08-21T17:02:34Z")

</div>

Hi @jeremyw!  
I apologize for the confusion, are you using a Static Slotting account?

( this feature is only available for Dynamic Slotting accounts because for SS we don’t track changes by location, we use SKUs )

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [August 21, 2019, 5:42pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/6 "2019-08-21T17:42:00Z")

</div>

I’m not sure, @tomasw. How can I find out? I’m not the account owner. I’ve just been tasked with trying to get these things out of the system.

---

<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:** [August 21, 2019, 6:04pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/7 "2019-08-21T18:04:10Z")

</div>

Sure Jeremy! you could try something like this:

{  
account {  
request\_id  
complexity  
data {  
id  
dynamic\_slotting  
}  
}  
}

If the query returns:

- **"dynamic\_slotting": false** , then the account is Static Slotting
- **"dynamic\_slotting": true** , the account is Dynamic Slotting

(If you need some background on what DS and SS means there’s a brief explanation [here](https://help.shiphero.com/article/120-all-about-slotting))

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [August 21, 2019, 6:27pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/8 "2019-08-21T18:27:26Z")

</div>

Ah, then it looks like we’re using static currently. Reading the explanations, I’m not sure why we’re setup that way as our process looks to be leaning more towards what dynamic would be used for, but that’s something for me to check out with our warehouse manager on my side. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Devin\_Mabra](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Devin\_Mabra](https://community.shiphero.com/u/Devin_Mabra)\
**Post date:** [September 23, 2019, 9:07pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/9 "2019-09-23T21:07:20Z")

</div>

Hi,

We use static for the majority of our warehouses. Is it possible to not require an argument specified here?

We can specify the date\_from to keep complexity low, but would need all changes to the inventory change log.

Thanks

---

<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:** [September 24, 2019, 3:20pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/10 "2019-09-24T15:20:47Z")

</div>

Hi Devin\_Mabra,  
I submitted you request to the team so we can analyze if its possible to change that.  
The main reason we require those arguments is to limit the complexity the query might have, but using date\_from / date\_to might be an alternative as well.  
Thanks for contributing!, I will let you know as soon as I have an answer on this.

Tom

---

<div class="post-metadata">

**Author:** ![seba](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@seba](https://community.shiphero.com/u/seba)\
**Post date:** [October 1, 2019, 6:40pm UTC](https://community.shiphero.com/t/inventory-changes-query/71/11 "2019-10-01T18:40:22Z")

</div>

@Devin_Mabra You should be able to filter only by date ranges now, without the need to specify a sku or location,
