Page 27 - demo demito
P. 27
Making a booking:
To make a booking you should first perform an availability search as detailed above. The result of this will be a list of <HotelAvailability> elements, each of which contains a <Result id=””> element. You need to extract the id=”” of the Result you wish to book and use this in the BookingCreate request. As mentioned previously, availability searches aren't guaranteed to return the most accurate data, so you will probably want to check the booking prices, availability and cancellation policy, to confirm that there haven't been any major changes.
This is done by sending a BookingCreate message with the <CommitLevel> set to ‘prepare’.
You will get a full Booking Response back, from which you can check the various details before finalising the booking. The booking is finalised by re-sending the Create Request with the <CommitLevel> changed to ‘confirm’.
E.g. To dry-run a booking for Quote ID ‘100-3’, for customer ‘John Smith’:
<BookingCreate>
<Authority>
<Org>\[Your login organisation\]</Org> <User>\[Your login username\]</User> <Password>\[Your password\]</Password> <Currency>\[Your currency\]</Currency> <Version>\[Required version\]</Version> </Authority>
<QuoteId>100-3</QuoteId>
<HotelStayDetails>
<Room>
<Guests>
<Adult title=”Mr” first=“John” last=”Smith” /> </Guests>
</Room>
</HotelStayDetails> <CommitLevel>prepare</CommitLevel> </BookingCreate>
E.g. to finalise a Booking from Quote ID ‘100-3’, for customer ‘John Smith’:
<BookingCreate>
<Authority>
<Org>\[Your login organisation\]</Org> <User>\[Your login username\]</User> <Password>\[Your password\]</Password> <Currency>\[Your currency\]</Currency> <Version>\[Required version\]</Version> </Authority>
<QuoteId>100-3</QuoteId>
<HotelStayDetails>
<Room>
<Guests>
<Adult title=”Mr” first=“John” last=”Smith” /> </Guests>
</Room>
</HotelStayDetails> <CommitLevel>confirm</CommitLevel> </BookingCreate>
roomsXML.com API Specifications
Page 27 of 36