sigtrm
January 6, 2025, 5:02pm
1
Hello, I have trouble getting orders with specific displayStatus,
I have tried to set query in multiple ways:
query=fulfillments.displayStatus:ATTEMPTED_DELIVERY
fulfillments.displayStatus:ATTEMPTED_DELIVERY
status:ATTEMPTED_DELIVERY
but it does not filter by the status, it seems to return last orders when sorted desc.
What I want to achieve is to inform buyers with emaila when their shipping was not delievered becasue of absence, specifically Amz buyers.
paul_n
January 6, 2025, 5:55pm
2
Don’t try to guess query filters. The get data task has other examples that show the syntax. You typically cannot use something like fulfillments.displayStatus as almost all filters are just single variable names. The docs for the order query and its filter are here:
https://shopify.dev/docs/api/admin-graphql/2024-04/queries/orders#argument-query
There is no “Attempted delivery” status on fulfillment_status.
Maybe instead you could use “Fulfillment event created” and then check the status of that fulfillment.
sigtrm
January 6, 2025, 6:37pm
3
paul_n
January 6, 2025, 6:46pm
4