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