There are 2 tags related to
confirmation status: the Success one tells us, if the request
was successfully processed, and ConfirmationStatus one tells us about the
booking confirmation status. So with the first one, we can know if the server
could process the request successfully. It should be the first piece of data to
be read from the response. With the second one, we know the confirmation status
of the request.
These tags may not be returned
in response if not regarding to bookings, for example, for travel file
information and so on.
For example, in a successfully
booked hotel we get in response:
1 <OTA_HotelResRS ResResponseType="Commit"
SequenceNmbr="1"
Target="Production" TimeStamp="2008-03-05T11:34:23Z"
Version="1" xmlns="http://www.opentravel.org/OTA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2 <Success/>
3 <HotelReservations>
4 <HotelReservation
OriginalBookingDate="2008-03-05T12:00:00Z" ReservationOriginatorCode="418498"
RoomStayReservation="true">
5 <TPA_Extensions>
6 <PartyName>
7 </PartyName>
8
<ConfirmationStatus>N</ConfirmationStatus>
9 Here goes data section…
10 </OTA_HotelResRS>
If ConfirmationStatus carries the
Code="C" or Code=”N”, is safe to assume everything went OK, and the
data section of the response is guaranteed to conform to the schema for the
response of the invoked operation.
-
“C” : Means that reservation was confirmed after a pending status confirmation
-
“N”: Means that was directly booked without passing through pending status.
-
“P”: Means that the reservation could not be confirmed, but is in Peding
Status waiting for confirmation.
Otherwise, it means that an
error condition was met and the reponse should be one of the three types
mentioned in the validation
and other application errors document.