快递特定场景分拣码配置(大头笔、集包地、末端中心)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
routing_rule_config_batch_top_request | RoutingRuleConfigBatchTopRequest | 必须 | 分拣码配置信息 | ||||||||
|
|||||||||||
client_info | ClientInfoDTO | 可选 | 客户端信息 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | BaseResultDTO | 接口调用结果模型 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); LogisticsRoutingSortingcodeConfigRequest req = new LogisticsRoutingSortingcodeConfigRequest(); LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigBatchTopRequest obj1 = new LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigBatchTopRequest(); obj1.setCpCode( "STO" ); obj1.setResourceType( "jiyun" ); obj1.setRoutingType(0L); List<LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigDTO> list3 = new ArrayList<LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigDTO>(); LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigDTO obj4 = new LogisticsRoutingSortingcodeConfigRequest.RoutingRuleConfigDTO(); list3.add(obj4); obj4.setTextValue( "900X" ); LogisticsRoutingSortingcodeConfigRequest.AddressDTO obj6 = new LogisticsRoutingSortingcodeConfigRequest.AddressDTO(); obj6.setTownName( "余杭街道" ); obj6.setCityName( "杭州市" ); obj6.setAreaName( "余杭区" ); obj6.setProvinceName( "浙江省" ); list5.setReceiveAddress(obj6); obj4.setObjectId( "412414141411srsrrw" ); LogisticsRoutingSortingcodeConfigRequest.AddressDTO obj8 = new LogisticsRoutingSortingcodeConfigRequest.AddressDTO(); obj8.setTownName( "余杭街道" ); obj8.setCityName( "杭州市" ); obj8.setAreaName( "余杭区" ); obj8.setProvinceName( "浙江省" ); list7.setSendAddress(obj8); obj4.setNumValue( "123344" ); obj1.setRoutingRuleConfigList(list3); obj1.setAction( "0" ); obj1.setOperator( "小明" ); req.setRoutingRuleConfigBatchTopRequest(obj1); LogisticsRoutingSortingcodeConfigRequest.ClientInfoDTO obj9 = new LogisticsRoutingSortingcodeConfigRequest.ClientInfoDTO(); obj9.setDescription( "申通" ); req.setClientInfo(obj9); LogisticsRoutingSortingcodeConfigResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | < logistics_routing_sortingcode_config_response > < result > < success >false</ success > < modules > < routing_rule_config_top_response > < object_id >123456</ object_id > < success >false</ success > < error_code >INVALID_ADDRESS</ error_code > < error_message >收件地址解析不合法</ error_message > </ routing_rule_config_top_response > </ modules > < one_error_info > < error_code >SYSTEM_ERROR</ error_code > < error_message >系统异常</ error_message > </ one_error_info > </ result > </ logistics_routing_sortingcode_config_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|