Get shipping destination country from order id

I would like to modify a query like:

{
“query”: “query { order(id: "gid://shopify/Order/12345") { agreements(first: 10) { edges { node { id happenedAt sales(first: 30) { edges { node { actionType lineType quantity totalAmount { shopMoney { amount } } … on ProductSale { lineItem { id name sku } } } } } } } } } }”
}

To return the destination country for the order as well. Any help appreciated.

Thanks!

It was actually pretty easy. I just had to add shippingAddress { countryCodeV2 }.

1 Like

Great to hear you figured this out and thanks for coming back to post the solution!