POST HotelSearch/BookHotel?TransRef={TransRef}&HotelId={HotelId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| TransRef | string |
Required |
|
| HotelId | string |
Required |
Body Parameters
HotelBookReq| Name | Description | Type | Additional information |
|---|---|---|---|
| Remark | string |
None. |
|
| Mobile | string |
None. |
|
| string |
None. |
||
| roomBooks | Collection of RoomBook |
None. |
Request Formats
application/json, text/json
Sample:
{
"Remark": "sample string 1",
"Mobile": "sample string 2",
"Email": "sample string 3",
"roomBooks": [
{
"IsHolder": true,
"RoomKey": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4"
},
{
"IsHolder": true,
"RoomKey": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<HotelBookReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelBeds_Api">
<Email>sample string 3</Email>
<Mobile>sample string 2</Mobile>
<Remark>sample string 1</Remark>
<roomBooks>
<RoomBook>
<FirstName>sample string 3</FirstName>
<IsHolder>true</IsHolder>
<LastName>sample string 4</LastName>
<RoomKey>sample string 2</RoomKey>
</RoomBook>
<RoomBook>
<FirstName>sample string 3</FirstName>
<IsHolder>true</IsHolder>
<LastName>sample string 4</LastName>
<RoomKey>sample string 2</RoomKey>
</RoomBook>
</roomBooks>
</HotelBookReq>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |