Develop an app using REST API which require multi-currency

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
316 20 46

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

Business Owner & Shopify Plus, Shopify app , Shopify Consultant - Full Stack Sofware Engineer
Warm regards,
Er Sanjay

If you find yourself in need of assistance with your store, don't hesitate to reach out! Feel free to send me a direct message, and I'll do my best to help you out.
Olmer
Shopify Partner
8 0 3

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