Hi @ShopifyDevSup . I faced related issue a month ago.
I used to use the REST API to get prices in different currencies, but I found that the presentment_prices field didn’t calculate the price according to Market calculations.
Here is an example of calculating the market price:
But presentment_prices returns the following:
"price": {
"amount": "370.95",
"currency_code": "EUR"
},
I found a ProductVariantContextualPricing object in the GraphQL API, which return the correct prices. I also discovered myself that it is possible to get multiple currencies by adding multiple contextualPricingCountryCode fields, as you wrote in the answer above.
The problem I’m trying to solve right now is whether it’s possible to get prices for all countries/markets without having the entire list of country codes.
For context: I’m working with a client that has Markets configured for 62 countries. It has 25,000 products with different variants. It takes 8 hours to get all prices for all countries.
I also have to only request 5 contextual prices at a time because otherwise I exceed Shopify’s internal response limit or something because I get this error:
Convermax.Shopify.Exceptions.ApiCallException: 'BulkOperation failed. Status: CREATED. Id: gid://shopify/BulkOperation/*id*'
I work with several Shopify clients and need to index their stores as quickly as possible, so 8 hours for just one store is not acceptable.
I noticed that a request with only 1 contextual price takes about 15 minutes, and a request with 5 at the same time takes about 30 minutes. Therefore, I hope that I will somehow be able to get contextual prices for all countries at once and it will take about 4 hours, but I don’t know how to do this.
Can you help me figure this out?