getPrintContent
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
app_context_param | AppContextParam | 可选 | 客户端信息 | ||||||||
|
|||||||||||
execute_user_list | ExecuteUserDto [] | 必须 |
|
账号list | |||||||
|
|||||||||||
personal_session | String | 必须 | dsdf324234234324 | 个人账号sessionCode不能为空 | |||||||
personal_user_id | Number | 必须 | 324234234324 | 个人账号ID不能为空 | |||||||
task_order_id | Number | 必须 | 1042423423 | 履行任务单ID不能为空 | |||||||
session_code | String | 可选 | dsdf324234234324 | 企业账号的会话sessionCode | |||||||
template_type | String | 可选 | one | 打印模板类型 | |||||||
target_mail_cp_code | String | 可选 | 9530554049 | 运单号 | |||||||
target_mail_cp_no | String | 可选 | DBKD | 运单cp | |||||||
target_power_link | Number | 可选 | 4 | 打印模版 | |||||||
dpatch_env | String | 可选 | 1 | 环境参数 | |||||||
carriage_print | Boolean | 可选 | true | 是否打印运费 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | WayBillPrintContentDto | 参数data | |
|
|||
status_code | String | PARAMS_CANNOT_BE_NULL | 错误码 |
status_message | String | 参数不能为空 | 错误描述 |
is_success | Boolean | true | 是否成功 |
trace_id | String | 0be4314615320739620257888e18e2 | 鹰眼ID |
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); CainiaoGuoguoFulfilGetprintcontentRequest req = new CainiaoGuoguoFulfilGetprintcontentRequest(); CainiaoGuoguoFulfilGetprintcontentRequest.AppContextParam obj1 = new CainiaoGuoguoFulfilGetprintcontentRequest.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<CainiaoGuoguoFulfilGetprintcontentRequest.ExecuteUserDto> list3 = new ArrayList<CainiaoGuoguoFulfilGetprintcontentRequest.ExecuteUserDto>(); CainiaoGuoguoFulfilGetprintcontentRequest.ExecuteUserDto obj4 = new CainiaoGuoguoFulfilGetprintcontentRequest.ExecuteUserDto(); list3.add(obj4); obj4.setExecuteUserId(0L); obj4.setExecuteUserType( "foo" ); req.setExecuteUserList(list3); req.setPersonalSession( "dsdf324234234324" ); req.setPersonalUserId(324234234324L); req.setTaskOrderId(1042423423L); req.setSessionCode( "dsdf324234234324" ); req.setTemplateType( "one" ); req.setTargetMailCpCode( "9530554049" ); req.setTargetMailCpNo( "DBKD" ); req.setTargetPowerLink(4L); req.setDpatchEnv( "1" ); req.setCarriagePrint( true ); CainiaoGuoguoFulfilGetprintcontentResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < cainiao_guoguo_fulfil_getprintcontent_response > < data > < orientation >0</ orientation > < xml_content >foo</ xml_content > </ data > < status_code >PARAMS_CANNOT_BE_NULL</ status_code > < status_message >参数不能为空</ status_message > < is_success >true</ is_success > < trace_id >0be4314615320739620257888e18e2</ trace_id > </ cainiao_guoguo_fulfil_getprintcontent_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 > |
错误码 | 错误描述 | 解决方案 |
---|