Before making the booking, you will need to make sure that the user is aware of all details regarding this booking and the booked property. This is why you MUST perform the Booking Info request and display the information received to your customer PRIOR to making the booking. The information received from this request is the same information that must be displayed on the voucher. Booking info Request <request version="4.0"> <auth> <username>example</username> <password>example</password> <agent>example</agent> </auth> <hotel-booking-info session="dv.Uw8IU6CsA"> <results> <result>dv.Uw8JnP3oA</result> <result>dv.Uw8JnP3oA</result> </results> </hotel-booking-info> </request>
Notes: you need to send all room ids you wish to book, even if it's the same room id twice Booking Info Response <response success="1" session="dv.Uw8IU6CsA"> <booking-options count="1" split="0"> <booking-option token="dv.Uw8JnP3oA" onrequest="0"> <hotel-info surroundings="0"> <name>The New York Palace</name> <address>455 Madison Ave, New York, United States</address> <phone>1 212 888-7000</phone> <fax/> <rating>4</rating> <latitude>40.75823</latitude> <longitude>-73.97453</longitude> </hotel-info> <remarks> You must present a photo ID when checking in. Your credit card is charged at the time you book. Bed type and smoking preferences are not guaranteed.Your reservation is prepaid and is guaranteed for late arrival. The total charge includes all room charges and taxes, as well as fees for access and booking. Any incidental charges such as parking, phone calls, and room service will be handled directly between you and the property. Fee for in-room wireless Internet: USD 15 (for 24 hours, rates may vary) Valet parking fee: USD 55 per night Rollaway bed fee: USD 50 per night The above list may not be comprehensive. Fees and deposits may not include tax and are subject to change. </remarks> <accepted-cards/> <cancellation> <frame endTime="2014-02-26 13:35:34" timezone="UTC" type="non-refundable"/> </cancellation> </booking-option> </booking-options> </response>
notes:
<accepted-cards> <card type="AX">American Express</card> <card type="UI">Debit Card</card> <card type="CA">Master Card</card> <card type="VI">Visa</card> </accepted-cards> 6. sometimes you will get a child-node similar to this one: <extra-verifications> <verification type="component"> <differences> <difference type="name"/> </differences> <searched-hotel> <name>Best Western Opera Premier Faubourg (formerly the Jules Hotel)</name> </searched-hotel> <provider-hotel> <name>BEST WESTERN PREMIER OPERA FAUBOURG</name> </provider-hotel> </verification> </extra-verifications> 7. In some cases you will get a "warnings" node under the "booking-options" node. This node will hold some warnings regarding possible rate changes <warnings> <warning code="210"><![CDATA[The price for this offer has changed, it is now available for a higher price then you requested.]]></warning> </warnings> |