Inventory_changes query with customer_account_id filter

I would like to do something like this:
inventory_changes(date_from:“2020-08-01” customer_account_id:“12345”)

Why wouldn’t the inventory_changes query support filtering by customer account?

Is there some other efficient way to get the adjustments for a single account? So I can avoid wasting API call credits returning Adjustments across all accounts?

Hi @bbarrett!
We currently don’t have this, but you could use a Bearer associated to the customer account, would that work for you?

Something like this:

query {
  inventory_changes(
    warehouse_id: "V2FyZWhvdXNlOjExNzkz"
    date_from: "2020-09-18"
  ) {
    request_id
    complexity
    data {
      edges {
        node {
          user_id
          account_id
          warehouse_id
          sku
          previous_on_hand
          change_in_on_hand
          reason
          cycle_counted
          location_id
          created_at
        }
      }
    }
  }
} 

But instead of using the 3PL User Bearer, use the Bearer from the Customer account user instead.

Let me know if this still won’t work for you.
Thanks in advance!
Tom

UPDATE about this:

The request has been approved and now is on our engineering board to be built (to be able to filter for customer_account_id on the inventory_changes query).
It might take some time until this gets implemented, but I will let you know as soon as I have a better ETA for it.

The reason is that using the customer bearer (as in my previous suggestion above) is not bringing back all the information needed.

Thanks again!
Tom

@tomasw I am not seeing customer_account_id as a filter for inventory_changes implemented. Is this still planned?

Thank you

Hello @kokua!

Sadly, this hasn’t been released yet, and I don’t see it in the roadmap.

However, the workaround provided should work now. Can you let me know if this is not the case for you?

Have a great day!
TomasFD