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

Copy
<HotelSearch xmlns="http://www.reservwire.com/namespace/WebServices/Xml"> <Authority> <Org>TestOrg</Org> <User>TestUser</User> <Password>TestPassword</Password> </Authority> </HotelSearch>
<StaticAPIResponseOfListOfNationalityDetails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Success>true</Success> <Message>Nationality data fetched successfully</Message> <Data> <NationalityDetails> <Code>AF</Code> <Name>Afghanistan</Name> </NationalityDetails> <NationalityDetails> <Code>AL</Code> <Name>Albania</Name> </NationalityDetails> </Data> </StaticAPIResponseOfListOfNationalityDetails>
Copy
{ "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" } }
{ "Success": true, "Message": "Nationality data fetched successfully", "Data": [ { "Code": "AF", "Name": "Afghanistan" }, { "Code": "AL", "Name": "Albania" } ] }