A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I am using the Admin API to get my shipping zones information from my shipping profile. I am wondering if it would be possible to localise my request and get it in a specific currency.
endpoint am using: /admin/api/2022-10/shipping_zones.json
currently getting prices in default store currency which is GBP. I wanna be able to get them en EUR for example.
I hope its possible !
thank you very much
Hey @moelafi - that endpoint is going to pull from the shop's default currency setting. I do get where you're coming from on this though and I'm going to make a note to pass on to our developers. At the moment, the logic is that since these rates will only be seen by the merchant within the admin it makes sense to display them in the default Shop Currency, which is basis for the currency exchange that appears on the customer side of things.
That said, you can use the fields on that endpoint to see which countries each shipping zone applies to. This would be under the location_group_id field and in the countries field within the JSON output payload.
Like I mentioned though, I am going make a note to pass along some feedback, it would be handy to have this info easily surfaceable.
Hope this helps - thanks for getting in touch.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog