Page 1 of 1

Country codes in API 2

Posted: Wed Dec 02, 2020 9:43 am
by jerich
Hi,

with the endpoint GetDataInformation of XRuntime in API 2 it is possible to fetch a list of supported countries by continent. In this list only the ISO2 country code is provided, see the first image below.

Question: Is it possible to get the country name as well?

In API 1 PTV provided a static list of country codes see the second image.

Re: Country codes in API 2

Posted: Wed Dec 02, 2020 10:24 am
by Bernd Welter
Hello Matthias,

the country name isn't available through the API - therefore my recommendation is to create a look-a-side table in your environment where you keep some dictionary based on ISO2-Code and CountryName (in the language of your choice).

I will also forward this post to Product Management. Best case they override me with a built in solution.

Bernd