Get All Nationality Details
This API provides a list of nationalities supported within Stuba’s hotel booking system. The traveller’s nationality plays an important role in determining hotel availability, room options, and applicable rates.
Hotel partners offer different prices, promotions, or room allocations based on nationality. Including the correct nationality in your availability searches ensures that accurate pricing, offers, and booking policies are applied according to the traveller’s nationality.
Stuba’s Content API supports both XML and JSON request and response formats, depending on the Content-Type and Accept headers used.
GetAllNationalityDetails Request Syntax
Endpoint URL
https://{URL}}/webapi/staticData/getAllNationalityDetails
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 whether the API request was successful (true / false). |
|
Message |
String |
Descriptive message about the request result |
|
Data |
Array of NationalityDetails |
List of nationality details returned by the API. |
NationalityDetails Object
| Field | Type | Description |
|---|---|---|
|
Code |
String |
The country code (ISO 3166 format) of the guests’ nationality (e.g., “AF”, “AL”). |
|
Name |
String |
Full form of the nationality (e.g., “Afghanistan”, “Albania”). |
Response Samples
Samples