Develop an app using REST API which require multi-currency

Olmer
Shopify Partner
8 0 3

Hello,

we trying to build an app which should use variants presentment_prices on back-end.
currently app on development stage and we able to test it only with developer stores.
we always experience a problem that:
1. https://shopify.dev/docs/api/admin-rest/2022-10/resources/currency 
2. https://shopify.dev/docs/api/admin-rest/2022-10/resources/product-variant -> presentment_prices
are always empty.


we use  header 'X-Shopify-Api-Features': 'include-presentment-prices'.
and this filter as well:


curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-10/products/632910392/variants.json?pres..." \
-H "X-Shopify-Access-Token: {access_token}"


as i understand the problem is that developer store don't have multi-currencies and no option to enable it.
How we can solve this, maybe someone know available workarounds?


Replies 2 (2)

ErSanjay
Shopify Partner
293 20 42

@Olmer  you need to pass the localize flag to that API call. or set as default store localize 

Business Owner & Shopify app developer - shopify consting - Full Stack Sofware Engineer
Er Sanjay
Olmer
Shopify Partner
8 0 3

Hey
@ErSanjay Thank you for the respond.  Could you please elaborate?