POST Hotel/SearchAllSupplier
Request Information
URI Parameters
None.
Body Parameters
HotelSearchAllSupplierRequestName | Description | Type | Additional information |
---|---|---|---|
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:
{ "paxPassport": "sample string 1", "countryID": "sample string 2", "cityID": "sample string 3", "checkInDate": "2025-01-22T02:11:36.0001874+07:00", "checkOutDate": "2025-01-22T02:11:36.0001874+07:00", "roomRequest": [ { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] }, { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] } ], "userID": "sample string 6", "accessToken": "sample string 7" }
application/xml, text/xml
Sample:
<HotelSearchAllSupplierRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 7</accessToken> <userID>sample string 6</userID> <checkInDate>2025-01-22T02:11:36.0001874+07:00</checkInDate> <checkOutDate>2025-01-22T02:11:36.0001874+07:00</checkOutDate> <cityID>sample string 3</cityID> <countryID>sample string 2</countryID> <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> </HotelSearchAllSupplierRequest>
Response Information
Resource Description
HotelSearchAllSupplierResponseName | Description | Type | Additional information |
---|---|---|---|
hotels | Collection of HotelSearchCacheModel |
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:
{ "hotels": [ { "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-22T02:11:36.0470633+07:00", "priceStart": 14.0, "facilities": [ "sample string 1", "sample string 2" ], "ratingAverage": 15.0 }, { "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-22T02:11:36.0470633+07:00", "priceStart": 14.0, "facilities": [ "sample string 1", "sample string 2" ], "ratingAverage": 15.0 } ], "paxPassport": "sample string 1", "countryID": "sample string 2", "cityID": "sample string 3", "checkOutDate": "2025-01-22T02:11:36.0470633+07:00", "checkInDate": "2025-01-22T02:11:36.0470633+07:00", "roomRequest": [ { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] }, { "roomType": 0, "isRequestChildBed": true, "childNum": 2, "childAges": [ 1, 2 ] } ], "respTime": "2025-01-22T02:11:36.0470633+07:00", "userID": "sample string 7", "accessToken": "sample string 8", "status": "sample string 9", "respMessage": "sample string 10" }
application/xml, text/xml
Sample:
<HotelSearchAllSupplierResponse 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-22T02:11:36.0470633+07:00</respTime> <status>sample string 9</status> <userID>sample string 7</userID> <checkInDate>2025-01-22T02:11:36.0470633+07:00</checkInDate> <checkOutDate>2025-01-22T02:11:36.0470633+07:00</checkOutDate> <cityID>sample string 3</cityID> <countryID>sample string 2</countryID> <hotels> <HotelSearchCacheModel> <ID>sample string 2</ID> <address>sample string 5</address> <availabilityStatus>true</availabilityStatus> <bookingDaysBefore>9</bookingDaysBefore> <email>sample string 4</email> <facilities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </facilities> <internalCode>sample string 6</internalCode> <logo>sample string 7</logo> <market>sample string 10</market> <message>sample string 11</message> <name>sample string 1</name> <phone>sample string 12</phone> <priceStart>14</priceStart> <promoEndDate>2025-01-22T02:11:36.0470633+07:00</promoEndDate> <rating>3</rating> <ratingAverage>15</ratingAverage> <website>sample string 13</website> </HotelSearchCacheModel> <HotelSearchCacheModel> <ID>sample string 2</ID> <address>sample string 5</address> <availabilityStatus>true</availabilityStatus> <bookingDaysBefore>9</bookingDaysBefore> <email>sample string 4</email> <facilities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </facilities> <internalCode>sample string 6</internalCode> <logo>sample string 7</logo> <market>sample string 10</market> <message>sample string 11</message> <name>sample string 1</name> <phone>sample string 12</phone> <priceStart>14</priceStart> <promoEndDate>2025-01-22T02:11:36.0470633+07:00</promoEndDate> <rating>3</rating> <ratingAverage>15</ratingAverage> <website>sample string 13</website> </HotelSearchCacheModel> </hotels> <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> </HotelSearchAllSupplierResponse>