Hello and thanks for your question. I’ve added a similar response in this forum.
“One thing to note is that you’ll now need to pass country code as the context input argument, rather than currency code. The reason is that you can have multiple countries that share the same currency (for example France and Spain), but that have different final prices. You’ll be able to see the currency code off of the price.”
To fetch the available countries, you can use the following queries:
In Admin API
query Markets {
markets(first: 10) {
nodes {
regions(first: 10) {
nodes {
... on MarketRegionCountry {
code
}
}
}
}
}
}
In Storefront API
query AvailableCountries {
localization {
availableCountries {
currency { isoCode }
isoCode
}
}
}