Hey! Thanks for your quick answer.
It looks like it’s the exact thing I was looking for. But I cannot make it work for some reason. So there are a bit more informations that would help us resolving that
First, I am trying with “OPEN” orders, but in the UI of Shopify, there is the location.
When I check the network of my browser, I see a
query OrderFulfillmentOrdersQuery($orderId: ID!, $first: Int!, $after: String) {
order(id: $orderId) {
id
fulfillmentOrders(
displayable: true
first: $first
after: $after
sortByFulfillmentPriority: true
) {
edges {
cursor
node {
id
...FulfillmentOrderAttributes
__typename
}
__typename
}
That returns the assignedLocation and stuff
assignedLocation {
location {
id: 'gid://shopify/Location/106311319881'
So now I tried stuff that you gave me in your message
query: 'location_id:gid://shopify/Location/106311319881'
or
query: 'reference_location_id:gid://shopify/Location/106311319881'
None of them returns a single order. This is my query :
orders(first: $first, sortKey: $sortKey, after: $after, query: $query) {
edges {
node {
id
cancelledAt
cancelReason
closed
closedAt
email
fulfillable
fulfillmentOrders(first: 25) {
edges {
node {
id
assignedLocation {
location {
id
name
}
name
}
}
}
}
Some other pieces of informations that might help :
This is what I set in my client in my code
scopes: ['read_orders', 'read_assigned_fulfillment_orders'],
The app does have these authorizations
And this is api version :
apiVersion: '2025-04',
And obviously without the query, I retrieve all my orders as intended.
But for some reason, fulfillmentOrders are not returned within my query, they are always empty. Even tho as I said on the ShopifyUI it is retrieved
I am inclined to test anything !
Thanks for you time