If a shop has multiple fulfillment locations you can filter the orders (in the shop admin) based on a selected location. Unfortunately, it looks as though reference_location_id is not a filter option for the ORDER REST API.
By inspecting the post headers when I change the location I see a rather complex graphql query being sent to core “OrderListData” somewhere in there is an additional query ordersList() that returns the filtered results based on the order locationID.
Anyone out there know if its possible to do similar? I’m guessing it will be a rather expensive query but would be interested nevertheless.
You had any luck with this query yet, we have a requirement where we have to fetch orders based on the assigned locations. Currently we are fetching individual orders which is taking up a lot of time.
Please let me know if there was any further development from Shopify’s end or something insightful that you could suggest.