GET api/Account/GetCountries?currentLanguage={currentLanguage}

Gets the countries.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
currentLanguage

The current language.

SupportedLanguage

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfListOfCountry
NameDescriptionTypeAdditional information
Result

Collection of Country

None.

ErrorCode

ServiceErrorCode

None.

ErrorMessage

Collection of string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": [
    {
      "Id": "ea762780-53e9-4bb3-8a29-9115d08b60ca",
      "Iso": "sample string 2",
      "Name": "sample string 3"
    },
    {
      "Id": "ea762780-53e9-4bb3-8a29-9115d08b60ca",
      "Iso": "sample string 2",
      "Name": "sample string 3"
    }
  ],
  "ErrorCode": 0,
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<ServiceResultOfArrayOfCountry_PTu2eKdN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Common.Infrastructure.ApiObjects.Results">
  <ErrorCode>None</ErrorCode>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
  <Result>
    <Country>
      <Id>ea762780-53e9-4bb3-8a29-9115d08b60ca</Id>
      <Iso>sample string 2</Iso>
      <Name>sample string 3</Name>
    </Country>
    <Country>
      <Id>ea762780-53e9-4bb3-8a29-9115d08b60ca</Id>
      <Iso>sample string 2</Iso>
      <Name>sample string 3</Name>
    </Country>
  </Result>
</ServiceResultOfArrayOfCountry_PTu2eKdN>