【商旅】机票行业搜索
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | FlightSearchRq | 可选 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | module | 出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripSupplychainFlightIndustrySearchRequest req = new AlitripBtripSupplychainFlightIndustrySearchRequest(); AlitripBtripSupplychainFlightIndustrySearchRequest.FlightSearchRq obj1 = new AlitripBtripSupplychainFlightIndustrySearchRequest.FlightSearchRq(); List<AlitripBtripSupplychainFlightIndustrySearchRequest.OdInfoRq> list3 = new ArrayList<AlitripBtripSupplychainFlightIndustrySearchRequest.OdInfoRq>(); AlitripBtripSupplychainFlightIndustrySearchRequest.OdInfoRq obj4 = new AlitripBtripSupplychainFlightIndustrySearchRequest.OdInfoRq(); list3.add(obj4); obj4.setArrAirportCode(""123","123""); obj4.setArrCityCode("123"); obj4.setDepAirportCode(""123","123""); obj4.setDepCityCode("123"); obj4.setDepDate(StringUtils.parseDateTime("2021-05-19 00:00:00")); obj4.setEarliestDepTime(StringUtils.parseDateTime("2021-05-19 00:00:00")); obj4.setLatestDepTime(StringUtils.parseDateTime("2021-05-19 00:00:00")); obj1.setOdInfoList(list3); List<AlitripBtripSupplychainFlightIndustrySearchRequest.PassengerQuantityRq> list6 = new ArrayList<AlitripBtripSupplychainFlightIndustrySearchRequest.PassengerQuantityRq>(); AlitripBtripSupplychainFlightIndustrySearchRequest.PassengerQuantityRq obj7 = new AlitripBtripSupplychainFlightIndustrySearchRequest.PassengerQuantityRq(); list6.add(obj7); obj7.setPassengerType("ADT"); obj7.setQuantity(1L); obj1.setPassengerQuantityList(list6); AlitripBtripSupplychainFlightIndustrySearchRequest.TripPreferenceRq obj8 = new AlitripBtripSupplychainFlightIndustrySearchRequest.TripPreferenceRq(); obj8.setCabinList(""123","123""); obj1.setTripPreference(obj8); obj1.setCorpId("123"); req.setRq(obj1); AlitripBtripSupplychainFlightIndustrySearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_supplychain_flight_industry_search_response> <result> <module> <item_list> <group_item_rs> <route_info> <journey_list> <journey_rs> <arr_city>123</arr_city> <arr_time>2021-05-19 00:00:00</arr_time> <dep_city>123</dep_city> <dep_time>2021-05-19 00:00:00</dep_time> <duration>90</duration> <segment_list> <flight_segment_rs> <arr_airport>123</arr_airport> <arr_city>123</arr_city> <arr_country>123</arr_country> <arr_date_int>20210519</arr_date_int> <arr_term>T2</arr_term> <arr_time>2021-05-19 00:00:00</arr_time> <dep_airport>123</dep_airport> <dep_city>123</dep_city> <dep_country>123</dep_country> <dep_date_int>20210519</dep_date_int> <dep_term>T2</dep_term> <dep_time>2021-05-19 00:00:00</dep_time> <duration>90</duration> <equip_type>737</equip_type> <id>CZ6724CSXKWE0331</id> <marketing_airline>CZ</marketing_airline> <marketing_flight_no>CZ6724</marketing_flight_no> <marketing_flight_no_int>6724</marketing_flight_no_int> <meal>0</meal> <miles>0</miles> <segment_show_info> <arr_airport_name>贵阳龙洞堡机场</arr_airport_name> <arr_airport_short_name>贵阳龙洞堡机场</arr_airport_short_name> <arr_city_name>贵阳</arr_city_name> <dep_airport_name>黄花机场</dep_airport_name> <dep_airport_short_name>黄花机场</dep_airport_short_name> <dep_city_name>长沙</dep_city_name> <equip_manufacturer>波音</equip_manufacturer> <equip_type_name>中型机</equip_type_name> <equip_type_show_text>737</equip_type_show_text> <meal_desc>无餐食</meal_desc> <stop_city_codes> <string>["123"</string> <string>"123"]</string> </stop_city_codes> <stop_city_names> <string>["123"</string> <string>"123"]</string> </stop_city_names> </segment_show_info> <seq_id>0</seq_id> <stop_city>0</stop_city> <stop_quantity>0</stop_quantity> <transfer_change_airport>false</transfer_change_airport> <transfer_time>0</transfer_time> </flight_segment_rs> </segment_list> <seq_id>0</seq_id> <transfer_change_airport>false</transfer_change_airport> <transfer_time>0</transfer_time> </journey_rs> </journey_list> </route_info> <shopping_items> <passenger_flight_shopping_item_rs> <passenger_type>ADT</passenger_type> <shopping_item> <search_price> <original_sell_price>0</original_sell_price> <sell_price>0</sell_price> <tax>0</tax> </search_price> <segment_cabin_prices> <segment_cabin_price_rs> <cabin> <cabin>E</cabin> <cabin_class>Y</cabin_class> <cabin_class_memo>123</cabin_class_memo> <cabin_class_name>经济舱</cabin_class_name> <quantity>1</quantity> <specification>123</specification> </cabin> <search_price> <original_sell_price>0</original_sell_price> <sell_price>0</sell_price> <tax>0</tax> </search_price> <segment> <journey_index>1</journey_index> <segment_index>1</segment_index> </segment> </segment_cabin_price_rs> </segment_cabin_prices> </shopping_item> </passenger_flight_shopping_item_rs> </shopping_items> </group_item_rs> </item_list> </module> <result_code>0</result_code> <result_msg>成功</result_msg> <is_success>true</is_success> </result> </alitrip_btrip_supplychain_flight_industry_search_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|