POST HotelSearch/BookHotel?TransRef={TransRef}&HotelId={HotelId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
TransRef

string

Required

HotelId

string

Required

Body Parameters

HotelBookReq
NameDescriptionTypeAdditional information
Remark

string

None.

Mobile

string

None.

Email

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HotelBookReq'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.