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.
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!
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
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.
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!
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.