GetCurrencyConversion

GetCurrencyConversion

Getting currency rates from GDS.

Request

  • Source - ID of the requisite package (source) under which you want to perform getting the currency rate. Data type - 32-bit integer. Currently supports Galileo, Sabre, SITA.
  • CurrencyCode - ISO Alpha3 currency code which rate is required to get. Data type - string.
  • FromCurrency - rate of which currency is requested. Data type - string.
  • Date - for which date it is required to get the currency rate. Data type - date in the dd.mm.yyyy format.
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:GetCurrencyConversion>
         <avia:Request>
            <stl:Requisites>
               <stl:AuthToken>token</stl:AuthToken>
            </stl:Requisites>
            <stl:UserID>11111</stl:UserID>
            <stl:RequestType>P</stl:RequestType>
            <stl:RequestBody>
               <avia:Source>-11111</avia:Source>
               <avia:CurrencyCode>USD</avia:CurrencyCode>
               <avia:FromCurrencyCode>EUR</avia:FromCurrencyCode>
            </stl:RequestBody>
         </avia:Request>
      </avia:GetCurrencyConversion>
   </soapenv:Body>
</soapenv:Envelope>

Response

  • Conversions - rates of the specified currency. Data type - array.
  • Conversions.Conversion - currency rate. Data type - array.
  • Conversions.Conversion.CurrencyCode - code of the currency which rate is indivated. Data type - ISO Alpha3 string.
  • Conversions.Conversion.Rate - rate of the indicated currency. Data type - 32-bit floating-point number.
  • FromCurrencyCode -rate of which currency is indicated. Data type - string.
  • Date - date from which the requested currency rate is valid. Data type - date and time in the yyyy-mm-ddThh:mm:ss format.
Sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <GetCurrencyConversionResponse xmlns="http://ws-ibe.com/Avia">
         <GetCurrencyConversionResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:RequestID>123</a:RequestID>
            <a:ResponseBody>
               <Conversions>
                  <Conversion>
                     <CurrencyCode>EUR</CurrencyCode>
                     <Rate>29.9137</Rate>
                  </Conversion>
               </Conversions>
            </a:ResponseBody>
         </GetCurrencyConversionResult>
      </GetCurrencyConversionResponse>
   </s:Body>
</s:Envelope>