Get All Hotels List By Country

This API retrieves all hotels associated with a given country’s region ID.
The Get All Hotels List by Country API retrieves a list of hotels available within a specific country.
It takes the CountryRegionId as input and returns details like HotelId, HotelName, RegionId, Rating, Latitude, and Longitude.
This API helps in displaying hotels based on the selected country for search and booking purposes.
It is mainly used to show all hotels grouped under a particular country.
It supports both XML and JSON request and response formats.

GetAllHotelsListByCountry Request Syntax

Request Header

HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]
Authentication : [Based on Org, User, and Password values inside the request body.]

Request Parameters

Node/Field Type Required Description

Authority.Org

String Yes

Organization name or code registered with the system.

Authority.User

String Yes

API username for authentication.

Authority.Password

String Yes

Password for the user account.

RegionId

integer Yes

The country’s region ID whose hotels should be fetched. Must be a valid country-level ID.

Response Parameters

Field Type Description

Success

Boolean

Indicates if the request was processed successfully (true or false).

Message

String

Descriptive message about the API result.

Data

Array

Contains list of hotel details when the request is successful

Data.Id

Integer

Unique identifier for the hotel.

Data.HotelName

String

Name of the hotel.

Data.RegionId

Integer

Region ID of the hotel (city/area).

Data.Rating

integer

Star rating of the hotel.

Data.Latitude

decimal

Latitude coordinate of the hotel’s location

Data.Longitude

decimal

Longitude coordinate of the hotel’s location.

Response Samples

Samples

Copy
<HotelSearch xmlns="http://www.reservwire.com/namespace/WebServices/Xml"> <Authority> <Org>TestOrg</Org> <User>TestUser</User> <Password>TestPassword</Password> </Authority> <RegionId>123</RegionId> </HotelSearch>
<StaticAPIResponseOfListOfHotelsListResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Success>true</Success> <Message>Hotels fetched successfully</Message> <Data> <HotelsListResult> <Id>349998746</Id> <HotelName>Hotel Azimut</HotelName> <RegionId>18189</RegionId> <Rating>4</Rating> <Latitude>42.25473</Latitude> <Longitude>18.89634</Longitude> </HotelsListResult> </Data> </StaticAPIResponseOfListOfHotelsListResult>
Copy
{ "HotelSearch": { "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" }, "RegionId": 123 } }
{ "Success": true, "Message": "Hotels fetched successfully", "Data": [ { "Id": 349998746, "HotelName": "Hotel Azimut", "RegionId": 18189, "Rating": 4, "Latitude": 42.25473, "Longitude": 18.89634 } ] }