hotel-api-GetAllNationality
Hotel API 1.7
GetAllNationality
Retrieves the list of available countries along with their corresponding nationality codes. Clients can use this information to populate nationality selection lists and provide the appropriate code in applicable hotel booking requests.
Path: /api/HotelApi/GetAllNationality/
Method Type :Post
Method Type :No request body required
Request parameters:
This API does not require any request parameters or request body.
Request example:
No request body is required.
Response fields:
| Property | Description |
|---|---|
country String | Name of the country associated with the nationality code. |
nationality String | Two-character country/nationality code associated with the country. |
Response example:
[
{
"country": "Bahrain",
"nationality": "BH"
},
{
"country": "Lebanon",
"nationality": "LB"
},
{
"country": "Canada",
"nationality": "CA"
},
{
"country": "United States",
"nationality": "US"
}
]
Important notes:
- No request parameters or request body are required.
- The response contains a list of countries and their corresponding two-character nationality codes.
- The nationality code can be used when providing traveller nationality information in applicable hotel API requests.