OTA_GetBookingRQ
This is not an official OTA message!
The method can only be called via REST-API using GET and is only enabled for individual OTA partners.
Parameters used:
@AgentDutyCode(optional if IP WhiteList or HTTP Basic Auth is used)@HotelCode(mandatory)@from(mandatory as date e.g. 2022-11-15 or datetime e.g. 2022-11-15T13:30:00)@to(mandatory as date or datetime)
Example:
GET /ota/api/GetHotel?AgentDutyCode=1&HotelCode=4&from=2022-11-15T13:30:00&to=2022-11-16T00:00:00
A list of bookings for one or various hotels is output. in block
<bookings hotelId="7730">
a list of bookings for this hotel id is given.
<booking id="2441899" action="Modify" date="2023-01-03T16:05:31+01:00" currency="EUR" totalAmount="463.00" ... >
- The room stays per night are shown separately for each booking and room.
- Extra services are listed in a separate block
Caution: No OTA standard attributes are used in the response.
Example GetBooking (Response)
<?xml version="1.0" encoding="UTF-8"?>
<message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TimeStamp="2023-04-19T15:33:14+02:00" Version="2.12">
<success/>
<bookings hotelId="4">
<booking id="2441899" action="Modify" date="2023-01-03T16:05:31+01:00" currency="EUR" totalAmount="463.00"
paidAmount="0" payableAmount="0" dueAmount="463.00" origin="Kurzurlaub.de" paxCount="2" adultCount="2"
childCount="0" infantCount="0">
<customer firstName="Andreas" lastName="Günther" title="Mr">
<contact email="tester@kurzurlaub.de" phone="012345678">
<address city="Schwerin" country="DEU" countryName="Deutschland" postalCode="19053">
<![CDATA[Teststrasse 1]]></address>
</contact>
<comment><![CDATA[
Testbuchung für Extras
Sonstige Wünsche:
- Nichtraucherzimmer
- Anreise nach 18:00 Uhr
Gebuchtes Angebot:
- Offer-ID: 204195
- Offer-Name: Testangebot availpro OTA - bitte nicht buchen!
- RatePlanCode: TEST-BAR-2N
- RatePlanId: 204195
- Reservation-ID: 2441899
- Reservation-Code: 4SZTJ
- Reservation-Number: R2441899-AP204195-7730 / P65
Gebuchte Extras:
2 x E-Scooter / 2 x 18.00 Euro [Per hour] = 36.00 Euro total
1 x Flasche Weisswein / 1 x 19.00 Euro [Per use] = 19.00 Euro total
2 x Personal training [45 Minuten] / 2 x 35.00 Euro [Per person] = 70.00 Euro total
]]></comment>
</customer>
<distributor>
<comment name="Zusatzleistung">
<![CDATA[2 x E-Scooter / 2 x 18.00 EUR [Per hour] = 36.00 EUR total]]></comment>
<comment name="Zusatzleistung">
<![CDATA[1 x Flasche Weisswein / 1 x 19.00 EUR [Per use] = 19.00 EUR total]]></comment>
<comment name="Zusatzleistung">
<![CDATA[2 x Personal training [45 Minuten] / 2 x 35.00 EUR [Per person] = 70.00 EUR total]]></comment>
</distributor>
<rooms>
<room id="32109" name="Doppelzimmer (20m²)">
<stays>
<stay date="2023-01-26" quantity="1" unitPrice="79.00" rateCode="TEST-BAR-2N"
ratePlanID="204195" ratePlanType="OfferRate"/>
<stay date="2023-01-27" quantity="1" unitPrice="79.00" rateCode="TEST-BAR-2N"
ratePlanID="204195" ratePlanType="OfferRate"/>
<stay date="2023-01-28" quantity="1" unitPrice="180.00" rateCode="TEST-BAR-2N"
ratePlanID="204195" ratePlanType="ExtraNightRate"/>
</stays>
<guests>
<guest firstName="Andreas" lastName="Günther" ageRange="10" title="Mr"/>
<guest firstName="Testerin" lastName="Günther" ageRange="10" title="Mrs"/>
</guests>
</room>
</rooms>
<extras>
<extra from="2023-01-26" to="2023-01-29" quantity="2" unitPrice="18.00" extraCode="ZL-105946"
extraName="Zusatzleistung - E-Scooter" inclusive="false" pricingType="PerGuest"/>
<extra from="2023-01-26" to="2023-01-29" quantity="1" unitPrice="19.00" extraCode="ZL-63562"
extraName="Zusatzleistung - Flasche Weisswein" inclusive="false" pricingType="PerStay"/>
<extra from="2023-01-26" to="2023-01-29" quantity="2" unitPrice="35.00" extraCode="ZL-105947"
extraName="Zusatzleistung - Personal training" inclusive="false" pricingType="PerGuest"/>
</extras>
</booking>
</bookings>
</message>