IssueEMD

IssueEMD

Issuing of an EMD for various ancillary services in the booking.

IssueEMD_2_2

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

Request Format

  • BookID - ID of the booking for which you want to issue an EMD. Data type - long.
  • AncillaryServices - list of ancillary services for ticketing. Data type - AncillaryService array.
  • AncillaryServices.AncillaryService - element of references for work with the ancillary service. Data type - array.
  • AncillaryServices.AncillaryService.ServiceRef - ID of ancillary service in the booking for which it is needed to issue an EMD. Data type - int.
  • AncillaryServices.AncillaryService.SegmentRef - array of multi-links to the segments for which you want to issue an EMD. Data type - int array.
  • AncillaryServices.AncillaryService.SegmentRef.MRef - element of the array of multi-links to segments. Data type - int.
  • AncillaryServices.AncillaryService.FOPInfo - form of payment to be used during the issuing of an EMD (Optional). Data type - same as FOPInfo from DataItem.
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:IssueEMD_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>1005307</avia:BookID>
               <avia:ServiceRefs>
                  <stl:Ref>1</stl:Ref>
               </avia:ServiceRefs>
            </stl:RequestBody>
         </avia:Request>
      </avia:IssueEMD_2_2>
   </soapenv:Body>
</soapenv:Envelope>

Response format

Book 2.0

