订单详情查询 1.订单信息 2.账单信息 3.轮询接口,可用过详情接口与回调接口搭配判断订单状态
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
trace_id | String | 可选 | 6d684a10-873a-5c84-878c-161f15923200 | 请求唯一ID | |
amap_order_id | String | 必须 | 1541894302897424029 | 高德订单号 | |
channel_order_id | String | 可选 | 1541894302897 | 渠道订单号(接入公司自定义) | |
client_source | String | 必须 | amap-car | 渠道来源,高德分配 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
trace_id | String | 6d684a10-873a-5c84-878c-161f15923200 | 请求唯一ID |
result_code | String | 0 | 状态码 |
result_msg | String | Success | 状态码描述 |
amap_order_id | String | 1541894302897424029 | 高德订单号 |
channel_order_id | String | 1541894302897 | 渠道订单号(接入公司自定义) |
order_info | OrderInfo | 订单信息 | |
|
|||
cost_info | CostInfo | 费用信息 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAmapChannelCarOrderDetailQueryRequest req = new AlibabaAmapChannelCarOrderDetailQueryRequest(); req.setTraceId("6d684a10-873a-5c84-878c-161f15923200"); req.setAmapOrderId("1541894302897424029"); req.setChannelOrderId("1541894302897"); req.setClientSource("amap-car"); AlibabaAmapChannelCarOrderDetailQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<alibaba_amap_channel_car_order_detail_query_response> <trace_id>6d684a10-873a-5c84-878c-161f15923200</trace_id> <result_code>0</result_code> <result_msg>Success</result_msg> <amap_order_id>1541894302897424029</amap_order_id> <channel_order_id>1541894302897</channel_order_id> <order_info> <amap_order_id>1541894302897424029</amap_order_id> <channel_order_id>1541894302897</channel_order_id> <status>101</status> <city_id>010</city_id> <gd_service_id>1</gd_service_id> <mobile>15811657234</mobile> <driver_name>王师傅</driver_name> <driver_phone>15877828358</driver_phone> <car_type>日产阳光</car_type> <license_plate></license_plate> <driver_pic_url></driver_pic_url> <start_lng>116.488731</start_lng> <start_lat>40.002813</start_lat> <start_name>金辉大厦</start_name> <end_lng>116.488731</end_lng> <end_lat>40.002813</end_lat> <end_name>金辉大厦</end_name> <departure_time>2020-09-24 12:22:22</departure_time> <order_time>2020-09-24 12:22:22</order_time> <accept_time>2020-09-24 12:22:22</accept_time> <arrive_time>2020-09-24 12:22:22</arrive_time> <begin_charge_time>2020-09-24 12:22:22</begin_charge_time> <finish_time>2020-09-24 12:22:22</finish_time> <normal_distance>12324</normal_distance> <normal_time>213</normal_time> <driver_car_code>car_shenzhou_api|private-car|4</driver_car_code> <driver_car_color>红色</driver_car_color> <remark>备注</remark> <privacy_number>17138679162</privacy_number> <brand_icon_url>http://aososs.oss-cn-beijing.aliyuncs.com/private_car/1234/icon_upload/dd687333b4b4a0c727746def07821885/etravel_caocao_1593575409855.png</brand_icon_url> <brand_ride_type_name>运力商车型名称</brand_ride_type_name> <brand_ride_name>运力商名称</brand_ride_name> <pay_type>支付类型</pay_type> <arr_air_code>SHA</arr_air_code> <dep_air_code>XIY</dep_air_code> <flight_date>2020-09-24 12:22:22</flight_date> <flight_no>MU5118</flight_no> <transport_type>gd_express</transport_type> <business_model>1</business_model> <insurance_amount>50</insurance_amount> <pick_up_check_num>1435</pick_up_check_num> <extend_info>{"cp_order_id":"23343254245345"}</extend_info> <allow_modify_dest>true</allow_modify_dest> <passenger_privacy_number>15877828358</passenger_privacy_number> <vehicle_proof_info>{}</vehicle_proof_info> <driver_id>0b7b18f417236008099302951e13e5</driver_id> <reassign_order>0</reassign_order> <contact_vo> <start_contact_phone>17883740932</start_contact_phone> <start_contact_name>张三</start_contact_name> <start_contact_privacy_number>17883748765</start_contact_privacy_number> <end_contact_name>李四</end_contact_name> <end_contact_phone>17883740932</end_contact_phone> <end_contact_privacy_number>17883748765</end_contact_privacy_number> </contact_vo> <pick_up_code>123456</pick_up_code> <delivered_code>123456</delivered_code> <sub_gd_service_id>12</sub_gd_service_id> </order_info> <cost_info> <total_price>123</total_price> <original_price>123</original_price> <cost_detail> <cost_detail_info> <amount>123</amount> <name>起步价</name> <type>""</type> </cost_detail_info> </cost_detail> </cost_info> </alibaba_amap_channel_car_order_detail_query_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|