企业获取商旅用车订单数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenSearchRq | 必须 | 请求对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | BtriphomeResult | result | 返回结果 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripVehicleOrderSearchRequest req = new AlitripBtripVehicleOrderSearchRequest(); AlitripBtripVehicleOrderSearchRequest.OpenSearchRq obj1 = new AlitripBtripVehicleOrderSearchRequest.OpenSearchRq(); obj1.setStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setApplyId(123L); obj1.setPage(1L); obj1.setUserId("user_1"); obj1.setPageSize(10L); obj1.setDepartId("depart_1"); obj1.setEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setCorpId("corp_1"); obj1.setUpdateEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUpdateStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); req.setRq(obj1); AlitripBtripVehicleOrderSearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_vehicle_order_search_response> <result> <vehicle_order_list> <open_vehicle_order_rs> <price_info_list> <open_price_info> <pay_type>1</pay_type> <category>用车支付</category> <type>1</type> <price>100.0</price> <gmt_create>2017-05-01 00:00:00</gmt_create> <passenger_name>张三,李四</passenger_name> <trade_id>878989980001</trade_id> </open_price_info> </price_info_list> <project_title>北京项目</project_title> <project_code>abc</project_code> <invoice_title>阿里巴巴</invoice_title> <invoice_id>1234</invoice_id> <cost_center_name>销售部成本中心</cost_center_name> <cost_center_number>abcde</cost_center_number> <cost_center_id>12345</cost_center_id> <business_category>TRAVEL</business_category> <car_license>浙A00000</car_license> <service_type>1</service_type> <travel_distance>1.2</travel_distance> <cancel_time>2017-05-01 00:00:00</cancel_time> <driver_confirm_time>2017-05-01 00:00:00</driver_confirm_time> <taken_time>2017-05-01 00:00:00</taken_time> <publish_time>2017-05-01 00:00:00</publish_time> <estimate_price>100.0</estimate_price> <car_info>白色本田</car_info> <car_level>3</car_level> <order_status>2</order_status> <memo>加班</memo> <to_city_name>杭州</to_city_name> <from_city_name>杭州</from_city_name> <to_address>乐佳国际</to_address> <from_address>阿里巴巴西溪园区</from_address> <real_to_city_name>杭州</real_to_city_name> <real_from_city_name>杭州</real_from_city_name> <apply_show_id>201802031353000525653</apply_show_id> <apply_id>123</apply_id> <depart_name>审批部</depart_name> <depart_id>depart_1</depart_id> <user_id>user_1</user_id> <user_name>张三</user_name> <corp_name>阿里巴巴</corp_name> <corp_id>corp_1</corp_id> <passenger_name>李四</passenger_name> <id>123456</id> <gmt_create>2017-05-01 00:00:00</gmt_create> <gmt_modified>2017-05-01 00:00:00</gmt_modified> <pay_time>2017-05-01 00:00:00</pay_time> <thirdpart_itinerary_id>abcdef</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> </open_vehicle_order_rs> </vehicle_order_list> <result_msg>成功</result_msg> <result_code>0</result_code> <success>true</success> </result> </alitrip_btrip_vehicle_order_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>
错误码 | 错误描述 | 解决方案 |
---|