Trying to query fulfilled orders using GraphQL, but the following keep pulling all orders:
{ orders(first: 50, query:"fulfillment_status:fulfilled") { edges { node { id name note createdAt displayFinancialStatus displayFulfillmentStatus totalPriceSet { shopMoney { amount } } customer { id displayName } } } } }
What am I doing wrong? Also would look to use other filter params in the same query like created_at and wondering how to do multiple calls in the same query. Looked through https://help.shopify.com/en/api/getting-started/search-syntax but if I'm reading it right, the above should work. Not sure what I'm missing here.
Hi @bmarshall511 ,
The fulfillment_status is actually wrong. The documentation is lacking for GraphQL.
The valid fulfillment_status values can be found here.
Filter orders by their fulfillment status. (default: any) shipped: Show orders that have been shipped. partial: Show partially shipped orders. unshipped: Show orders that have not yet been shipped any: Show orders of any fulfillment status.
So your request should be:
{ orders(first: 50, query:"fulfillment_status:shipped") { edges { node { id name note createdAt displayFinancialStatus displayFulfillmentStatus totalPriceSet { shopMoney { amount } } customer { id displayName } } } } }
Hope it helps!
User | Count |
---|---|
25 | |
8 | |
7 | |
6 | |
4 |