uploadMailnoByCourier
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
app_context_param | AppContextParam | 可选 | 客户端信息 | ||||||||
|
|||||||||||
execute_user_list | ExecuteUserDto [] | 可选 |
|
账号list | |||||||
|
|||||||||||
mail_cp_code | String | 可选 | KKTDX | 电子面单号对应的cpCode 1: 使用电子面单号,不传;2:使用纸质面单号,必传 | |||||||
mail_no | String | 可选 | 3424 | 运单号 1:纸质面单号必传;2:电子面单非必传 | |||||||
mail_no_type | Number | 可选 | 1 | 电子面单类型(必传) 1:电子面单;2:纸质面单 | |||||||
personal_session | String | 可选 | dsdf324234234324 | 个人账号sessionCode不能为空 | |||||||
personal_user_id | Number | 可选 | 324234234324 | 个人账号ID不能为空 | |||||||
power_template_id | Number | 可选 | 3424 | 电子面单表id 1: 使用电子面单必传;2:使用纸质面单非必传 | |||||||
reconfirm_mail_no | Number | 可选 | 1 | 再次确认运单号 | |||||||
task_order_id | Number | 可选 | 1042423423 | 履行任务单ID不能为空 | |||||||
session_code | String | 可选 | dsdf324234234324 | 企业账号的会话sessionCode | |||||||
mail_source_type | String | 可选 | CNWaybill | 电子面单类型(CNWaybill:菜鸟电子面单;CPWaybill||null:快递公司电子面单) |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | String | foo | 运单号 |
status_code | String | PARAMS_CANNOT_BE_NULL | 错误码 |
status_message | String | 参数不能为空 | 错误描述 |
is_success | Boolean | true | 是否成功 |
trace_id | String | fdsaa | traceId |
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 34 35 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); CainiaoGuoguoFulfilUploadmailnoRequest req = new CainiaoGuoguoFulfilUploadmailnoRequest(); CainiaoGuoguoFulfilUploadmailnoRequest.AppContextParam obj1 = new CainiaoGuoguoFulfilUploadmailnoRequest.AppContextParam(); obj1.setAppBattery( "45" ); obj1.setDeviceType( "ios" ); obj1.setLocAccuracy( "23" ); obj1.setLocAuth( "true" ); obj1.setLocLat( "123.22" ); obj1.setLocLng( "123.22" ); obj1.setLocOpen( "true" ); obj1.setLocSucc( "true" ); obj1.setLocTime(123L); obj1.setLocType( "gps" ); obj1.setPkgId( "fsdfId" ); obj1.setPkgName( "fsdf.sdf" ); obj1.setSdkVersion( "6.0.1" ); req.setAppContextParam(obj1); List<CainiaoGuoguoFulfilUploadmailnoRequest.ExecuteUserDto> list3 = new ArrayList<CainiaoGuoguoFulfilUploadmailnoRequest.ExecuteUserDto>(); CainiaoGuoguoFulfilUploadmailnoRequest.ExecuteUserDto obj4 = new CainiaoGuoguoFulfilUploadmailnoRequest.ExecuteUserDto(); list3.add(obj4); obj4.setExecuteUserId(0L); obj4.setExecuteUserType( "foo" ); req.setExecuteUserList(list3); req.setMailCpCode( "KKTDX" ); req.setMailNo( "3424" ); req.setMailNoType(1L); req.setPersonalSession( "dsdf324234234324" ); req.setPersonalUserId(324234234324L); req.setPowerTemplateId(3424L); req.setReconfirmMailNo(1L); req.setTaskOrderId(1042423423L); req.setSessionCode( "dsdf324234234324" ); req.setMailSourceType( "CNWaybill" ); CainiaoGuoguoFulfilUploadmailnoResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < cainiao_guoguo_fulfil_uploadmailno_response > < data >foo</ data > < status_code >PARAMS_CANNOT_BE_NULL</ status_code > < status_message >参数不能为空</ status_message > < is_success >true</ is_success > < trace_id >fdsaa</ trace_id > </ cainiao_guoguo_fulfil_uploadmailno_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 > |
错误码 | 错误描述 | 解决方案 |
---|