文档中心 > API类目 > 国内机票京杭API

alitrip.flight.service.search (京杭搜索航班询价)

京杭搜素航班询价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
search_flight_info_req SearchFlightInfoReq 必须 请求入参
  • └ cabin_class
  • String
  • 可选
  • ALL_CABIN
  • 舱等作为条件搜索,ALL_CABIN:"不限",Y:"经济舱",FC:"头等舱和商务舱",F:"头等舱",C:"商务舱"
  • search_od_info_list
  • SearchOdInfo []
  • 必须
  • 出发到达城市,例如:直飞BJS-HGH;往返BJS-HGH,HGH-BJS
  • └ arr_city_code
  • String
  • 必须
  • XMN
  • 到达城市三字码
  • search_selected_flight_list
  • SearchSelectedFlight []
  • 可选
  • 指定航班询价,指定航班搜索报价
  • └ dep_airport_code
  • String
  • 可选
  • PKX
  • 指定航班询价,必填出发机场
  • └ cabin_code
  • String
  • 可选
  • R
  • 指定舱位询价,只有指定航班询价时可用
  • └ market_flight_no
  • String
  • 可选
  • CZ8957
  • 指定航班询价,必填市场航班号
  • └ arr_city_code
  • String
  • 可选
  • XMN
  • 指定航班询价,必填航班到达城市三字码
  • └ flight_time
  • String
  • 可选
  • 2022-03-30 08:45:00
  • 指定航班询价,必填起飞时间,字符串格式:yyyy-MM-dd HH:mm:ss
  • └ arr_airport_code
  • String
  • 可选
  • XMN
  • 指定航班询价,必填到达机场
  • └ dep_city_code
  • String
  • 可选
  • BJS
  • 指定航班询价,必填航班出发城市三字码
  • └ operator_flight_no
  • String
  • 可选
  • HU1234
  • 指定航班询价,共享航班必填实际承运航班号,非共享可不填
  • └ dep_date
  • String
  • 必须
  • 2022-03-30
  • 出发日期,字符串格式:yyyy-MM-dd
  • └ dep_city_code
  • String
  • 必须
  • BJS
  • 出发城市三字码
  • └ search_mode
  • Number
  • 必须
  • 2
  • 0:listing搜索 2:ota指定航班询价
  • └ external_agent_name
  • String
  • 必须
  • 请用自己的商家名称
  • 务必写对渠道名称,例如:天泰、飞耶等
  • └ only_shop_names
  • String []
  • 可选
  • 阿斯兰
  • 报价仅包括的店铺名称
  • └ reservation_code
  • String
  • 可选
  • 23432432423
  • 外部系统订单号;排查日志使用
  • └ trip_type
  • Number
  • 必须
  • 1
  • OW(1, "单程"), RT(2, "往返"),
  • └ ignored_shop_names
  • String []
  • 可选
  • 阿斯兰
  • 报价屏蔽的店铺名称
  • └ has_child
  • Boolean
  • 可选
  • true
  • 需要儿童报价
  • └ has_infant
  • Boolean
  • 可选
  • true
  • 需要婴儿报价

响应参数

