查询演示 开发文档

接口地址:http://webservice.lvyehudong.com/FlightService.lymx

参数名称:strvalue

查询参数:AV{$}授权编号{$}授权密码{$}验证字符串{$}出发城市{$}到达城市{$}出发日期{$}航空公司{$}航班类型

验证地址:http://webservice.lvyehudong.com/warrant.lymx

参数名称:strV

验证参数:出发城市@到达城市@出发日期@航空公司@航班类型@授权编号

出发城市: 城市三字码 ;例如:SHA
到达城市: 城市三字码 ;例如:PEK
出发日期: 例如:2008-01-01
航空公司: 航空公司二字代码:例如:CA,中国国际航空公司
航班类型: 0:国内,1:国际
授权编号: 我们分配的账号
授权密码 我们分配的密码
验证字符串 通过验证地址获取到的验证码

例如:http://webservice.lvyehudong.com/FlightService.lymx?strvalue=AV{$}108210{$}X9FQ597566{$}733be6b0ff5af175c6715180214745d9{$}SHA{$}PEK{$}2008-01-01{$}CA{$}0

返回结果:

<?xml version="1.0" encoding="UTF-8" ?>
  <OTResponse>
  <AirId>108210</AirId>
  <TransactionName>FlightsSearch</TransactionName>
  <ErrorInfo>
    <Code>20000</Code>
    <Description>查询成功</Description>
  </ErrorInfo>
  <Data>
  <FlightInfo>
  <FlightList>
   <!--航班循环开始-->
   <PropertyLineItem>
    <StrDate>2008-01-01</StrDate> <!--出发日期-->
    <StrCode>SHA</StrCode> <!--出发地三字码-->
    <EndCode>PEK</EndCode> <!--目的地三字码-->
    <StrCity>上海虹桥</StrCity> <!--出发地-->
    <EndCity>北京</EndCity> <!--目的地-->
    <AirNo>FM9103</AirNo> <!--航班号码-->
    <AirName>中国上海航空公司</AirName> <!--航空公司代码-->
   <AirName_B>上航</AirName_B> <!--航空公司代码-->
    <Models>767</Models> <!--飞机型号-->
    <StrTime>11:15</StrTime> <!--出发时间-->
    <EndTime>13:25</EndTime> <!--到达时间-->
    <Stopover>0</Stopover> <!--经停次数-->
    <Catering>1</Catering> <!--餐食 1:有餐;0:无餐-->
    <Interim>0</Interim> <!--转机 1:需转机;0:不需转机-->
    <E_Ticketing>E</E_Ticketing> <!--电子客票 1:支持电子票 0:不支持-->
    <BerthList>
      <BerthRateDetail>
       <BerthCode>F</BerthCode> <!--舱位代码-->
       <BerthRebate>头等舱</BerthRebate> <!--舱位类型-->
       <BerthPrice>1700</BerthPrice> <!--价格-->
       <SeatNum>5张</SeatNum> <!--票数-->
      </BerthRateDetail>
      <BerthRateDetail>
       <BerthCode>Y</BerthCode>
       <BerthRebate>经济舱</BerthRebate>
       <BerthPrice>1130</BerthPrice>
       <SeatNum>8张</SeatNum>
      </BerthRateDetail>
         .
         .
         .
    </BerthList>
    <CheapBerth>经济舱</CheapBerth> <!--最低价舱位-->
    <CheapBerthCode>Y</CheapBerthCode> <!--最低价舱位-->
    <CheapPrice>1130</CheapPrice> <!--最低价价格-->
    <OriginalPrice>1130</OriginalPrice> <!--全价-->
    <Mileage>1178</Mileage> <!--航程:公里数-->
    <RYPrice>0</RYPrice> <!--燃油费-->
    <JJPrice>50</CheapPrice> <!--机场建设费-->
   </PropertyLineItem>
   <!--航班循环结束-->
     .
     .
     .
  </FlightList>
 </FlightInfo>
 </Data>
</OTResponse>