Get orders by selected delivery profile GraphQL

vavan19
Visitor
1 0 0

Hi. I've been exploring Admin API (GraphQL) and have not found how to join Order object with selected Delivery method. I'm doing a delivery App so I want my customers to see on my App page the orders that were done with CarrierService of my App. Then I will generate them some documents for post offices and so on.

So is it possible to query Orders by DeliveryMethod? It really makes sense in my App context.

Reply 1 (1)

CalD
Shopify Staff
140 22 36

Hi @vavan19,

Check out the orders Queryroot here. You're able to use delivery_method as a query filter to get the orders that have a particular delivery method used.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog