UpdateBook

UpdateBook_2_0

Update of the flight booking information from Book version 2.0 as the response.

UpdateBook_2_2

The latest version of the request, differences are only in the response to the request in the additional services block from the Book_2_2 request.

Request

  • BookID - ID of the booking that you want to update. Data type - long.
  • CancelPayment - attribute of the need to cancel the old booking payment (optional). Data type - boolean.
  • PricingOptions - additional options for tariffing of the booking (optional). Data type - array.
  • PricingOptions.FOPsForAlternativePrices - FOPs for which you need to get an additional estimation of the booking. Data type - array.
  • PricingOptions.FOPsForAlternativePrices.Type - FOP, for which you need to get an additional estimation of the booking. Data type - string.
  • PricingOptions.NoReprice - turns off the re-pricing (actualization of the price) of the booking, supported for Galileo, Sabre, Amadeus, Travelport uAPI. Data type - bool.
  • FillEdDocContent - request electronic documents in PDF (optional). If the parameter in the query is not specified or set to true - itinerary receipt and EMD in PDF format are requested from the supplier, false - electronic documents are not requested from the supplier. Data type - bool.
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" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://websky-ibe.com/STL" xmlns:ns2="http://websky-ibe.com/Avia">
   <soapenv:Header/>
   <soapenv:Body>
      <avia:UpdateBook_2_2>
         <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>100000</avia:BookID>
            </stl:RequestBody>
         </avia:Request>
      </avia:UpdateBook_2_2>
   </soapenv:Body>
</soapenv:Envelope>

Response

2.0 version Booking.

Sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <UpdateBook_2_2Response xmlns="http://ws-ibe.com/Avia">
         <UpdateBook_2_2Result xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:RequestID>1300657853</a:RequestID>
            <a:ResponseBody xmlns:b="http://websky.travel/STL">
               <a:ID>1450628</a:ID>
               <b:OwnerID>36110</b:OwnerID>
               <b:DateInfo>
                  <a:Created>2024-12-10 12:30:00 +03:00</a:Created>
                  <a:LastUpdate>2024-12-10 12:30:28 +03:00</a:LastUpdate>
               </b:DateInfo>
               <b:PossibleActions>
                  <a:Action>Get</a:Action>
                  <a:Action>Update</a:Action>
                  <a:Action>GetHistory</a:Action>
                  <a:Action>GetEDData</a:Action>
                  <a:Action>Ticket</a:Action>
                  <a:Action>Split</a:Action>
                  <a:Action>Modify</a:Action>
                  <a:Action>Cancel</a:Action>
                  <a:Action>AdditionalOperations</a:Action>
                  <a:Action>GetPNRTerminalView</a:Action>
               </b:PossibleActions>
               <b:Travellers>
                  <a:Traveller>
                     <a:ID>1</a:ID>
                     <a:IDInPNR>12</a:IDInPNR>
                     <a:Type>ADT</a:Type>
                     <a:Name>SEBASTIAN</a:Name>
                     <a:LastName>VETTEL</a:LastName>
                     <a:DateOfBirth>20.06.1996</a:DateOfBirth>
                     <a:Nationality>DE</a:Nationality>
                     <a:Gender>M</a:Gender>
                  </a:Traveller>
               </b:Travellers>
               <b:Services>
                  <a:Service i:type="a:FlightService">
                     <a:ID>0</a:ID>
                     <a:SupplierID>ABCDFEF</a:SupplierID>
                     <a:Status>Booked</a:Status>
                     <a:Type>Regular</a:Type>
                     <a:DirectionType>OW</a:DirectionType>
                     <a:Segments>
                        <a:FlightSegment>
                           <a:ID>0</a:ID>
                           <a:IDInPNR>14</a:IDInPNR>
                           <a:DepatureAirport>
                              <a:Code>CDG</a:Code>
                              <a:SubPointCode>2F</a:SubPointCode>
                              <a:CityCode>PAR</a:CityCode>
                              <a:UTC>1</a:UTC>
                           </a:DepatureAirport>
                           <a:ArrivalAirport>
                              <a:Code>BCN</a:Code>
                              <a:SubPointCode>1</a:SubPointCode>
                              <a:CityCode>BCN</a:CityCode>
                              <a:UTC>1</a:UTC>
                           </a:ArrivalAirport>
                           <a:DepatureDateTime>2024-12-14T12:00:00</a:DepatureDateTime>
                           <a:ArrivalDateTime>2024-12-14T12:30:00</a:ArrivalDateTime>
                           <a:FlightTime>30</a:FlightTime>
                           <a:FlightNumber>603</a:FlightNumber>
                           <a:AircraftType>321</a:AircraftType>
                           <a:OperatingAirline>AY</a:OperatingAirline>
                           <a:MarketingAirline>AY</a:MarketingAirline>
                           <a:ETicket>true</a:ETicket>
                           <a:BookingClassCode>E</a:BookingClassCode>
                           <a:Status>Confirmed</a:Status>
                           <a:StatusCode>HK</a:StatusCode>
                           <a:RequestedSegment>0</a:RequestedSegment>
                           <a:OperatingFlightNumber>603</a:OperatingFlightNumber>
                           <a:CabinLayout>C12Y120</a:CabinLayout>
                        </a:FlightSegment>
                     </a:Segments>
                     <a:GroupOrder>false</a:GroupOrder>
                  </a:Service>
               </b:Services>
               <b:Price>
                  <a:TotalPrice>
                     <a:Amount>40.1</a:Amount>
                     <a:Currency>USD</a:Currency>
                  </a:TotalPrice>
                  <a:ExpectedTicketCount>1</a:ExpectedTicketCount>
                  <a:PriceBreakdown>
                     <a:PricePart>
                        <a:ServiceRef>
                           <a:Ref>0</a:Ref>
                        </a:ServiceRef>
                        <a:SegmentRef>
                           <a:Ref>0</a:Ref>
                        </a:SegmentRef>
                        <a:TotalPrice>
                           <a:Amount>40.1</a:Amount>
                           <a:Currency>USD</a:Currency>
                        </a:TotalPrice>
                        <a:ValidatingCompany>AY</a:ValidatingCompany>
                        <a:Refundable>Refundable</a:Refundable>
                        <a:PassengerTypePriceBreakdown>
                           <a:PassengerTypePrice>
                              <a:TravellerRef>
                                 <a:Ref>1</a:Ref>
                              </a:TravellerRef>
                              <a:PricingType>ADT</a:PricingType>
                              <a:BaseFare>
                                 <a:Amount>5</a:Amount>
                                 <a:Currency>USD</a:Currency>
                              </a:BaseFare>
                              <a:EquiveFare>
                                 <a:Amount>5</a:Amount>
                                 <a:Currency>USD</a:Currency>
                              </a:EquiveFare>
                              <a:TotalFare>
                                 <a:Amount>40.1</a:Amount>
                                 <a:Currency>USD</a:Currency>
                              </a:TotalFare>
                              <a:Taxes>
                                 <a:Tax>
                                    <a:Amount>35.1</a:Amount>
                                    <a:Currency>USD</a:Currency>
                                    <a:TaxCode>YQ</a:TaxCode>
                                    <a:Type>aircompany</a:Type>
                                 </a:Tax>
                              </a:Taxes>
                              <a:Tariffs>
                                 <a:Tariff i:type="a:AirTariff">
                                    <a:Code>ELTOW</a:Code>
                                    <a:Type>Public</a:Type>
                                    <a:ClassOfService>Economy</a:ClassOfService>
                                    <a:BookingClassCode>E</a:BookingClassCode>
                                    <a:SegmentID>0</a:SegmentID>
                                    <a:FreeBaggage>
                                       <a:Value>1</a:Value>
                                       <a:Measure>Pieces</a:Measure>
                                    </a:FreeBaggage>
                                    <a:FareFamilyDescID>1234</a:FareFamilyDescID>
                                    <a:FareFamilyCode>Code</a:FareFamilyCode>
                                    <a:Cabin>Economy</a:Cabin>
                                    <a:BaggageDetailsList>
                                       <Baggage>
                                          <a:Type>CheckedBaggage</a:Type>
                                          <a:Count>1</a:Count>
                                          <a:Weight i:nil="true"/>
                                          <a:WeightUnit i:nil="true"/>
                                          <a:Size i:nil="true"/>
                                       </Baggage>
                                    </a:BaggageDetailsList>
                                 </a:Tariff>
                              </a:Tariffs>
                           </a:PassengerTypePrice>
                        </a:PassengerTypePriceBreakdown>
                     </a:PricePart>
                  </a:PriceBreakdown>
                  <a:FareFamiliesDescriptions>
                     <a:Description>
                        <a:ID>1234</a:ID>
                        <a:Name>Code</a:Name>
                        <a:UniversalParameters>
                           <a:FareFamilyParameter>
                              <a:Code>baggage</a:Code>
                              <a:ShortDescription>
                                 <a:LangItem>
                                    <a:Code>EN</a:Code>
                                    <a:Value>Luggage - not included in the fare</a:Value>
                                 </a:LangItem>
                              </a:ShortDescription>
                              <a:FullDescription>
                                 <a:LangItem>
                                    <a:Code>EN</a:Code>
                                    <a:Value>Luggage is not included. You can buy extra baggage as an additional service.</a:Value>
                                 </a:LangItem>
                              </a:FullDescription>
                              <a:NeedToPay>NotAvailable</a:NeedToPay>
                              <a:Priority>2</a:Priority>
                           </a:FareFamilyParameter>
                        </a:UniversalParameters>
                     </a:Description>
                  </a:FareFamiliesDescriptions>
                  <a:SubsidiesInformation/>
               </b:Price>
               <b:DataItems>
                  <a:DataItem>
                     <a:ID>0</a:ID>
                     <a:Type>SourceInfo</a:Type>
                     <a:SourceInfo>
                        <a:ID>-100000</a:ID>
                        <a:BookingSupplierAgencyID>123412</a:BookingSupplierAgencyID>
                        <a:TicketingSupplierAgencyID>123412</a:TicketingSupplierAgencyID>
                        <a:Supplier>Sabre</a:Supplier>
                        <a:Environment>CERT</a:Environment>
                        <a:RequisitesTimeZoneId>UTC</a:RequisitesTimeZoneId>
                     </a:SourceInfo>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>1</a:ID>
                     <a:ServiceRef>
                        <a:Ref>0</a:Ref>
                     </a:ServiceRef>
                     <a:Type>TL</a:Type>
                     <a:TimeLimits>
                        <a:EffectiveTimeLimit>2024-12-11 23:59:00 +03:00</a:EffectiveTimeLimit>
                        <a:PriceTimeLimit>2024-12-11 23:59:00 +03:00</a:PriceTimeLimit>
                        <a:AgencyTimeLimit>2024-12-11 12:30:00 +03:00</a:AgencyTimeLimit>
                        <a:TicketingTimeLimit>2024-12-11 23:59:00 +03:00</a:TicketingTimeLimit>
                     </a:TimeLimits>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>2</a:ID>
                     <a:Type>ValidatingCompany</a:Type>
                     <a:ValidatingCompany>
                        <a:Code>AY</a:Code>
                     </a:ValidatingCompany>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>3</a:ID>
                     <a:TravellerRef>
                        <a:Ref>1</a:Ref>
                     </a:TravellerRef>
                     <a:ServiceRef>
                        <a:Ref>0</a:Ref>
                     </a:ServiceRef>
                     <a:Type>FOP</a:Type>
                     <a:PNRFOP>
                        <a:FOPs>
                           <a:FOP>
                              <a:Type>CA</a:Type>
                           </a:FOP>
                        </a:FOPs>
                     </a:PNRFOP>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>1438078859</a:ID>
                     <a:TravellerRef>
                        <a:Ref>1</a:Ref>
                     </a:TravellerRef>
                     <a:Type>IDDocument</a:Type>
                     <a:Document>
                        <a:Type>InternationalPassport</a:Type>
                        <a:Number>C8W83KAA1</a:Number>
                        <a:IssueCountryCode>DE</a:IssueCountryCode>
                        <a:ElapsedTime>11.07.2034</a:ElapsedTime>
                     </a:Document>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>5</a:ID>
                     <a:TravellerRef>
                        <a:Ref>1</a:Ref>
                     </a:TravellerRef>
                     <a:Type>ContactInfo</a:Type>
                     <a:ContactInfo>
                        <a:EmailID>[email protected]</a:EmailID>
                        <a:Telephone>
                           <a:Type>M</a:Type>
                           <a:PhoneNumber>4915903751111</a:PhoneNumber>
                        </a:Telephone>
                     </a:ContactInfo>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>6</a:ID>
                     <a:Type>ContactInfo</a:Type>
                     <a:ContactInfo>
                        <a:Telephone>
                           <a:Type>A</a:Type>
                           <a:PhoneNumber>4915903750000</a:PhoneNumber>
                        </a:Telephone>
                     </a:ContactInfo>
                  </a:DataItem>
                  <a:DataItem>
                     <a:ID>7</a:ID>
                     <a:Type>ContactInfo</a:Type>
                     <a:ContactInfo>
                        <a:Telephone>
                           <a:Type>A</a:Type>
                           <a:PhoneNumber>4915903757777</a:PhoneNumber>
                        </a:Telephone>
                     </a:ContactInfo>
                  </a:DataItem>
               </b:DataItems>
            </a:ResponseBody>
         </UpdateBook_2_2Result>
      </UpdateBook_2_2Response>
   </s:Body>
</s:Envelope>