Solved

Determine which market created an order?

garyrgilbert
Shopify Partner
397 40 166

Hi All,

 

Is it possible to determine which market created an order via the APIs?  I have a plus merchant who wants to do specific things with an order for the different markets.  Currently I do not see any field that relates to which specific market the order was placed, only the presentment currency gives any hint but its not enough to determine which specific market the order "belongs" to.

 

Its obvious this data is maintained somewhere otherwise you wouldnt be able to see the sales statistics for the markets. I just don't see its availability in the APIs but maybe I missed it.

 

Anybody know where I might find this information for a specific order?

 

Cheers,

Gary

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Accepted Solution (1)

evaldas_92
Shopify Partner
43 1 17

This is an accepted solution.

Shipping (or billing, in case there's no shipping needed) country determines the market.

 

Since a country can belong to only one market, you could look it up that way.

View solution in original post

Replies 2 (2)

evaldas_92
Shopify Partner
43 1 17

This is an accepted solution.

Shipping (or billing, in case there's no shipping needed) country determines the market.

 

Since a country can belong to only one market, you could look it up that way.

garyrgilbert
Shopify Partner
397 40 166

Hi Evaldas, 

 

Hey thanks for the tip, I guess I was kinda hoping for an easier method but ce la vie 🙂

 

I'll have to use the graphql query to get the markets and check which are active (since there is no query param to reduce the result to only active markets) and check on the fly, decompose the results to something for faster lookup and cache it for a while.

 

Thanks again for the info!

 

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution