POST Hotel/AvailableRooms
Request Information
URI Parameters
None.
Body Parameters
HotelAvailableRoomsRequestName | Description | Type | Additional information |
---|---|---|---|
hotelID | string |
None. |
|
paxPassport | string |
None. |
|
countryID | string |
None. |
|
cityID | string |
None. |
|
checkInDate | date |
None. |
|
checkOutDate | date |
None. |
|
roomRequest | Collection of HotelRoomRequestModel |
None. |
|
userID |
user API |
string |
None. |
accessToken |
access code getting from login |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "hotelID": "sample string 1", "paxPassport": "sample string 2", "countryID": "sample string 3", "cityID": "sample string 4", "checkInDate": "2025-01-22T23:49:14.378618+07:00", "checkOutDate": "2025-01-22T23:49:14.378618+07:00", "roomRequest": [ { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] }, { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] } ], "userID": "sample string 7", "accessToken": "sample string 8" }
application/xml, text/xml
Sample:
<HotelAvailableRoomsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 8</accessToken> <userID>sample string 7</userID> <checkInDate>2025-01-22T23:49:14.378618+07:00</checkInDate> <checkOutDate>2025-01-22T23:49:14.378618+07:00</checkOutDate> <cityID>sample string 4</cityID> <countryID>sample string 3</countryID> <paxPassport>sample string 2</paxPassport> <roomRequest> <HotelRoomRequestModel> <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </childAges> <childNum>2</childNum> <isRequestChildBed>true</isRequestChildBed> <roomType>Single</roomType> </HotelRoomRequestModel> <HotelRoomRequestModel> <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </childAges> <childNum>2</childNum> <isRequestChildBed>true</isRequestChildBed> <roomType>Single</roomType> </HotelRoomRequestModel> </roomRequest> <hotelID>sample string 1</hotelID> </HotelAvailableRoomsRequest>
Response Information
Resource Description
HotelAvailableRoomsResponseName | Description | Type | Additional information |
---|---|---|---|
hotelInfo | HotelSearchModel |
None. |
|
paxPassport | string |
None. |
|
countryID | string |
None. |
|
cityID | string |
None. |
|
checkOutDate | date |
None. |
|
checkInDate | date |
None. |
|
roomRequest | Collection of HotelRoomRequestModel |
None. |
|
respTime |
describe time in sending response |
date |
None. |
userID |
user ID to access API |
string |
None. |
accessToken |
access token that needed to access API |
string |
None. |
status |
SUCCESS or FAILED |
string |
None. |
respMessage |
detail message of response status |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "hotelInfo": { "name": "sample string 1", "ID": "sample string 2", "rating": 3.0, "email": "sample string 4", "address": "sample string 5", "internalCode": "sample string 6", "logo": "sample string 7", "availabilityStatus": true, "bookingDaysBefore": 9, "market": "sample string 10", "message": "sample string 11", "phone": "sample string 12", "website": "sample string 13", "promoEndDate": "2025-01-22T23:49:14.378618+07:00", "rooms": [ { "ID": "sample string 1", "breakfast": "sample string 2", "name": "sample string 3", "isOnRequest": true, "price": 5.0, "bookingType": "sample string 6", "isPackageDeal": true, "promoCode": "sample string 8", "hotelGroup": 9, "image": "sample string 10", "images": [ "sample string 1", "sample string 2" ], "facilites": [ "sample string 1", "sample string 2" ], "isDynamicPrice": true }, { "ID": "sample string 1", "breakfast": "sample string 2", "name": "sample string 3", "isOnRequest": true, "price": 5.0, "bookingType": "sample string 6", "isPackageDeal": true, "promoCode": "sample string 8", "hotelGroup": 9, "image": "sample string 10", "images": [ "sample string 1", "sample string 2" ], "facilites": [ "sample string 1", "sample string 2" ], "isDynamicPrice": true } ], "facilities": [ "sample string 1", "sample string 2" ], "ratingAverage": 14.0, "facility": [ { "facilityGroupName": "sample string 1", "facilities": [ "sample string 1", "sample string 2" ] }, { "facilityGroupName": "sample string 1", "facilities": [ "sample string 1", "sample string 2" ] } ], "nearbyProperty": [ { "propertyGroupName": "sample string 1", "property": [ { "groupName": "sample string 1", "propertyName": "sample string 2", "distance": 3.0, "distanceUnit": "sample string 4" }, { "groupName": "sample string 1", "propertyName": "sample string 2", "distance": 3.0, "distanceUnit": "sample string 4" } ] }, { "propertyGroupName": "sample string 1", "property": [ { "groupName": "sample string 1", "propertyName": "sample string 2", "distance": 3.0, "distanceUnit": "sample string 4" }, { "groupName": "sample string 1", "propertyName": "sample string 2", "distance": 3.0, "distanceUnit": "sample string 4" } ] } ], "latitude": "sample string 15", "longitude": "sample string 16" }, "paxPassport": "sample string 1", "countryID": "sample string 2", "cityID": "sample string 3", "checkOutDate": "2025-01-22T23:49:14.378618+07:00", "checkInDate": "2025-01-22T23:49:14.378618+07:00", "roomRequest": [ { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] }, { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] } ], "respTime": "2025-01-22T23:49:14.378618+07:00", "userID": "sample string 7", "accessToken": "sample string 8", "status": "sample string 9", "respMessage": "sample string 10" }
application/xml, text/xml
Sample:
<HotelAvailableRoomsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 8</accessToken> <respMessage>sample string 10</respMessage> <respTime>2025-01-22T23:49:14.378618+07:00</respTime> <status>sample string 9</status> <userID>sample string 7</userID> <checkInDate>2025-01-22T23:49:14.378618+07:00</checkInDate> <checkOutDate>2025-01-22T23:49:14.378618+07:00</checkOutDate> <cityID>sample string 3</cityID> <countryID>sample string 2</countryID> <hotelInfo> <ID>sample string 2</ID> <address>sample string 5</address> <availabilityStatus>true</availabilityStatus> <bookingDaysBefore>9</bookingDaysBefore> <email>sample string 4</email> <facilities xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </facilities> <facility> <HotelFacilityModel> <facilities xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </facilities> <facilityGroupName>sample string 1</facilityGroupName> </HotelFacilityModel> <HotelFacilityModel> <facilities xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </facilities> <facilityGroupName>sample string 1</facilityGroupName> </HotelFacilityModel> </facility> <internalCode>sample string 6</internalCode> <latitude>sample string 15</latitude> <logo>sample string 7</logo> <longitude>sample string 16</longitude> <market>sample string 10</market> <message>sample string 11</message> <name>sample string 1</name> <nearbyProperty> <HotelNearbyProperty> <property> <HotelNearbyPropertyDetail> <distance>3</distance> <distanceUnit>sample string 4</distanceUnit> <groupName>sample string 1</groupName> <propertyName>sample string 2</propertyName> </HotelNearbyPropertyDetail> <HotelNearbyPropertyDetail> <distance>3</distance> <distanceUnit>sample string 4</distanceUnit> <groupName>sample string 1</groupName> <propertyName>sample string 2</propertyName> </HotelNearbyPropertyDetail> </property> <propertyGroupName>sample string 1</propertyGroupName> </HotelNearbyProperty> <HotelNearbyProperty> <property> <HotelNearbyPropertyDetail> <distance>3</distance> <distanceUnit>sample string 4</distanceUnit> <groupName>sample string 1</groupName> <propertyName>sample string 2</propertyName> </HotelNearbyPropertyDetail> <HotelNearbyPropertyDetail> <distance>3</distance> <distanceUnit>sample string 4</distanceUnit> <groupName>sample string 1</groupName> <propertyName>sample string 2</propertyName> </HotelNearbyPropertyDetail> </property> <propertyGroupName>sample string 1</propertyGroupName> </HotelNearbyProperty> </nearbyProperty> <phone>sample string 12</phone> <promoEndDate>2025-01-22T23:49:14.378618+07:00</promoEndDate> <rating>3</rating> <ratingAverage>14</ratingAverage> <rooms> <HotelRoomInformationModel> <ID>sample string 1</ID> <bookingType>sample string 6</bookingType> <breakfast>sample string 2</breakfast> <facilites xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </facilites> <hotelGroup>9</hotelGroup> <image>sample string 10</image> <images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </images> <isDynamicPrice>true</isDynamicPrice> <isOnRequest>true</isOnRequest> <isPackageDeal>true</isPackageDeal> <name>sample string 3</name> <price>5</price> <promoCode>sample string 8</promoCode> </HotelRoomInformationModel> <HotelRoomInformationModel> <ID>sample string 1</ID> <bookingType>sample string 6</bookingType> <breakfast>sample string 2</breakfast> <facilites xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </facilites> <hotelGroup>9</hotelGroup> <image>sample string 10</image> <images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </images> <isDynamicPrice>true</isDynamicPrice> <isOnRequest>true</isOnRequest> <isPackageDeal>true</isPackageDeal> <name>sample string 3</name> <price>5</price> <promoCode>sample string 8</promoCode> </HotelRoomInformationModel> </rooms> <website>sample string 13</website> </hotelInfo> <paxPassport>sample string 1</paxPassport> <roomRequest> <HotelRoomRequestModel> <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </childAges> <childNum>2</childNum> <isRequestChildBed>true</isRequestChildBed> <roomType>Single</roomType> </HotelRoomRequestModel> <HotelRoomRequestModel> <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </childAges> <childNum>2</childNum> <isRequestChildBed>true</isRequestChildBed> <roomType>Single</roomType> </HotelRoomRequestModel> </roomRequest> </HotelAvailableRoomsResponse>