Get All Nationality Details
This API retrieves a list of nationalities available in the Stuba’s hotel booking system. The nationality field determines hotel availability and booking options based on the traveller’s nationality.
Suppliers often provide different rates, offers, or room availability depending on nationality.
Users Must select or define the nationality while searching or booking a hotel.
This ensures that appropriate pricing and booking rules are applied according to the traveller’s nationality
It supports both XML and JSON request and response formats, depending on the Content-Type and Accept headers.
GetAllNationalityDetails Request Syntax
Request Header
HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]
Authentication : [Basic authentication using Org, User, and Password fields.]
Request Parameters
| Node/Field | Type | Required | Description |
|---|---|---|---|
|
Org |
String | Yes |
Organization code assigned to your agency. |
|
User |
String | Yes |
Username provided by the system. |
|
Password |
String | Yes |
Password for the user. |
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 |
Boolean |
ISO country code for the nationality (e.g., “AF”, “AL”). |
|
Name |
String |
Full name of the nationality (e.g., “Afghanistan”, “Albania”). |
Response Samples
Samples