RefundTicket

RefundTicket_1_1

Refund tickets and EMDs, if they are present in the booking.

RefundTicket_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

Format Description
  • BookID - ID of the booking with passengers. Data type - 64-bit integer.
  • Passengers - passenger numbers in the booking, for which it is needed to receive the refund information. Data type - array.
  • Passengers.Ref - passenger number in the booking. Data type - 32-bit integer.
  • Involuntary - attribute of the involuntary refund (optional). Data type - bool.
  • Reason - an excuse for the refund. Data type - string.

Example

<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:RefundTicket_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>1000000</avia:BookID>
               <avia:Passengers>
                  <stl:Ref>1</stl:Ref>
               </avia:Passengers>
               <avia:Involuntary>false</avia:Involuntary>
               <avia:Reason>text</avia:Reason>
            </stl:RequestBody>
         </avia:Request>
      </avia:RefundTicket_2_2>
   </soapenv:Body>
</soapenv:Envelope>

Response

Format Description
  • TicketsRefundData - information on ticket refunds. Data type - array of RefundData elements.
  • EMDsRefundData - Information on EMD refunds. Data type - array of RefundData elements.
  • ActiveBook - booking after the ticket refund, is returned in case of partial refunding.
  • SplitedBook - booking with the refundable tickets, is returned in case of refunding only for a part of passengers.
  • SplitedPNRLocator - number of the PNR with the refunded tickets in the GDS, is returned in case of partial refunding. Data type - string.
  • RefundedTicket.RefundTaxes - container with tax information. Not all the providers give the detailed data. Data type - custom.
  • RefundedTicket.RefundTaxes.Tax - container with information on a particular tax. Data type - custom.
  • RefundedTicket.RefundTaxes.Tax.Amount - tax amount. Data type - fractional number.
  • RefundedTicket.RefundTaxes.Tax.Currency - currency code. Data type - string.
  • RefundedTicket.RefundTaxes.Tax.TaxCode - tax code. Data type - string.

Example

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <RefundTicket_2_2Response xmlns="http://ws-ibe.com/Avia">
      <RefundTicket_2_2Result xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>1000446144</a:RequestID>
        <a:ResponseBody xmlns:b="http://websky.travel/Avia">
          <b:TicketsRefundData>
            <a:RefundData>
              <a:EDNumber>6646640005689</a:EDNumber>
              <a:EDType>Ticket</a:EDType>
              <a:TravellerRef>1</a:TravellerRef>
              <a:Refundable>true</a:Refundable>
              <a:RefundMoney>
                <a:Amount>44</a:Amount>
                <a:Currency>EUR</a:Currency>
              </a:RefundMoney>
              <a:RefundBreakdown xmlns:c="http://websky.travel/STL">
                <c:RefundFares>
                  <a:Amount>100</a:Amount>
                  <a:Currency>EUR</a:Currency>
                </c:RefundFares>
                <c:RefundTaxes>
                  <a:Tax>
                    <a:Amount>-40</a:Amount>
                    <a:Currency>EUR</a:Currency>
                    <a:TaxCode>CP</a:TaxCode>
                  </a:Tax>
                  <a:Tax>
                    <a:Amount>-16</a:Amount>
                    <a:Currency>EUR</a:Currency>
                    <a:TaxCode>VP</a:TaxCode>
                  </a:Tax>
                </c:RefundTaxes>
              </a:RefundBreakdown>
            </a:RefundData>
          </b:TicketsRefundData>
          <b:EMDsRefundData>
            <a:RefundData>
              <a:EDNumber>6644450001384</a:EDNumber>
              <a:EDType>EMD</a:EDType>
              <a:TravellerRef>1</a:TravellerRef>
              <a:Refundable>true</a:Refundable>
              <a:RefundMoney>
                <a:Amount>17</a:Amount>
                <a:Currency>EUR</a:Currency>
              </a:RefundMoney>
            </a:RefundData>
            <a:RefundData>
              <a:EDNumber>6644450001385</a:EDNumber>
              <a:EDType>EMD</a:EDType>
              <a:TravellerRef>1</a:TravellerRef>
              <a:Refundable>true</a:Refundable>
              <a:RefundMoney>
                <a:Amount>17</a:Amount>
                <a:Currency>EUR</a:Currency>
              </a:RefundMoney>
            </a:RefundData>
          </b:EMDsRefundData>
        </a:ResponseBody>
      </RefundTicket_2_2Result>
    </RefundTicket_2_2Response>
  </s:Body>
</s:Envelope>