GetEDData

GetEDData

Getting the electronic document mask from the GDS.

Request

Format description
  • BookID - ID of the booking for which you want to perform an operation. Data type - 64-bit integer.
  • AllED - getting the masks of all the active electronic documents. Data type - bool. If the value of the element is True, all the active electronic document masks are requested, if the value if False, the following elements are used:
    • EDNumbers - list of electronic document numbers.
    • EDNumbers.Number - electronic document number. Data type - string.
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:avia1="http://websky.travel/Avia" xmlns:stl1="http://websky.travel/STL">
   <soapenv:Header/>
   <soapenv:Body>
      <avia:GetEDData>
         <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>10000000</avia:BookID>
               <avia1:AllED>true</avia1:AllED>
            </stl:RequestBody>
         </avia:Request>
      </avia:GetEDData>
   </soapenv:Body>
</soapenv:Envelope>

Response

Format description
  • Number - electronic document number. Data type - string.
  • ExchangedTicketNumber - number of the old ticket by which the exchange was preformed. Data type - string.
  • ServiceType - type of the service provided by this electronic document. Data type - enumeration, possible values:
    • Flight;
    • Ancillary;
    • Penalty;
    • FinancialImpact;
    • ResidualValue.
  • IssueDateTime - date and time of electronic document's issue.
  • Traveller - passenger data to which the electronic document corresponds. Data type - Traveller.
  • Service - contains the description of the service to which the electronic document applies. Data type - custom.
  • Service.ProcessService - contains the description of a processing service. Data type - ProcessingService.
  • Service.FlightService - contains the description of a flight service. Data type - Flight.
  • Service.AncillaryService - contains the description of the ancillary services on the flight. Data type - FlightAncillaryService.
  • Price - contains the complete information on the price of a service and its’ formation. Data type - Price
  • DataItems - data block for storing different content of the mask. Data type - DataItem. In the air ticket mask, this block contains the information about the passenger’s identity document and contact data. In the ancillary service EMD mask, the block contains information about the booked seats. In the processing service EMD mask, the block contains additional information on the EMD.
  • VATBreakdown - structure of VAT for the service of this ED. Data type - complex.
  • VATBreakdown.Tariff - container with information about VAT from the tariff. Data type - complex.
  • VATBreakdown.Tariff.Amount - аmount. Data type — decimal.
  • VATBreakdown.Tariff.Currency - ISO Alpha3 currency code. Data type — string.
  • VATBreakdown.Tariff.Percent - VAT rate in percent. Data type - double.
  • VATBreakdown.Taxes - VAT from the tax total amount. Data type - complex.
  • VATBreakdown.Taxes.Amount - аmount. Data type - decimal.
  • VATBreakdown.Taxes.Currency - ISO Alpha3 currency code. Data type — string.
  • VATBreakdown.Taxes.Breakdown - container with information about VAT from taxes. Data type - complex.
  • VATBreakdown.Taxes.Breakdown.Tax - container with information about VAT from a particular tax. Data type - complex.
  • VATBreakdown.Taxes.Breakdown.Tax.Amount - amount. Data type — decimal.
  • VATBreakdown.Taxes.Breakdown.Tax.Currency - ISO Alpha3 currency code. Data type — string.
  • VATBreakdown.Taxes.Breakdown.Tax.Percent - VAT rate in percent. Data type - double.
  • VATBreakdown.Taxes.Breakdown.Tax.Code - tax code. Data type — string.
  • VATBreakdown.Total - VAT from the tax and fare total amount. Data type - Money.
  • IssuierSupplierID - ticketing requisite ID. Data type - string.
Sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <GetEDDataResponse xmlns="http://ws-ibe.com/Avia">
         <GetEDDataResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:RequestID>1300820855</a:RequestID>
            <a:ResponseBody xmlns:b="http://websky.travel/Avia">
               <b:Data xmlns:c="http://websky.travel/STL">
                  <c:EDMask>
                     <c:Number>00Z2400065961</c:Number>
                     <c:ServiceType>Flight</c:ServiceType>
                     <c:IssueDateTime>2024-12-11 16:47:00 +03:00</c:IssueDateTime>
                     <c: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>21.06.1996</a:DateOfBirth>
                        <a:Nationality>DE</a:Nationality>
                        <a:Gender>M</a:Gender>
                     </c:Traveller>
                     <c:Service>
                        <c:FlightService>
                           <a:ID>0</a:ID>
                           <a:SupplierID>AABBCCDD</a:SupplierID>
                           <a:Status>Ticketed</a:Status>
                           <a:Type>Regular</a:Type>
                           <a:DirectionType>OW</a:DirectionType>
                           <a:Segments>
                              <a:FlightSegment>
                                 <a:ID>0</a:ID>
                                 <a:IDInPNR>12</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-15 12:00:00 +01:00</a:DepatureDateTime>
                                 <a:ArrivalDateTime>2024-12-15 12:30:00 +01: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:SupplierRef>AABBCCDDEE/AY</a:SupplierRef>
                                 <a:RequestedSegment>0</a:RequestedSegment>
                                 <a:OperatingFlightNumber>603</a:OperatingFlightNumber>
                                 <a:CouponStatus>Open</a:CouponStatus>
                                 <a:CabinLayout>C12Y120</a:CabinLayout>
                              </a:FlightSegment>
                           </a:Segments>
                           <a:GroupOrder>false</a:GroupOrder>
                        </c:FlightService>
                     </c:Service>
                     <c:Price>
                        <a:TotalPrice>
                           <a:Amount>40.1</a:Amount>
                           <a:Currency>USD</a:Currency>
                        </a:TotalPrice>
                        <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:FareFamilyCode>Code</a:FareFamilyCode>
                                          <a:Cabin>Economy</a:Cabin>
                                       </a:Tariff>
                                    </a:Tariffs>
                                    <a:FareCalc>Text</a:FareCalc>
                                 </a:PassengerTypePrice>
                              </a:PassengerTypePriceBreakdown>
                           </a:PricePart>
                        </a:PriceBreakdown>
                     </c:Price>
                     <c:DataItems>
                        <a:BasePNRDataItem>
                           <a:ID>0</a:ID>
                           <a:Type>SourceInfo</a:Type>
                           <a:SourceInfo>
                              <a:ID>-100000000</a:ID>
                              <a:BookingSupplierAgencyID>TEST</a:BookingSupplierAgencyID>
                              <a:TicketingSupplierAgencyID>TEST</a:TicketingSupplierAgencyID>
                              <a:Supplier>Sabre</a:Supplier>
                              <a:Environment>CERT</a:Environment>
                              <a:RequisitesTimeZoneId>UTC</a:RequisitesTimeZoneId>
                           </a:SourceInfo>
                        </a:BasePNRDataItem>
                        <a:BasePNRDataItem>
                           <a:ID>3213043034</a:ID>
                           <a:TravellerRef>
                              <a:Ref>1</a:Ref>
                           </a:TravellerRef>
                           <a:ServiceRef>
                              <a:Ref>0</a:Ref>
                           </a:ServiceRef>
                           <a:Type>IDDocument</a:Type>
                           <a:Document>
                              <a:Type>NationalPassport</a:Type>
                              <a:Number>C8W83KAA1</a:Number>
                              <a:IssueCountryCode>DE</a:IssueCountryCode>
                              <a:ElapsedTime>12.07.2034</a:ElapsedTime>
                           </a:Document>
                        </a:BasePNRDataItem>
                        <a:BasePNRDataItem>
                           <a:ID>2</a:ID>
                           <a:TravellerRef>
                              <a:Ref>1</a:Ref>
                           </a:TravellerRef>
                           <a:ServiceRef>
                              <a:Ref>0</a:Ref>
                           </a:ServiceRef>
                           <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:BasePNRDataItem>
                        <a:BasePNRDataItem>
                           <a:ID>3</a:ID>
                           <a:TravellerRef>
                              <a:Ref>1</a:Ref>
                           </a:TravellerRef>
                           <a:ServiceRef>
                              <a:Ref>0</a:Ref>
                           </a:ServiceRef>
                           <a:SegmentRef>
                              <a:Ref>0</a:Ref>
                           </a:SegmentRef>
                           <a:Type>ED</a:Type>
                           <a:ElectronicDocument>
                              <a:Number>00Z2400065961</a:Number>
                              <a:Status>Active</a:Status>
                              <a:ServiceType>Flight</a:ServiceType>
                              <a:VAT>
                                 <a:Amount>0</a:Amount>
                                 <a:Currency>USD</a:Currency>
                              </a:VAT>
                              <a:VATBreakdown>
                                 <a:Tariff>
                                    <a:Amount>0</a:Amount>
                                    <a:Currency>USD</a:Currency>
                                    <a:Percent>0</a:Percent>
                                    <c:Breakdown i:nil="true"/>
                                 </a:Tariff>
                                 <a:Taxes>
                                    <a:Amount>0</a:Amount>
                                    <a:Currency>USD</a:Currency>
                                 </a:Taxes>
                                 <a:Total>
                                    <a:Amount>0</a:Amount>
                                    <a:Currency>USD</a:Currency>
                                 </a:Total>
                              </a:VATBreakdown>
                              <a:IssuedExternally>false</a:IssuedExternally>
                           </a:ElectronicDocument>
                        </a:BasePNRDataItem>
                     </c:DataItems>
                     <c:VAT>
                        <a:Amount>0</a:Amount>
                        <a:Currency>USD</a:Currency>
                     </c:VAT>
                     <c:VATBreakdown>
                        <a:Tariff>
                           <a:Amount>0</a:Amount>
                           <a:Currency>USD</a:Currency>
                           <a:Percent>0</a:Percent>
                           <c:Breakdown i:nil="true"/>
                        </a:Tariff>
                        <a:Taxes>
                           <a:Amount>0</a:Amount>
                           <a:Currency>USD</a:Currency>
                        </a:Taxes>
                        <a:Total>
                           <a:Amount>0</a:Amount>
                           <a:Currency>USD</a:Currency>
                        </a:Total>
                     </c:VATBreakdown>
                     <c:IssuierSupplierID>1802</c:IssuierSupplierID>
                     <c:AgencyIATACode>ZZ000001</c:AgencyIATACode>
                  </c:EDMask>
               </b:Data>
            </a:ResponseBody>
         </GetEDDataResult>
      </GetEDDataResponse>
   </s:Body>
</s:Envelope>