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:

PropertyDescription

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:

  1. No request parameters or request body are required.
  2. The response contains a list of countries and their corresponding two-character nationality codes.
  3. The nationality code can be used when providing traveller nationality information in applicable hotel API requests.