Get All Countries

The Get All Countries API retrieves a complete list of countries available in the system.
It provides a unique system ID for each country.
This ID is mainly used to fetch hotel lists, cities, and areas linked to that country.
It ensures accurate mapping of country data across different modules.
The API helps users easily select and filter data based on country selection.
It supports both XML and JSON request and response formats based on headers.

GetAllCountries Request Syntax

Request Header

HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]
Authentication : [Based on Org, User, and Password values inside the request body.]

Request Parameters

Node Type Required Description

Org

String Yes

Organization code assigned to your agency.

User

String Yes

Username provided by the system.

Password

String Yes

User password for authentication

Response Parameters

Field Type Description

Success

Boolean

Indicates successful operation (true).

Message

String

Message confirming success.

Data

Array

List of country details.

Data.RegionDropdown.RegionId

Integer

Unique ID representing the country/region.

Data.RegionDropdown.RegionName

String

Name of the country.

Response Samples

Samples

Copy
<HotelSearch xmlns="http://www.reservwire.com/namespace/WebServices/Xml"> <Authority> <Org>TestOrg</Org> <User>TestUser</User> <Password>TestPassword</Password> </Authority> </HotelSearch>
<StaticAPIResponseOfListOfRegionDropdown xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Success>true</Success> <Message>Countries fetched successfully</Message> <Data> <RegionDropdown> <RegionId>123</RegionId> <RegionName>Antigua And Barbuda</RegionName> </RegionDropdown> <!-- Additional countries will appear here --> </Data> </StaticAPIResponseOfListOfRegionDropdown>
Copy
{ "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" } }
{ "Success": true, "Message": "Countries fetched successfully", "Data": [ { "RegionId": 123, "RegionName": "Antigua And Barbuda" } ] }