When a booking is made by the client, they must notify Hotetec's platform using the PhoenixBookingNotificationRequest message. 

Hotetec will respond to this notification with the PhoenixBookingNotificationResponse .


Important:

When notifying a booking to Hotetec, it must always include all rooms, including those that have been canceled, modified, or added.


Example:

If a booking with two rooms is notified to Hotetec, and later one of them is canceled, a new notification of this booking must be sent containing two rooms: 

  1. One with the status CONFIRMED 
  2. One with the status CANCELED 



PhoenixBookingNotificationRequest  


It is used to notify the client's booking to Hotetec:


Element

M

Type

Restrictions

Description

booking

Y

ComplexElement

See definition

Booking notification



Example PhoenixBookingNotificationRequest  


<PhoenixBookingNotificationRequest>

        <booking>

                <reference>SBXJ1234TV</reference>

                <externReference>PMI01254</externReference>

                <createDateTime>01/06/2020 12:00:00</createDateTime>

                <checkinDate>01/08/2020</checkinDate>

                <checkoutDate>05/08/2020</checkoutDate>

                <agencyCode>TST</agencyCode>

                <externAgency>Viajes 123</externAgency>

                <vendorCode>CONNECT</vendorCode>

                <hotelCode>30625</hotelCode>

                <amount>1650.40</amount>

                <currencyCode>USD</currencyCode>

                <contactPerson name="John" surname="Smith" email="[email protected]" telephone="192456789" country="ES"/>

                <bookingRoom id="1">

                        <status>Confirmed</status>

                        <checkinDate>01/08/2020</checkinDate>

                        <checkoutDate>05/08/2020</checkoutDate>

                        <roomCode>DBL</roomCode>

                        <mealPlan>RO</mealPlan>

                        <amount>1650.40</amount>

                        <currencyCode>USD</currencyCode>

                        <rateDay day="01/08/2020" rateCode="Flexible rate" amount="412.60" />

                        <rateDay day="02/08/2020" rateCode="Flexible rate" amount="412.60" />

                        <rateDay day="03/08/2020" rateCode="Flexible rate" amount="412.60" />

                        <rateDay day="04/08/2020" rateCode="Flexible rate" amount="412.60" />

                        <guest id="1" name="John Smith" amount="825.25" age="33" birthDate="01/04/1987"/>

                        <guest id="2" name="Jane Smith" amount="825.25" age="35" birthDate="01/04/1985"/>

                        <arrivalFlight dateTime="01/01/2021 00:00:00" flightNumber=”abc1234"/>

                        <departureFlight dateTime="06/01/2021 00:00:00" flightNumber=”xyz9876"/>

                        <remark text="Non smoking room please" />

            </bookingRoom>

            <remark text="Nice room please" />

            <paymentCardDetail holder="Jane Smith" number="4111111111111111" expiryDate="01/04/2025" securityCode="123"/>

    </booking>

</PhoenixBookingNotificationRequest>




PhoenixBookingNotificationResponse


It is the response message to the booking notification. :


Element

M

Type

Restrictions

Description

status

Y

String

KO, OK

Indicates whether the request has been processed successfully (OK) or if an error has occurred (KO) 


error

ComplexElement

See definition


Error element



Example PhoenixBookingNotificationResponse KO


<PhoenixBookingNotificationResponse>

            <status>KO</status>

            <error code="PHX-14" message="Error al volcar la reserva en BBDD"/>

</PhoenixBookingNotificationResponse>



Example PhoenixBookingNotificationResponse OK


<PhoenixBookingNotificationResponse>

            <status>OK</status>

</PhoenixBookingNotificationResponse>