改签航班列表V2
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_btrip_flight_modify_search_price_rq | BtripFlightModifySearchPriceRq | 可选 | 改签航班列表入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | 响应参数 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripFlightDistributionModifyNewflightsearchRequest req = new AlitripBtripFlightDistributionModifyNewflightsearchRequest(); AlitripBtripFlightDistributionModifyNewflightsearchRequest.BtripFlightModifySearchPriceRq obj1 = new AlitripBtripFlightDistributionModifyNewflightsearchRequest.BtripFlightModifySearchPriceRq(); obj1.setDepDate("2020-01-01"); obj1.setDisOrderId("xxxx000000"); obj1.setDepCity("BJS"); obj1.setArrCity("HSH"); obj1.setIsVoluntary(1L); obj1.setSubChannel("jianhang001"); obj1.setSupplierCode("1"); List<AlitripBtripFlightDistributionModifyNewflightsearchRequest.TravelerInfo> list3 = new ArrayList<AlitripBtripFlightDistributionModifyNewflightsearchRequest.TravelerInfo>(); AlitripBtripFlightDistributionModifyNewflightsearchRequest.TravelerInfo obj4 = new AlitripBtripFlightDistributionModifyNewflightsearchRequest.TravelerInfo(); list3.add(obj4); obj4.setName("张三"); obj4.setUserId("1928811231"); obj4.setDepCity("PEK"); obj4.setArrCity("HGH"); obj4.setType("\"ENUM_INVALID\""); obj1.setTravelerInfoList(list3); req.setParamBtripFlightModifySearchPriceRq(obj1); AlitripBtripFlightDistributionModifyNewflightsearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_flight_distribution_modify_newflightsearch_response> <result> <module> <flight_info_list> <flight_info_d_t_o> <flight_no>CA1509</flight_no> <is_share>true</is_share> <carrier_no>CA1509</carrier_no> <carrier_airline>ZH</carrier_airline> <lowest_cabin_num>N</lowest_cabin_num> <lowest_cabin_desc>经济舱</lowest_cabin_desc> <meal_desc>有餐食</meal_desc> <flight_size>中型机</flight_size> <lowest_cabin>Y</lowest_cabin> <lowest_cabin_class>A</lowest_cabin_class> <modify_flight_dep_date>2021-01-01</modify_flight_dep_date> <modify_flight_dep_time>2021-01-01 10:10:00</modify_flight_dep_time> <modify_flight_arr_time>2021-01-01 10:10:00</modify_flight_arr_time> <is_stop>true</is_stop> <stop_city>HGH</stop_city> <flight_type>320</flight_type> <session_id>demo</session_id> <airline_info> <airline_code>MU</airline_code> <airline_name>demo</airline_name> <airline_simple_name>demo</airline_simple_name> </airline_info> <dep_airport_info> <airport_code>PKX</airport_code> <airport_name>大兴国际机场</airport_name> <city_code>BJS</city_code> <city_name>北京</city_name> <terminal>--</terminal> </dep_airport_info> <arr_airport_info> <airport_code>PKX</airport_code> <airport_name>大兴国际机场</airport_name> <city_code>BJS</city_code> <city_name>北京</city_name> <terminal>--</terminal> </arr_airport_info> <lowest_cabin_price_list> <modify_price> <passenger_type>1</passenger_type> <upgrade_fee>21</upgrade_fee> <upgrade_price>79</upgrade_price> <ticket_price>100</ticket_price> </modify_price> </lowest_cabin_price_list> <cabin_list> <cabin_info> <cabin>F</cabin> <left_num>1</left_num> <cabin_desc>demo</cabin_desc> <child_cabin>F</child_cabin> <ota_itemid>demo</ota_itemid> <modify_price_list> <modify_price> <passenger_type>1</passenger_type> <upgrade_fee>21</upgrade_fee> <upgrade_price>79</upgrade_price> <ticket_price>100</ticket_price> </modify_price> </modify_price_list> <cabin_discount>80</cabin_discount> <cabin_class>F</cabin_class> </cabin_info> </cabin_list> </flight_info_d_t_o> </flight_info_list> </module> <result_code>0</result_code> <result_msg>demo</result_msg> <success>true</success> </result> </alitrip_btrip_flight_distribution_modify_newflightsearch_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|