Booking History
The OTA_ReadRQ message allows to query Seaware for the history of an existing booking using the //ReadRequests/ReadRequest[@HistoryRequestedInd="true"]/UniqueID element.
Request Example
<OTA_ReadRQ Version="1" xmlns="http://www.opentravel.org/OTA/2003/05" CorrelationID="5d0ac49b-8aa7-4c25-83d3-aea7bb90d144">
<POS>
[...]
</POS>
<ReadRequests>
<ReadRequest HistoryRequestedInd="true">
<UniqueID ID="12345" Type="14" ID_Context="SEAWARE"/>
</ReadRequest>
</ReadRequests>
</OTA_ReadRQ>
History Response Structure
Quick Reference
- HistoryInfo element: Booking change event
- Items elements: Booking fields or components that changed
- Item/ItemName: The name of the field or component that changed
- Item/NewValue: New value
- Item/OldValue: Old value
- Item/Classification: Which booking areas the changed field or component belongs to
- Item/Name: Narrow the area the changed field belongs to (specifies an instance of the component the changed field belongs to)
History Item Examples
Booking Status Changed
<!-- Booking status changed: -->
<vx:Item
ItemName="Status"
OldValue="OF"
NewValue="BK"
Classification="Header"/>
Guest Added to Booking
<!-- Guest was added to the booking -->
<vx:Item
GuestID="2"
ItemName="Guest"
NewValue="2;ADULT;SMITH SUE;110"
Classification="Guests"/>
Guest Details Modified
<!-- Second guest main details changed (Adult to Infant): -->
<vx:Item
GuestID="2"
ItemName="Guest"
OldValue="2;ADULT;SMITH SUE;110"
NewValue="2;INFANT;SMITH SUE;110"
Classification="Guests"/>
Guest Field Added
<!-- Second guest simple field (Insurance) added: -->
<vx:Item
GuestID="2"
ItemName="Insurance"
NewValue="STANDARD INSUR"
Classification="Guests"
Name="Guest:2;INFANT;SMITH SUE;110"/>
Guest Field Changed
<!-- Second guest simple field (Insurance) changed: -->
<vx:Item
GuestID="2"
ItemName="Insurance"
NewValue="NO INSURANCE"
Classification="Guests"
Name="Guest:2;INFANT;SMITH SUE;110"/>
Additional Details
See XSD annotations for more detail on the history fields and available attributes.