CancelBook

CancelBook

Cancellation of a flight booking.

Request

Format Description
  • BookID - ID of the booking you want to cancel. 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:CancelBook>
         <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>987245</avia:BookID>
            </stl:RequestBody>
         </avia:Request>
      </avia:CancelBook>
   </soapenv:Body>
</soapenv:Envelope>

Response

Format Description
  • BookID - ID of the booking that you want to cancel. Data type - 64-bit integer.
  • Success - attribute of the cancellation success. Data type - boolean.
Sample
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <CancelBookResponse xmlns="http://ws-ibe.com/Avia">
      <CancelBookResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>111111111</a:RequestID>
        <a:ResponseBody>
          <BookID>987245</BookID>
          <Success>true</Success>
        </a:ResponseBody>
      </CancelBookResult>
    </CancelBookResponse>
  </s:Body>
</s:Envelope>