淘天指数线路维度指标值查询接口
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| index_metric_route_query_request | IndexMetricRouteQueryRequest | 必须 | 线路维度指标值查询入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| index_metric_route_query_response | IndexMetricRouteQueryResponse | 无 | 线路维度指标值查询出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsIndexMetricRouteQueryRequest req = new LogisticsIndexMetricRouteQueryRequest();
LogisticsIndexMetricRouteQueryRequest.IndexMetricRouteQueryRequest obj1 = new LogisticsIndexMetricRouteQueryRequest.IndexMetricRouteQueryRequest();
obj1.setRequestTime(1689067417799L);
obj1.setRequestId("xxx1689067417799xxx");
obj1.setSupplierId("1000001");
obj1.setMetricCode("fetch_sign_achievement_rate");
obj1.setTimeType("DAY");
obj1.setTimeValue("2025-01-01");
obj1.setFromDivisionId(1L);
obj1.setToDivisionId(1L);
obj1.setQueryScope("STO");
obj1.setComparisonRange("industry");
obj1.setFromDivisionType("all");
obj1.setToDivisionType("all");
obj1.setPageIndex(1L);
obj1.setPageSize(100L);
req.setIndexMetricRouteQueryRequest(obj1);
LogisticsIndexMetricRouteQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<logistics_index_metric_route_query_response>
<index_metric_route_query_response>
<success>true</success>
<code>SYSTEM_ERROR</code>
<message>系统繁忙,请稍后重试</message>
<data>
<best_index_value>1.00%</best_index_value>
<brand_index_list>
<lsp_index_metric_brand>
<tt_brand_code>STO</tt_brand_code>
<tt_brand_name>申通快递</tt_brand_name>
<index_value>1.00%</index_value>
<fetch_sign_index_value>
<fetch_sign_one_day>1.00%</fetch_sign_one_day>
<fetch_sign_two_days>1.00%</fetch_sign_two_days>
<fetch_sign_three_days>1.00%</fetch_sign_three_days>
<fetch_sign_four_days>1.00%</fetch_sign_four_days>
<fetch_sign_five_days>1.00%</fetch_sign_five_days>
</fetch_sign_index_value>
<stagnation_index_value>
<stagnation_fetch>1.00%</stagnation_fetch>
<stagnation_transport>1.00%</stagnation_transport>
<stagnation_transport_between>1.00%</stagnation_transport_between>
<stagnation_delivery_sign>1.00%</stagnation_delivery_sign>
</stagnation_index_value>
<trajectory_index_value>
<station_brand>1.00%</station_brand>
<station_address>1.00%</station_address>
<station_phone>1.00%</station_phone>
<pick_up_code>1.00%</pick_up_code>
</trajectory_index_value>
<rank>1</rank>
<best_index_value>1.00%</best_index_value>
<division>
<from_province_id>1/其他</from_province_id>
<from_province_name>全国/其他</from_province_name>
<from_city_id>330100/其他</from_city_id>
<from_city_name>杭州市/其他</from_city_name>
<to_province_id>1/其他</to_province_id>
<to_province_name>全国/其他</to_province_name>
<to_city_id>330100/其他</to_city_id>
<to_city_name>杭州市/其他</to_city_name>
</division>
<logistics_abnormal_index_value>
<fake_trajectory>1.00%</fake_trajectory>
<extreme_bad_stagnation>1.00%</extreme_bad_stagnation>
<extreme_bad_index_value>
<extreme_bad_fetch>1.00%</extreme_bad_fetch>
<extreme_bad_transport>1.00%</extreme_bad_transport>
<extreme_bad_delivery_sign>1.00%</extreme_bad_delivery_sign>
</extreme_bad_index_value>
</logistics_abnormal_index_value>
<drill_list>
<lsp_index_metric_drill>
<drill_type>101</drill_type>
<drill_name>异地签收</drill_name>
<metric_value>1.00%</metric_value>
<parent_drill_type>1</parent_drill_type>
</lsp_index_metric_drill>
</drill_list>
</lsp_index_metric_brand>
</brand_index_list>
<total>1</total>
<page_index>1</page_index>
<page_size>100</page_size>
</data>
</index_metric_route_query_response>
</logistics_index_metric_route_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>
| 错误码 | 错误描述 | 解决方案 |
|---|