How to get order's market ID using admin graphql

How to get order's market ID using admin graphql

DanteFXX
Shopify Partner
15 2 8

Hi everyone,

 

I have a question about the orders GraphQL query. How can we retrieve the market ID using this query? The order object doesn't include the market_id field.

I know that we can find the market using the country code, but it seems that the order doesn't have the correct country code. The only parameter that could contain the country code is customerLocale, but this is a strange parameter. For example, if I place my first order using the email abc@gmail.com from the "Germany" market, the order has "de-DE" as expected. However, if I place a second order from the "French" market using the same email abc@gmail.com, the value of customerLocale is still "de-DE". Furthermore, I can change this value for future orders using "Language" in the customer settings. In this case, the new value doesn't have a country code but only a language code, such as "en". How you can see this param can't be used for the searching order market ID.

Reply 1 (1)

joeybab3
Shopify Partner
126 16 32

I can't figure out why there seems to be no way to determine a market after an order has been placed, its not even visible on the order manager either