Get All Countries

The Get All Countries API returns a comprehensive list of countries with bookable hotels available within Stuba’s system.

Each country in the response includes a unique system ID “identified as “RegionId” in response, which is used to retrieve related information such as hotel lists and search regions linked to that country. This API ensures consistent and accurate country mapping across various modules and simplifies the process of filtering or selecting data based on country.

It supports both XML and JSON request and response formats, depending on the Content-Type and Accept headers specified.

GetAllCountries Request Syntax

Endpoint URL

https://{{URL}} /webapi/staticData/getAllCountries

Request Header

HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]

Request Parameters

Field Type Required Description

Org

String Yes

The organisation short code identifying the agent responsible for the request (Agency ID).

User

String Yes

The user’s logon, unique within the given organisation (User Name).

Password

String Yes

The given user’s password.

Response Parameters

Field Type Description

Success

Boolean

Indicates successful operation (true).

Message

String

Descriptive message about the API result.

Data

Array

List of country details.

RegionId

Integer

Unique ID representing the country/region.

RegionName

String

Name of the country.

Response Samples

Samples

Copy
{ "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" } }
{ "Success": true, "Message": "Countries fetched successfully", "Data": [ { "RegionId": 8800, "RegionName": "Antigua And Barbuda" } ] }
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>8800</RegionId> <RegionName>Antigua And Barbuda</RegionName> </RegionDropdown> <!-- Additional countries will appear here --> </Data> </StaticAPIResponseOfListOfRegionDropdown>