Query product price and currencyCode in specific marketplace with Storefront API

I create a GraphQL as below to query the product price and currencyCode for a specific marketplace through Storefront API. This query will be used in WebPixel API when a customer make a purchase of an order which could be in multi-currency based on their shipping address and I want to query the price of USD. I run this query in my test Shopify account and it works as expected. But I found in some account of seller, even I set the countryCode to US, it always return NZD which is New Zealand Dollar. I notice I use inContext(country: $country) in the query statement so I am not sure whether I should remove the @inContext in the query. I did a try to remove it and run in my test account and it seems work too. But I can’t get the account to test again which always return NZD in my previous test. Looking for some advice or suggestion for this question. Thanks a lot.

Hi @yyyshhh

The behavior you’re seeing:@inContext(country: US) still returning NZD is almost certainly because the seller’s store hasn’t enabled the US as a market (or USD as a currency) in their Shopify Markets and payment settings.

From the international pricing docs:

You need to manually enable each country’s currency in a Shopify store’s payment settings before you can create a query with different country contexts. Any queries for countries that aren’t enabled will default to the store currency.