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”).
This code needs to be shared in availability request to Stuba API, when booking hotels.

Name

String

Full form of the nationality (e.g., “Afghanistan”, “Albania”).

Response Samples

Samples

Copy
{ "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" } }
{ "Success": true, "Message": "Nationality data fetched successfully", "Data": [ { "Code": "AF", "Name": "Afghanistan" }, { "Code": "AL", "Name": "Albania" } ] }
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>