Description:
Retrieves booking information by providing keywords or the Booking ID (as returned in the BookRS).
Required input for Retrieving by keywords:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://www.opentravel.org/OTA/2003/05">
<soapenv:Header/>
<soapenv:Body>
<TS_RetrieveRQ xmlns="http://www.opentravel.org/OTA/2003/05"
Target="Production" Version="1.0">
<POS>
<Source ISOCountry="ZA" ISOCurrency="ZAR">
<RequestorID Type="Company" ID="website"
ID_Context="ts" MessagePassword="<PASSWORD>">
<CompanyName><USERNAME></CompanyName>
</RequestorID>
</Source>
</POS>
<RetrieveQuery>
<SearchParams>
<Keyword Keyword="keyword string" />
<Paging pageSize="100" start="0" />
</SearchParams>
</RetrieveQuery>
</TS_RetrieveRQ>
</soapenv:Body>
</soapenv:Envelope>
A keyword can be one of the following:
, which will retrieve booking summaries for your username - First name or last name of customer
- PNR of booking
- Contact details, like e-mail address and phone number
- Supplier Code (1A for Amadeus, etc)
Retrieving Bookings by keyword always return a summary - to retrieve individual bookings, you must use the retrieval by Booking ID. Example response provided here.
Required input for Retrieving by Booking ID:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://www.opentravel.org/OTA/2003/05">
<soapenv:Header/>
<soapenv:Body>
<TS_RetrieveRQ xmlns="http://www.opentravel.org/OTA/2003/05"
Target="Production" Version="1.0">
<POS>
<Source ISOCountry="ZA" ISOCurrency="ZAR">
<RequestorID Type="Company" ID="website"
ID_Context="ts" MessagePassword="<PASSWORD>">
<CompanyName><USERNAME></CompanyName>
</RequestorID>
</Source>
</POS>
<RetrieveQuery>
<Reference ID="8985" />
</RetrieveQuery>
</TS_RetrieveRQ>
</soapenv:Body>
</soapenv:Envelope>
The only required input is the booking ID provided in the <ItinerarySummary> tag, the ID attribute. Example response provided here.