GetBookHistory

GetBookHistory

Getting the history of booking modifications from GDS.

Request

Format Description
  • BookID - ID of the booking the history of which you want to receive. Data type - 64-bit integer.
Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:avia="http://ws-ibe.com/Avia" xmlns:stl="http://ws-ibe.com/STL">
   <soapenv:Header/>
   <soapenv:Body>
      <avia:GetBookHistory>
         <avia:Request>
            <stl:Requisites>
               <stl:AuthToken>token</stl:AuthToken>
            </stl:Requisites>
            <stl:UserID>11111</stl:UserID>
            <stl:RequestType>P</stl:RequestType>
            <stl:RequestBody>
               <avia:BookID>127508</avia:BookID>
            </stl:RequestBody>
         </avia:Request>
      </avia:GetBookHistory>
   </soapenv:Body>
</soapenv:Envelope>

Response

Format Description
  • BookID - ID of the booking you want to cancel. Data type - 64-bit integer.
  • PNRCode - booking code in the GDS. Data type - string.
  • HistoryElements - container for elements in booking history. Data type - array.
  • HistoryElements.HistoryElement - booking history element. Data type - array. Occurs 1 or more times.
  • HistoryElements.HistoryElement.DateTime - date and time of the booking in the yyyy-mm-ddthh:mm:ss format. Data type - string.
  • HistoryElements.HistoryElement.ChangeSource - source of the change. Data type - string.
  • HistoryElements.HistoryElement.HistoryRemarks - container for modification remarks. Data type - array.
  • HistoryElements.HistoryElement.HistoryRemarks.HistoryRemark - modification remark. Data type - string. Occurs 1 or more times.
Sample
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <GetBookHistoryResponse xmlns="http://ws-ibe.com/Avia">
      <GetBookHistoryResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>117725763</a:RequestID>
        <a:ResponseBody>
          <BookID>127508</BookID>
          <PNRCode>ABCDEF</PNRCode>
          <HistoryElements>
            <HistoryElement>
              <DateTime>2017-08-04T10:39:57</DateTime>
              <HistoryRemarks>
                <HistoryRemark>Remark</HistoryRemark>
              </HistoryRemarks>
            </HistoryElement>
            <HistoryElement>
              <DateTime>2017-08-04T10:39:56</DateTime>
              <HistoryRemarks>
                <HistoryRemark>Remark</HistoryRemark>
              </HistoryRemarks>
            </HistoryElement>
            <HistoryElement>
              <DateTime>2017-08-04T10:34:17</DateTime>
              <HistoryRemarks>
                <HistoryRemark>Remark</HistoryRemark>
              </HistoryRemarks>
            </HistoryElement>
          </HistoryElements>
        </a:ResponseBody>
      </GetBookHistoryResult>
    </GetBookHistoryResponse>
  </s:Body>
</s:Envelope>