Sample
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <IssueEMDResponse xmlns="http://ws-ibe.com/Avia">
      <IssueEMDResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>100051983</a:RequestID>
        <a:ResponseBody>
          <a:ID>1005307</a:ID>
          <a:OwnerID>30328</a:OwnerID>
          <a:DateInfo>
            <a:Created>2017-08-31 11:47:33  03:00</a:Created>
            <a:LastUpdate>2017-09-06 13:23:16  03:00</a:LastUpdate>
            <a:Ticketed>2017-08-31 13:42:30  03:00</a:Ticketed>
          </a:DateInfo>
          <a:PossibleActions>
            <a:Action>Get</a:Action>
            <a:Action>Update</a:Action>
            <a:Action>GetHistory</a:Action>
            <a:Action>Modify</a:Action>
            <a:Action>Void</a:Action>
            <a:Action>IssueEMD</a:Action>
            <a:Action>VoidEMD</a:Action>
            <a:Action>RefundEMD</a:Action>
            <a:Action>Refund</a:Action>
            <a:Action>Exchange</a:Action>
            <a:Action>ReleaseSeat</a:Action>
            <a:Action>GetPNRTerminalView</a:Action>
          </a:PossibleActions>
          <a:Travellers>
            <a:Traveller>
              <a:ID>1</a:ID>
              <a:IDInPNR>12</a:IDInPNR>
              <a:Type>ADT</a:Type>
              <a:Name>ALEX</a:Name>
              <a:LastName>BROWN</a:LastName>
              <a:DateOfBirth>14.05.2000</a:DateOfBirth>
              <a:Nationality>US</a:Nationality>
              <a:Gender>M</a:Gender>
            </a:Traveller>
          </a:Travellers>
          <a:Services>
            <a:Service i:type="a:FlightService">
              <a:ID>0</a:ID>
              <a:SupplierID>ABCDEF</a:SupplierID>
              <a:Status>Ticketed</a:Status>
              <a:SubStatus/>
              <a:Type>Regular</a:Type>
              <a:DirectionType>OW</a:DirectionType>
              <a:Segments>
                <a:FlightSegment>
                  <a:ID>0</a:ID>
                  <a:DepatureAirport>
                    <a:Code>BCN</a:Code>
                    <a:CityCode>BCN</a:CityCode>
                    <a:UTC>2</a:UTC>
                  </a:DepatureAirport>
                  <a:ArrivalAirport>
                    <a:Code>PAR</a:Code>
                    <a:UTC>2</a:UTC>
                  </a:ArrivalAirport>
                  <a:StopPoints/>
                  <a:DepatureDateTime>2017-11-10T15:00:00</a:DepatureDateTime>
                  <a:ArrivalDateTime>2017-11-10T18:00:00</a:ArrivalDateTime>
                  <a:FlightNumber>153</a:FlightNumber>
                  <a:AircraftType>735</a:AircraftType>
                  <a:OperatingAirline>AY</a:OperatingAirline>
                  <a:MarketingAirline>AY</a:MarketingAirline>
                  <a:ETicket>true</a:ETicket>
                  <a:BookingClassCode>K</a:BookingClassCode>
                  <a:Status>Confirmed</a:Status>
                  <a:StatusCode>HK</a:StatusCode>
                  <a:SupplierRef>ABCCDDEE/AY</a:SupplierRef>
                  <a:RequestedSegment>0</a:RequestedSegment>
                </a:FlightSegment>
              </a:Segments>
            </a:Service>
          </a:Services>
          <a:AncillaryServices>
            <a:Service i:type="a:FlightAncillaryService">
              <a:ID>1</a:ID>
              <a:Status>Ticketed</a:Status>
              <a:TravellerRef>
                <a:Ref>1</a:Ref>
              </a:TravellerRef>
              <a:SegmentRef>
                <a:MRef>0</a:MRef>
              </a:SegmentRef>
              <a:CompanyCode>AY</a:CompanyCode>
              <a:Name>PANCAKES</a:Name>
              <a:TypeCode>F</a:TypeCode>
              <a:RFIC>G</a:RFIC>
              <a:RFISC>BF1</a:RFISC>
            </a:Service>
          </a:AncillaryServices>
          <a:ProcessingServices>
            <a:Service>
              <a:ID>2</a:ID>
              <a:Type>Other</a:Type>
              <a:Status>Executed</a:Status>
              <a:FromSupplier>true</a:FromSupplier>
              <a:IncludedInMainServicePrice>true</a:IncludedInMainServicePrice>
              <a:RFIC>D</a:RFIC>
              <a:RFISC>98J</a:RFISC>
            </a:Service>
          </a:ProcessingServices>
          <a:Price>
            <a:TotalPrice>
              <a:Amount>62</a:Amount>
              <a:Currency>EUR</a:Currency>
            </a:TotalPrice>
            <a:ExpectedTicketCount>1</a:ExpectedTicketCount>
            <a:PriceBreakdown>
              <a:PricePart>
                <a:ServiceRef>
                  <a:Ref>0</a:Ref>
                </a:ServiceRef>
                <a:TotalPrice>
                  <a:Amount>47</a:Amount>
                  <a:Currency>EUR</a:Currency>
                </a:TotalPrice>
                <a:ValidatingCompany>AY</a:ValidatingCompany>
                <a:Refundable>Unknown</a:Refundable>
                <a:PassengerTypePriceBreakdown>
                  <a:PassengerTypePrice>
                    <a:TravellerRef>
                      <a:Ref>1</a:Ref>
                    </a:TravellerRef>
                    <a:PricingType>ADT</a:PricingType>
                    <a:BaseFare>
                      <a:Amount>17</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:BaseFare>
                    <a:EquiveFare>
                      <a:Amount>17</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:EquiveFare>
                    <a:TotalFare>
                      <a:Amount>47</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:TotalFare>
                    <a:Taxes>
                      <a:Tax>
                        <a:Amount>1</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>ZZ</a:TaxCode>
                        <a:Type>aircompany</a:Type>
                      </a:Tax>
                      <a:Tax>
                        <a:Amount>5</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>AG</a:TaxCode>
                        <a:Type>agency</a:Type>
                      </a:Tax>
                      <a:Tax>
                        <a:Amount>8</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>RI</a:TaxCode>
                        <a:Type>aircompany</a:Type>
                      </a:Tax>
                      <a:Tax>
                        <a:Amount>3</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>SA</a:TaxCode>
                        <a:Type>aircompany</a:Type>
                      </a:Tax>
                      <a:Tax>
                        <a:Amount>13</a:Amount>
                        <a:Currency>EUR</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>KLTOW</a:Code>
                        <a:Type>Public</a:Type>
                        <a:ClassOfService>Economy</a:ClassOfService>
                        <a:BookingClassCode>K</a:BookingClassCode>
                        <a:SegmentID>0</a:SegmentID>
                        <a:FareFamilyDescID>0</a:FareFamilyDescID>
                        <a:FareFamilyCode>Light</a:FareFamilyCode>
                      </a:Tariff>
                    </a:Tariffs>
                    <a:FareCalc>Text</a:FareCalc>
                  </a:PassengerTypePrice>
                </a:PassengerTypePriceBreakdown>
              </a:PricePart>
              <a:PricePart>
                <a:ServiceRef>
                  <a:Ref>1</a:Ref>
                </a:ServiceRef>
                <a:SegmentRef>
                  <a:Ref>0</a:Ref>
                </a:SegmentRef>
                <a:TotalPrice>
                  <a:Amount>10</a:Amount>
                  <a:Currency>EUR</a:Currency>
                </a:TotalPrice>
                <a:ValidatingCompany>AY</a:ValidatingCompany>
                <a:Refundable>Unknown</a:Refundable>
                <a:PassengerTypePriceBreakdown>
                  <a:PassengerTypePrice>
                    <a:TravellerRef>
                      <a:Ref>1</a:Ref>
                    </a:TravellerRef>
                    <a:PricingType>ADT</a:PricingType>
                    <a:TotalFare>
                      <a:Amount>10</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:TotalFare>
                  </a:PassengerTypePrice>
                </a:PassengerTypePriceBreakdown>
              </a:PricePart>
              <a:PricePart>
                <a:ServiceRef>
                  <a:Ref>2</a:Ref>
                </a:ServiceRef>
                <a:TotalPrice>
                  <a:Amount>5</a:Amount>
                  <a:Currency>EUR</a:Currency>
                </a:TotalPrice>
                <a:Refundable>Unknown</a:Refundable>
                <a:PassengerTypePriceBreakdown>
                  <a:PassengerTypePrice>
                    <a:TravellerRef>
                      <a:Ref>1</a:Ref>
                    </a:TravellerRef>
                    <a:TotalFare>
                      <a:Amount>5</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:TotalFare>
                  </a:PassengerTypePrice>
                </a:PassengerTypePriceBreakdown>
              </a:PricePart>
            </a:PriceBreakdown>
            <a:FareFamiliesDescriptions />
          </a:Price>
          <a:DataItems />
        </a:ResponseBody>
      </IssueEMDResult>
    </IssueEMDResponse>
  </s:Body>
</s:Envelope>