# GetCountryList

This API returns a list of information about various countries, including the country code and country name.

POST
https://apiint.didatravel.com/api/staticdata/GetCountryList?$format=json
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    }
}
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
<GetCountryListRQ>
  <Header>
    <ClientID>DidaApiTestID</ClientID>
    <LicenseKey>TestKey</LicenseKey>
  </Header>
</GetCountryListRQ>
Request Parameters
Header HeaderType
Client authentication infoHeaderType
Request Sample
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    }
}
Request Sample
<GetCountryListRQ>
  <Header>
    <ClientID>DidaApiTestID</ClientID>
    <LicenseKey>TestKey</LicenseKey>
  </Header>
</GetCountryListRQ>
   [
    {
        "name": "Error",
        "description": "",
        "children": [
            {
                "name": "Code",
                "description": "Error code"
            },
            {
                "name": "Message",
                "description": "Error message"
            }
        ]
    },
    {
        "name": "Success",
        "description": "",
        "children": [
            {
                "name": "Countries",
                "description": "Country information Collection",
                "children": [
                    {
                        "name": "ISOCountryCode",
                        "description": "2 digit country code"
                    },
                    {
                        "name": "CountryName",
                        "description": "Country name"
                    },
                    {
                        "name": "CountryName_CN",
                        "description": "Country name in CN"
                    }
                ]
            }
        ]
    }
]
Response Parameters
Error ErrorType
ErrorType
Success GetCountryListRSSuccess
GetCountryListRSSuccess
Response Sample
{
    "Success": {
        "Countries": [
            {
                "CountryName_CN": "安道尔",
                "CountryName": "Andorra",
                "ISOCountryCode": "AD"
            },
            {
                "CountryName_CN": "阿拉伯联合酋长国",
                "CountryName": "United Arab Em",
                "ISOCountryCode": "AE"
            },
            {
                "CountryName_CN": "阿富汗",
                "CountryName": "Afghanistan",
                "ISOCountryCode": "AF"
            }
        ]
    }
}
Response Sample
<?xml version="1.0"?>
<GetCountryListRS>
  <Success>
    <Countries>
      <Country>
        <ISOCountryCode>AD</ISOCountryCode>
        <CountryName>Andorra</CountryName>
        <CountryName_CN>安道尔</CountryName_CN>
      </Country>
      <Country>
        <ISOCountryCode>AE</ISOCountryCode>
        <CountryName>United Arab Em</CountryName>
        <CountryName_CN>阿拉伯联合酋长国</CountryName_CN>
      </Country>
      <Country>
        <ISOCountryCode>AF</ISOCountryCode>
        <CountryName>Afghanistan</CountryName>
        <CountryName_CN>阿富汗</CountryName_CN>
      </Country>
    </Countries>
  </Success>
</GetCountryListRS>