接口已暂停维护,请对接新版接口:https://open.alibtrip.com/#/document/server/trainorderqueryv-2-check-details-of-train-ticket-orders?handbookId=development-support
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenApiSearchRq | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | result | 接口对外数据透出 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripSupplychainTrainSearchRequest req = new AlitripBtripSupplychainTrainSearchRequest(); AlitripBtripSupplychainTrainSearchRequest.OpenApiSearchRq obj1 = new AlitripBtripSupplychainTrainSearchRequest.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); AlitripBtripSupplychainTrainSearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_supplychain_train_search_response> <result> <module_list> <open_api_train_order_rs> <id>1234</id> <gmt_create>2017-05-01 00:00:00</gmt_create> <gmt_modified>2017-05-01 00:00:00</gmt_modified> <corp_id>corp1</corp_id> <corp_name>阿里巴巴</corp_name> <user_id>user1</user_id> <user_name>张三</user_name> <depart_id>dept1</depart_id> <depart_name>淘宝</depart_name> <apply_id>12345</apply_id> <contact_name>张三</contact_name> <dep_station>北京站</dep_station> <arr_station>北京站</arr_station> <dep_time>2017-05-01 00:00:00</dep_time> <arr_time>2017-05-01 00:00:00</arr_time> <train_number>1234</train_number> <train_type>高铁</train_type> <seat_type>坐席</seat_type> <run_time>运行时长</run_time> <ticket_no12306>12306票号</ticket_no12306> <dep_city>始发城市</dep_city> <arr_city>抵达城市</arr_city> <rider_name>乘车人</rider_name> <ticket_count>票数</ticket_count> <status>状态</status> <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>123123123001</trade_id> <original_train_no>K1243</original_train_no> <train_no>Z1521</train_no> <seat_type>软卧</seat_type> <start_city>北京</start_city> <end_city>上海</end_city> <start_time>2021-07-11</start_time> <end_time>2021-07-11</end_time> <category_type>1</category_type> <category_code>1</category_code> </open_price_info> </price_info_list> <cost_center> <id>1234</id> <corp_id>corp1</corp_id> <number>abcdef</number> <name>测试成本中心</name> </cost_center> <invoice> <id>123</id> <title>阿里巴巴</title> </invoice> <thirdpart_itinerary_id>abcdef</thirdpart_itinerary_id> <user_affiliate_list> <open_user_affiliate_d_o> <user_id>123</user_id> <user_name>张三</user_name> </open_user_affiliate_d_o> </user_affiliate_list> <thirdpart_apply_id>abcdef</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>1213</third_part_project_id> </open_api_train_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_train_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>
错误码 | 错误描述 | 解决方案 |
---|