名称 类型 示例值 描述
search_flight_info_res SearchFlightInfoRes 响应结果
  • flight_group_item_list
  • FlightGroupItem []
  • 返回多个报价;或者多个航班报价
  • └ refund_change_details
  • String
  • {\"changeDetails\":[{\"index\":0,\"refundSubItems\":[{\"isStruct\":true,\"ptc\":\"ADT\",\"refundSubContents\":[{\"feeDesc\":\"¥46/人\",\"feeRange\":\"3月3日 08:15 前\",\"style\":0},{\"feeDesc\":\"¥138/人\",\"feeRange\":\"3月8日 08:15 前\",\"style\":1},{\"feeDesc\":\"¥230/人\",\"feeRange\":\"3月10日 04:15 前\",\"style\":1},{\"feeDesc\":\"¥322/人\",\"feeRange\":\"3月10日 04:15 后\",\"style\":1}],\"title\":\"成人\"},{\"isStruct\":true,\"ptc\":\"CHD\",\"refundSubContents\":[{\"feeDesc\":\"¥46/人\",\"feeRange\":\"3月3日 08:15 前\",\"style\":0},{\"feeDesc\":\"¥138/人\",\"feeRange\":\"3月8日 08:15 前\",\"style\":1},{\"feeDesc\":\"¥230/人\",\"feeRange\":\"3月10日 04:15 前\",\"style\":1},{\"feeDesc\":\"¥322/人\",\"feeRange\":\"3月10日 04:15 后\",\"style\":1}],\"title\":\"儿童\"}],\"title\":\"同舱改期规则\",\"type\":1},{\"index\":0,\"refundSubItems\":[{\"content\":\"不可签转\",\"isStruct\":false}],\"title\":\"签转条件\",\"type\":2}],\"refundDetails\":[{\"extraContents\":[{\"content\":\"客票变更时,需同时收取票价价差和变更手续费。除另有规定外,客票有效期自旅客开始第一段旅行开始之日起,一年内运输有效;如果客票全部未使用,则从填开客票之日起,一年内运输有效。\",\"title\":\"特殊说明\"}],\"index\":0,\"refundSubItems\":[{\"isStruct\":true,\"ptc\":\"ADT\",\"refundSubContents\":[{\"feeDesc\":\"¥92/人\",\"feeRange\":\"3月3日 08:15 前\",\"style\":0},{\"feeDesc\":\"¥184/人\",\"feeRange\":\"3月8日 08:15 前\",\"style\":1},{\"feeDesc\":\"¥322/人\",\"feeRange\":\"3月10日 04:15 前\",\"style\":1},{\"feeDesc\":\"¥414/人\",\"feeRange\":\"3月10日 04:15 后\",\"style\":1}],\"title\":\"成人\"},{\"isStruct\":true,\"ptc\":\"CHD\",\"refundSubContents\":[{\"feeDesc\":\"¥92/人\",\"feeRange\":\"3月3日 08:15 前\",\"style\":0},{\"feeDesc\":\"¥184/人\",\"feeRange\":\"3月8日 08:15 前\",\"style\":1},{\"feeDesc\":\"¥322/人\",\"feeRange\":\"3月10日 04:15 前\",\"style\":1},{\"feeDesc\":\"¥414/人\",\"feeRange\":\"3月10日 04:15 后\",\"style\":1}],\"title\":\"儿童\"}],\"title\":\"退票收费规则\",\"type\":0}]}
  • 退改json表达同c端
  • passenger_price_list
  • FlightPassengerItem []
  • 乘机人类型价格信息
  • └ passenger_type
  • String
  • ADT
  • 乘客类型,成人:ADT 儿童:CHD 婴儿:INFANT
  • flight_segment_item_list
  • FlightSegmentItem []
  • 每个乘客类型航段舱位说明
  • └ cabin_class
  • String
  • Y
  • 舱位等级(Y:经济舱;S:超值经济舱;C:公务舱;F:头等舱)
  • └ cabin_quantity
  • String
  • A
  • 舱位剩余座位数:0~9:剩余0~9个座位;A:大于9个座位(个别航司大于4是A)
  • └ cabin
  • String
  • N
  • 舱位
  • └ flight_segment_id
  • String
  • CZ8957PKXXMN0310
  • 航段id,航班号+出发机场+达到机场+起飞日期(MMdd)
  • flight_price
  • FlightPrice
  • 每个乘客类型价格详细
  • └ ticket_price
  • Number
  • 460
  • 票面价
  • └ sell_price
  • Number
  • 460
  • 销售价
  • └ build_price
  • Number
  • 50
  • 国内基建费
  • └ cabin_discount
  • Number
  • 20
  • 舱位折扣100 * ticketPrice/basicCabinPrice 向上取整
  • └ oil_price
  • Number
  • 20
  • 国内燃油费
  • └ tax
  • Number
  • 70
  • 国内税=国内基建费+国内燃油费;国际是税费
  • passenger_restrict
  • PassengerRestrict
  • 乘客限制
  • age_range_list
  • PairNumRange []
  • 可多组年龄限制
  • └ max_num
  • Number
  • 99
  • 最大年龄,闭区间;为空是不限
  • └ min_num
  • Number
  • 12
  • 最小年龄,闭区间;为空是不限
  • └ regions
  • String
  • 11
  • 地区限制,空,表示无限制;有值:身份证号前缀;多个限售格式:11,22,33
  • person_num_range
  • PairNumRange
  • 小团票,人数限制,空表示无限制
  • └ max_num
  • Number
  • 5
  • 最大人数,闭区间;为空是不限
  • └ min_num
  • Number
  • 2
  • 最小人数,闭区间;为空是不限
  • member_restrict
  • MemberRestrict
  • 会员票,乘机人限制
  • └ member_type
  • Number
  • 0
  • 会员价类型,0: 乘机人会员 1:购买人会员
  • └ member_sub_type_list
  • String []
  • 会员价子类型集合,0:新会员可享 1:会员可享
  • └ item_id
  • String
  • 77153a888b024ebebd8d5bf8d0db20f7_0
  • 商品报价唯一标示;otaItemId;作为下单商品id使用
  • └ baggage_details
  • String
  • {\"baggageDetails\":[{\"baggageSubItems\":[{\"baggageSubContentVisualizes\":[{\"baggageDesc\":[\"每人可携带 1件 登机\",\"至多 5公斤/件\",\"尺寸不超过 20*40*55cm\"],\"baggageSubContentType\":0,\"description\":{\"desc\":\"您可以随身携带上飞机客舱内的行李物品,由旅客自行负责保管。具体尺寸、重量、类型等以各航空公司规定为准。\",\"title\":\"手提行李说明\"},\"subTitle\":\"免费手提行李\"},{\"baggageDesc\":[\"尺寸不超过 40*60*100cm\",\"至多 20公斤/人\"],\"baggageSubContentType\":1,\"description\":{\"desc\":\"您需要在登机前将行李在值机柜台办理托运,领取托运凭证,该行李在飞机货舱中随飞机到达目的地,抵达后您凭托运凭证在行李领取处领取。\",\"title\":\"托运行李说明\"},\"subTitle\":\"免费托运行李\"}],\"extraContentVisualizes\":[],\"isStruct\":true,\"ptc\":\"ADT\",\"title\":\"成人行李\"},{\"baggageSubContentVisualizes\":[{\"baggageDesc\":[\"每人可携带 1件 登机\",\"至多 5公斤/件\",\"尺寸不超过 20*40*55cm\"],\"baggageSubContentType\":0,\"description\":{\"desc\":\"您可以随身携带上飞机客舱内的行李物品,由旅客自行负责保管。具体尺寸、重量、类型等以各航空公司规定为准。\",\"title\":\"手提行李说明\"},\"subTitle\":\"儿童 免费手提行李\"},{\"baggageDesc\":[\"尺寸不超过 40*60*100cm\",\"至多 20公斤/人\"],\"baggageSubContentType\":1,\"description\":{\"desc\":\"您需要在登机前将行李在值机柜台办理托运,领取托运凭证,该行李在飞机货舱中随飞机到达目的地,抵达后您凭托运凭证在行李领取处领取。\",\"title\":\"托运行李说明\"},\"subTitle\":\"儿童 免费托运行李\"}],\"extraContentVisualizes\":[],\"isStruct\":true,\"ptc\":\"CHD\",\"title\":\"儿童/婴儿行李\"}],\"index\":0,\"tips\":{\"tipsDesc\":\"各个尺寸的行李箱有多大?\"},\"title\":\"行李规定\",\"type\":2}]}
  • 行李结构化表达json结构
  • flight_route
  • FlightRoute
  • 行程航班信息
  • └ trip_type
  • Number
  • 1
  • 行程类型,OW(1, "单程"), RT(2, "往返"),
  • flight_journey_list
  • FlightJourney []
  • 直飞只有一程;往返有2程
  • flight_segment_list
  • FlightSegment []
  • 一程里面直飞只有一段;一程里面中转有2段
  • └ marketing_airline
  • String
  • CZ
  • 市场航司
  • └ operating_flight_no
  • String
  • CZ8957
  • 承运航班号,无承运航班时为空
  • └ dep_term
  • String
  • T1
  • 出发航站楼,可能为空
  • └ marketing_flight_no
  • String
  • CZ8957
  • 市场方航班号
  • └ dep_time
  • String
  • 2022-03-30 08:45:00
  • 航班起飞日期时间,字符串格式yyyy-MM-dd HH:mm:ss
  • └ dep_airport
  • String
  • PKX
  • 航班到达日期时间,字符串格式yyyy-MM-dd HH:mm:ss
  • └ code_share
  • Boolean
  • true
  • 是否共享
  • └ equip_type
  • String
  • 321
  • 机型
  • └ arr_airport
  • String
  • XMN
  • 到达机场
  • └ id
  • String
  • CZ8957PKXXMN0310
  • 航段唯一标示航班号+出发机场+达到机场+起飞日期(MMdd)
  • └ arr_time
  • String
  • 2022-03-30 11:35:00
  • 到达时间
  • └ arr_term
  • String
  • T3
  • 到达航站楼,,可能为空
  • └ operating_airline
  • String
  • CZ
  • 承运航司
  • └ product_type_desc
  • String
  • 普通产品
  • 产品类型描述,普通价格,旗舰店,小团,年龄票,地区票
  • └ invoice_type
  • Number
  • 5
  • 行程单类型,1:提供(等额行程单)2:不提供 5:提供(等额行程单+发票)6: 提供(等额发票)
  • └ is_success
  • String
  • true
  • 没有报价或者系统异常或者入参校验不通过,都是false
  • └ error_code_info
  • String
  • INPUT_PARAM_ERROR
  • 错误码
  • └ error_msg
  • String
  • 入参错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFlightServiceSearchRequest req = new AlitripFlightServiceSearchRequest();
AlitripFlightServiceSearchRequest.SearchFlightInfoReq obj1 = new AlitripFlightServiceSearchRequest.SearchFlightInfoReq();
obj1.setCabinClass("ALL_CABIN");
List<AlitripFlightServiceSearchRequest.SearchOdInfo> list3 = new ArrayList<AlitripFlightServiceSearchRequest.SearchOdInfo>();
AlitripFlightServiceSearchRequest.SearchOdInfo obj4 = new AlitripFlightServiceSearchRequest.SearchOdInfo();
list3.add(obj4);
obj4.setArrCityCode("XMN");
List<AlitripFlightServiceSearchRequest.SearchSelectedFlight> list7 = new ArrayList<AlitripFlightServiceSearchRequest.SearchSelectedFlight>();
AlitripFlightServiceSearchRequest.SearchSelectedFlight obj8 = new AlitripFlightServiceSearchRequest.SearchSelectedFlight();
list7.add(obj8);
obj8.setDepAirportCode("PKX");
obj8.setCabinCode("R");
obj8.setMarketFlightNo("CZ8957");
obj8.setArrCityCode("XMN");
obj8.setFlightTime("2022-03-30 08:45:00");
obj8.setArrAirportCode("XMN");
obj8.setDepCityCode("BJS");
obj8.setOperatorFlightNo("HU1234");
list5.setSearchSelectedFlightList(list7);
obj4.setDepDate("2022-03-30");
obj4.setDepCityCode("BJS");
obj1.setSearchOdInfoList(list3);
obj1.setSearchMode(2L);
obj1.setExternalAgentName("请用自己的商家名称");
obj1.setOnlyShopNames("阿斯兰");
obj1.setReservationCode("23432432423");
obj1.setTripType(1L);
obj1.setIgnoredShopNames("阿斯兰");
obj1.setHasChild(true);
obj1.setHasInfant(true);
req.setSearchFlightInfoReq(obj1);
AlitripFlightServiceSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_flight_service_search_response>
    <search_flight_info_res>
        <flight_group_item_list>
            <flight_group_item>
                <refund_change_details>{\&quot;changeDetails\&quot;:[{\&quot;index\&quot;:0,\&quot;refundSubItems\&quot;:[{\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;ADT\&quot;,\&quot;refundSubContents\&quot;:[{\&quot;feeDesc\&quot;:\&quot;¥46/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月3日 08:15 前\&quot;,\&quot;style\&quot;:0},{\&quot;feeDesc\&quot;:\&quot;¥138/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月8日 08:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥230/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥322/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 后\&quot;,\&quot;style\&quot;:1}],\&quot;title\&quot;:\&quot;成人\&quot;},{\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;CHD\&quot;,\&quot;refundSubContents\&quot;:[{\&quot;feeDesc\&quot;:\&quot;¥46/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月3日 08:15 前\&quot;,\&quot;style\&quot;:0},{\&quot;feeDesc\&quot;:\&quot;¥138/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月8日 08:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥230/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥322/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 后\&quot;,\&quot;style\&quot;:1}],\&quot;title\&quot;:\&quot;儿童\&quot;}],\&quot;title\&quot;:\&quot;同舱改期规则\&quot;,\&quot;type\&quot;:1},{\&quot;index\&quot;:0,\&quot;refundSubItems\&quot;:[{\&quot;content\&quot;:\&quot;不可签转\&quot;,\&quot;isStruct\&quot;:false}],\&quot;title\&quot;:\&quot;签转条件\&quot;,\&quot;type\&quot;:2}],\&quot;refundDetails\&quot;:[{\&quot;extraContents\&quot;:[{\&quot;content\&quot;:\&quot;客票变更时,需同时收取票价价差和变更手续费。除另有规定外,客票有效期自旅客开始第一段旅行开始之日起,一年内运输有效;如果客票全部未使用,则从填开客票之日起,一年内运输有效。\&quot;,\&quot;title\&quot;:\&quot;特殊说明\&quot;}],\&quot;index\&quot;:0,\&quot;refundSubItems\&quot;:[{\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;ADT\&quot;,\&quot;refundSubContents\&quot;:[{\&quot;feeDesc\&quot;:\&quot;¥92/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月3日 08:15 前\&quot;,\&quot;style\&quot;:0},{\&quot;feeDesc\&quot;:\&quot;¥184/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月8日 08:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥322/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥414/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 后\&quot;,\&quot;style\&quot;:1}],\&quot;title\&quot;:\&quot;成人\&quot;},{\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;CHD\&quot;,\&quot;refundSubContents\&quot;:[{\&quot;feeDesc\&quot;:\&quot;¥92/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月3日 08:15 前\&quot;,\&quot;style\&quot;:0},{\&quot;feeDesc\&quot;:\&quot;¥184/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月8日 08:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥322/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 前\&quot;,\&quot;style\&quot;:1},{\&quot;feeDesc\&quot;:\&quot;¥414/人\&quot;,\&quot;feeRange\&quot;:\&quot;3月10日 04:15 后\&quot;,\&quot;style\&quot;:1}],\&quot;title\&quot;:\&quot;儿童\&quot;}],\&quot;title\&quot;:\&quot;退票收费规则\&quot;,\&quot;type\&quot;:0}]}</refund_change_details>
                <passenger_price_list>
                    <flight_passenger_item>
                        <passenger_type>ADT</passenger_type>
                        <flight_segment_item_list>
                            <flight_segment_item>
                                <cabin_class>Y</cabin_class>
                                <cabin_quantity>A</cabin_quantity>
                                <cabin>N</cabin>
                                <flight_segment_id>CZ8957PKXXMN0310</flight_segment_id>
                            </flight_segment_item>
                        </flight_segment_item_list>
                        <flight_price>
                            <ticket_price>460</ticket_price>
                            <sell_price>460</sell_price>
                            <build_price>50</build_price>
                            <cabin_discount>20</cabin_discount>
                            <oil_price>20</oil_price>
                            <tax>70</tax>
                        </flight_price>
                    </flight_passenger_item>
                </passenger_price_list>
                <passenger_restrict>
                    <age_range_list>
                        <pair_num_range>
                            <max_num>99</max_num>
                            <min_num>12</min_num>
                        </pair_num_range>
                    </age_range_list>
                    <regions>11</regions>
                    <person_num_range>
                        <max_num>5</max_num>
                        <min_num>2</min_num>
                    </person_num_range>
                    <member_restrict>
                        <member_type>0</member_type>
                    </member_restrict>
                </passenger_restrict>
                <item_id>77153a888b024ebebd8d5bf8d0db20f7_0</item_id>
                <baggage_details>{\&quot;baggageDetails\&quot;:[{\&quot;baggageSubItems\&quot;:[{\&quot;baggageSubContentVisualizes\&quot;:[{\&quot;baggageDesc\&quot;:[\&quot;每人可携带 1件 登机\&quot;,\&quot;至多 5公斤/件\&quot;,\&quot;尺寸不超过 20*40*55cm\&quot;],\&quot;baggageSubContentType\&quot;:0,\&quot;description\&quot;:{\&quot;desc\&quot;:\&quot;您可以随身携带上飞机客舱内的行李物品,由旅客自行负责保管。具体尺寸、重量、类型等以各航空公司规定为准。\&quot;,\&quot;title\&quot;:\&quot;手提行李说明\&quot;},\&quot;subTitle\&quot;:\&quot;免费手提行李\&quot;},{\&quot;baggageDesc\&quot;:[\&quot;尺寸不超过 40*60*100cm\&quot;,\&quot;至多 20公斤/人\&quot;],\&quot;baggageSubContentType\&quot;:1,\&quot;description\&quot;:{\&quot;desc\&quot;:\&quot;您需要在登机前将行李在值机柜台办理托运,领取托运凭证,该行李在飞机货舱中随飞机到达目的地,抵达后您凭托运凭证在行李领取处领取。\&quot;,\&quot;title\&quot;:\&quot;托运行李说明\&quot;},\&quot;subTitle\&quot;:\&quot;免费托运行李\&quot;}],\&quot;extraContentVisualizes\&quot;:[],\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;ADT\&quot;,\&quot;title\&quot;:\&quot;成人行李\&quot;},{\&quot;baggageSubContentVisualizes\&quot;:[{\&quot;baggageDesc\&quot;:[\&quot;每人可携带 1件 登机\&quot;,\&quot;至多 5公斤/件\&quot;,\&quot;尺寸不超过 20*40*55cm\&quot;],\&quot;baggageSubContentType\&quot;:0,\&quot;description\&quot;:{\&quot;desc\&quot;:\&quot;您可以随身携带上飞机客舱内的行李物品,由旅客自行负责保管。具体尺寸、重量、类型等以各航空公司规定为准。\&quot;,\&quot;title\&quot;:\&quot;手提行李说明\&quot;},\&quot;subTitle\&quot;:\&quot;儿童 免费手提行李\&quot;},{\&quot;baggageDesc\&quot;:[\&quot;尺寸不超过 40*60*100cm\&quot;,\&quot;至多 20公斤/人\&quot;],\&quot;baggageSubContentType\&quot;:1,\&quot;description\&quot;:{\&quot;desc\&quot;:\&quot;您需要在登机前将行李在值机柜台办理托运,领取托运凭证,该行李在飞机货舱中随飞机到达目的地,抵达后您凭托运凭证在行李领取处领取。\&quot;,\&quot;title\&quot;:\&quot;托运行李说明\&quot;},\&quot;subTitle\&quot;:\&quot;儿童 免费托运行李\&quot;}],\&quot;extraContentVisualizes\&quot;:[],\&quot;isStruct\&quot;:true,\&quot;ptc\&quot;:\&quot;CHD\&quot;,\&quot;title\&quot;:\&quot;儿童/婴儿行李\&quot;}],\&quot;index\&quot;:0,\&quot;tips\&quot;:{\&quot;tipsDesc\&quot;:\&quot;各个尺寸的行李箱有多大?\&quot;},\&quot;title\&quot;:\&quot;行李规定\&quot;,\&quot;type\&quot;:2}]}</baggage_details>
                <flight_route>
                    <trip_type>1</trip_type>
                    <flight_journey_list>
                        <flight_journey>
                            <flight_segment_list>
                                <flight_segment>
                                    <marketing_airline>CZ</marketing_airline>
                                    <operating_flight_no>CZ8957</operating_flight_no>
                                    <dep_term>T1</dep_term>
                                    <marketing_flight_no>CZ8957</marketing_flight_no>
                                    <dep_time>2022-03-30 08:45:00</dep_time>
                                    <dep_airport>PKX</dep_airport>
                                    <code_share>true</code_share>
                                    <equip_type>321</equip_type>
                                    <arr_airport>XMN</arr_airport>
                                    <id>CZ8957PKXXMN0310</id>
                                    <arr_time>2022-03-30 11:35:00</arr_time>
                                    <arr_term>T3</arr_term>
                                    <operating_airline>CZ</operating_airline>
                                </flight_segment>
                            </flight_segment_list>
                        </flight_journey>
                    </flight_journey_list>
                </flight_route>
                <product_type_desc>普通产品</product_type_desc>
                <invoice_type>5</invoice_type>
            </flight_group_item>
        </flight_group_item_list>
        <is_success>true</is_success>
        <error_code_info>INPUT_PARAM_ERROR</error_code_info>
        <error_msg>入参错误</error_msg>
    </search_flight_info_res>
</alitrip_flight_service_search_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部