Get All Hotels List By Country

The Get All Hotels List by Country API retrieves a list of hotels available within a specific country, based on the CountryRegionId provided in the request.

It returns information for each hotel, including HotelId, HotelName, RegionId, Rating, Latitude, and Longitude.

This API is primarily used to display all hotels grouped under a particular country, helping users search, browse, or initiate bookings based on their selected destination.

It supports both XML and JSON request and response formats.

GetAllHotelsListByCountry Request Syntax

Endpoint URL

https://{{URL}} /webapi/staticData/getAllHotelsListByCountry

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.

RegionId

integer Yes

The country’s region ID whose hotels should be fetched.

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.

Id

Integer

Unique identifier for the hotel.

HotelName

String

Name of the hotel.

RegionId

Integer

Region ID of the hotel (city/area).

Rating

integer

Star rating of the hotel.

Latitude

decimal

Latitude coordinate of the hotel’s location.

Longitude

decimal

Longitude coordinate of the hotel’s location.

Response Samples

Samples

Copy
{ "Authority": { "Org": "{{Org}}", "User": "{{User}}", "Password": "{{Password}}" }, "RegionId": 8932 }
{ "Success": true, "Message": "Hotels fetched successfully", "Data": [ { "Id": "531656", "HotelName": "ibis Bangkok Sukhumvit 4", "RegionId": 2297621, "Rating": 3, "Latitude": 13.737813, "Longitude": 100.553357 } ] }
Copy
<HotelSearch xmlns="http://www.reservwire.com/namespace/WebServices/Xml"> <Authority> <Org>TestOrg</Org> <User>TestUser</User> <Password>TestPassword</Password> </Authority> <RegionId>8932</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>87601</Id> <HotelName>Emporium Suites by Chatrium</HotelName> <RegionId>2297621</RegionId> <Rating>4</Rating> <Latitude>13.730767</Latitude> <Longitude>100.56876</Longitude> </HotelsListResult> </Data> </StaticAPIResponseOfListOfHotelsListResult>