Parameter Details
Name | Type | Description |
---|---|---|
LoginDetails | object | Required. See the login section for details. |
BookDetails | object | Required. |
•ArrivalDate | date string | Required. Date must be on or after today. |
•Duration | integer | Required. Stay length in days. Must be between 1 and 88. |
•LeadGuest | object | Required. |
••FirstName | string | Required. Max 30 characters. |
••LastName | string | Required. Max 30 characters. |
••Title | string | Required. Max 10 characters. |
••Address1 | string | Max 30 characters. |
••Address2 | string | Max 30 characters. |
••TownCity | string | Max 30 characters. |
••County | string | Max 30 characters. |
••Postcode | string | Max 15 characters. |
••Phone | string | Max 20 characters. |
string | Max 50 characters. | |
•Request | string | Any comments / requests for the booking. |
•TradeReference | string | Required. Max 50 characters. Any reference you have that can be attached to this booking to help retrieval later – usually the booking reference in your system. |
•TotalPrice | decimal | Sometimes required. Total price given in the original search result this booking is being made in accordance with. When provided, compared with current pricing to ensure no discrepancy. Any mismatch will give an error. |
•RoomBookings | object | Required. |
••RoomBooking | object | Required. At least 1 RoomBooking must be provided. |
•••RoomID | integer | Required. |
•••MealBasisID | integer | Required. |
•••Adults | integer | Required. |
•••Children | integer | Required. Ages 0 – 17 |
•••Infants | integer | Deprecated. Please use Children . |
•••Guests | object | Sometimes Required. See below for details. |
••••Guest | object | For the first room requested, you must provide a Guest tag for each adult and child (not including the Lead Guest).Example: A single room booking with two adults and one child will need the lead guest information, as well as two Guest tags. One for the other adult, and one for the child.If you request more than one room, subsequent rooms must have one Guest tag for each guest in that room. |
••••Type | string enum | Required.Adult Child |
••••FirstName | string | Required. When unknown, use “TBA“. Max 30 Characters. |
••••LastName | string | Required. When unknown, use “TBA“. Max 30 Characters. |
••••Title | string | Required. Max 10 characters. |
••••Age | integer | Required when Type = “Child” |
••••Nationality | string |
Example Request
<?xml version="1.0" encoding="UTF-8"?>
<BookRequest>
<LoginDetails>
<Login>xmltest</Login>
<Password>xmltest</Password>
<Version>6.0</Version>
</LoginDetails>
<BookDetails>
<ArrivalDate>2020-08-01</ArrivalDate>
<Duration>5</Duration>
<LeadGuest>
<FirstName>Jim</FirstName>
<LastName>Watsworth</LastName>
<Title>Mr</Title>
</LeadGuest>
<RoomBookings>
<RoomBooking>
<RoomID>14384</RoomID>
<MealBasisID>1</MealBasisID>
<Adults>2</Adults>
<Children>1</Children>
<Infants>0</Infants>
<Guests>
<Guest>
<Type>Adult</Type>
<FirstName>Sally</FirstName>
<LastName>Smith</LastName>
<Title>Mrs</Title>
<Nationality>French</Nationality>
</Guest>
<Guest>
<Type>Child</Type>
<FirstName>Jimmy</FirstName>
<LastName>Smith</LastName>
<Age>5</Age>
<Nationality>French</Nationality>
</Guest>
</Guests>
</RoomBooking>
<RoomBooking>
<RoomID>14384</RoomID>
<MealBasisID>1</MealBasisID>
<Adults>1</Adults>
<Children>0</Children>
<Infants>0</Infants>
<Guests>
<Guest>
<Type>Adult</Type>
<FirstName>Joe</FirstName>
<LastName>Smith</LastName>
<Title>Mr</Title>
<Nationality>British</Nationality>
</Guest>
</Guests>
</RoomBooking>
</RoomBookings>
</BookDetails>
</BookRequest>