商旅火车票交易流水接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenApiZzdSearchRq | 可选 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResultSupport | result | 出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripOpenSupplychainTrainTradeRequest req = new AlitripBtripOpenSupplychainTrainTradeRequest(); AlitripBtripOpenSupplychainTrainTradeRequest.OpenApiZzdSearchRq obj1 = new AlitripBtripOpenSupplychainTrainTradeRequest.OpenApiZzdSearchRq(); obj1.setThirdpartCorpId("asdfg"); obj1.setOrderId(23456L); obj1.setEndDate("2021-04-01 00:00:00"); obj1.setPageSize(100L); obj1.setUserId("asdfg"); obj1.setApplyId(12345L); obj1.setPage(1L); obj1.setTradeId("dfghjk"); obj1.setStartDate("2021-04-01 00:00:00"); req.setRq(obj1); AlitripBtripOpenSupplychainTrainTradeResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_open_supplychain_train_trade_response> <result> <success>true</success> <trade_list> <open_api_zzd_train_order_rs> <service_fee>100</service_fee> <refund_service_fee>100</refund_service_fee> <refund_fee>100</refund_fee> <personal_amount>100</personal_amount> <corp_amount>100</corp_amount> <amount>10000</amount> <settle_type>1</settle_type> <pay_type>1</pay_type> <gmt_modified>2021-04-01 00:00:00</gmt_modified> <gmt_create>2021-04-01 00:00:00</gmt_create> <status>1</status> <apply_title>审批单名称</apply_title> <third_part_apply_id>ssfsdfs</third_part_apply_id> <apply_id>1234</apply_id> <depart_name>测试部门</depart_name> <user_nick>测试用户</user_nick> <user_id>dfghjk</user_id> <thirdpart_corp_id>dfghj</thirdpart_corp_id> <corp_id>dfghjk</corp_id> <order_id>3456789</order_id> <trade_action>1</trade_action> <trade_type>1</trade_type> <trade_id>123456dfgh</trade_id> <currency>CNY</currency> <settlement_batch_no>yyyy-MM-dd HH:mm:ss</settlement_batch_no> <travel_standard_amount>300</travel_standard_amount> <invoice_id>23456</invoice_id> <invoice_title>发票抬头</invoice_title> <project_code>dfghj</project_code> <project_title>测试项目</project_title> <thirdpart_itinerary_id>345678</thirdpart_itinerary_id> <itinerary_no>34567898</itinerary_no> <cost_center_list> <cost_center_do> <cost_center_id>123456</cost_center_id> <cost_center_title>测试成本</cost_center_title> <cost_center_number>dfghj</cost_center_number> <third_cost_center_id>dfghjhgf</third_cost_center_id> </cost_center_do> </cost_center_list> <client_info_dos> <client_info_do> <user_id>sdfghj</user_id> <user_name>测试用户</user_name> </client_info_do> </client_info_dos> <change_fee>1000</change_fee> <change_service_fee>100000</change_service_fee> <ticket_count>2</ticket_count> <passenger_count>2</passenger_count> <btrip_train_open_ticket_do_list> <btrip_train_open_ticket_do> <train_no>sadsfg</train_no> <is_changed>false</is_changed> <train_type>动车</train_type> <dep_time>2018-01-05 06:21:00</dep_time> <arr_time>2018-01-05 06:21:00</arr_time> <run_time>16分</run_time> <dep_city>杭州</dep_city> <arr_city>杭州</arr_city> <dep_station>杭州东</dep_station> <arr_station>杭州东</arr_station> <seat>一等座</seat> <ticket_price>1000</ticket_price> <service_fee>10000</service_fee> <passenger_name>测试乘客</passenger_name> <origin_ticket_price>1000</origin_ticket_price> </btrip_train_open_ticket_do> </btrip_train_open_ticket_do_list> <change_charge_fee>1000</change_charge_fee> <refund_charge_fee>1000</refund_charge_fee> <is_changed>true</is_changed> <is_refund>true</is_refund> </open_api_zzd_train_order_rs> </trade_list> <result_code>0</result_code> <result_msg>成功</result_msg> </result> </alitrip_btrip_open_supplychain_train_trade_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|