The booking request is close to the availability query but contains far more details used to better describe the booking.
Here is an example:
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
<header>
<actor>test</actor>
<user>test</user>
<password>test</password>
<version>1.6.1</version>
<timestamp>20030423170000</timestamp>
<distributor>5</distributor>
</header>
<query type="book" product="hotel">
<search number="1238"/>
<synchronous value="false"/>
<nationality>IT</nationality>
<checkin date="2003-09-05"/>
<checkout date="2003-09-13"/>
<city code="vce"/>
<availonly value="true" />
<hotel code="2860" agreement="LCL.3186"/>
<reference code="BOOK2005 000001"/>
<responses>
<to url="http://www.yoursite.com/yourprogram.cgi"/>
<to url="mailto://your.address@yoursite.com"/>
</responses>
<details>
<room type="dbl" extrabed="true" cot="true">
<pax leader="true" title="MR" name="GIOVANNI" surname="ROSSI"/>
<pax title="MS" initial="M" surname="ROSSI"/>
<pax title="MR" initial="G" surname="ROSSI" age="5"/>
</room>
</details>
<remarks>
<remark code="RH"/>
<remark code="NSR"/>
<remark code="PFR" text="25EUR"/>
</remarks>
</query>
</envelope>
The query tag has its type attrubute set to "book".
Fields description:
pax
So you can provide some passengers in full names and some passengers with just the initials as in:
<room type="dbl" extrabed="true" cot="true">
<pax leader="true" title="MR" name="GIOVANNI" surname="ROSSI"/>
<pax title="MS" initial="M" surname="ROSSI"/>
<pax title="MR" initial="G" surname="ROSSI" age="5"/>
</room>
But the preferable way is using always the full names because some hotels could require them as in:
<room type="dbl" extrabed="true" cot="true">
<pax leader="true" title="MR" name="GIOVANNI" surname="ROSSI"/>
<pax title="MS" name="MARIA" surname="ROSSI"/>
<pax title="MR" name="GASTONE" surname="ROSSI" age="5"/>
</room>
The response message, in case the default asynchronous mode has been chosen, is used only as a feedback from the server system to the client system. Contains a shorter summary of the booking:
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
<header>
<version>1.6.1</version>
<timestamp>20030423170003</timestamp>
</header>
<response type="book">
<reference code="BOOK2005 000001"/>
<responses>
<to url="http://www.yoursite.com/yourprogram.cgi"/>
<to url="mailto://your.address@yoursite.com"/>
</responses>
<booking name="2014-1231"/>
</response>
</envelope>
The meaning of the tag is the same one which is used in the query message with the only difference of booking name
In case synchronous mode has been set for messages handling, the returned response would have been of the same format than a booking details request, see "Booking tracking" chapter.