【商旅】机票订单查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenApiSearchRq | 必须 | 请求对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | result | 出参对象 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripSupplychainFlightSearchRequest req = new AlitripBtripSupplychainFlightSearchRequest(); AlitripBtripSupplychainFlightSearchRequest.OpenApiSearchRq obj1 = new AlitripBtripSupplychainFlightSearchRequest.OpenApiSearchRq(); obj1.setAllApply(true); obj1.setApplyId(12345L); obj1.setCorpId("corp1"); obj1.setDepartId("dept1"); obj1.setEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setPage(1L); obj1.setPageSize(10L); obj1.setStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setThirdpartApplyId("123"); obj1.setUpdateEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUpdateStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUserId("user1"); obj1.setVersion(2L); req.setRq(obj1); AlitripBtripSupplychainFlightSearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_supplychain_flight_search_response> <result> <module_list> <open_api_flight_order_rs> <id>1234</id> <gmt_modified>2017-05-01 00:00:00</gmt_modified> <user_id>user1</user_id> <corp_name>阿里巴巴</corp_name> <corp_id>corp1</corp_id> <gmt_create>2017-05-01 00:00:00</gmt_create> <user_name>张三</user_name> <depart_id>dept1</depart_id> <depart_name>淘宝</depart_name> <apply_id>12345</apply_id> <contact_name>张三</contact_name> <dep_city>北京</dep_city> <arr_city>上海</arr_city> <dep_date>2017-05-01 00:00:00</dep_date> <ret_date>2017-05-01 00:00:00</ret_date> <trip_type>0</trip_type> <passenger_count>1</passenger_count> <cabin_class>舱位类型</cabin_class> <status>1</status> <discount>30.12%</discount> <flight_no>A123456</flight_no> <passenger_name>张三,李四</passenger_name> <dep_airport>萧山机场</dep_airport> <arr_airport>白云机场</arr_airport> <invoice> <id>123</id> <title>阿里巴巴</title> </invoice> <cost_center> <id>1234</id> <corpid>corp1</corpid> <number>abc</number> <name>阿里巴巴</name> </cost_center> <price_info_list> <open_price_info> <price>100.0</price> <type>1</type> <category>机票费</category> <pay_type>1</pay_type> <gmt_create>2017-05-01 00:00:00</gmt_create> <passenger_name>张三,李四</passenger_name> <trade_id>12312312001</trade_id> <original_ticket_no>ABC-123451</original_ticket_no> <ticket_no>ABC-12138</ticket_no> <change_flight_no>mu1234</change_flight_no> <discount>12%</discount> <start_time>2021-08-11</start_time> <end_time>2021-08-11</end_time> <category_type>1</category_type> <category_code>1</category_code> </open_price_info> </price_info_list> <insure_info_list> <open_flight_insure_info> <insure_no>abcdefg</insure_no> <status>1</status> <name>张三</name> </open_flight_insure_info> </insure_info_list> <thirdpart_itinerary_id>abfefgg</thirdpart_itinerary_id> <user_affiliate_list> <open_user_affiliate_do> <user_id>123</user_id> <user_name>张三</user_name> </open_user_affiliate_do> </user_affiliate_list> <thirdpart_apply_id>123</thirdpart_apply_id> <btrip_title>出差</btrip_title> <project_id>1</project_id> <project_code>abc</project_code> <project_title>测试项目</project_title> <third_part_project_id>dd</third_part_project_id> </open_api_flight_order_rs> </module_list> <result_code>0</result_code> <result_msg>成本</result_msg> <is_success>true</is_success> <page_info> <page>1</page> <page_size>10</page_size> <total_number>100</total_number> </page_info> </result> </alitrip_btrip_supplychain_flight_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>
错误码 | 错误描述 | 解决方案 |
---|