接口说明
获取合同模板编辑页面服务pc端地址
API 方法名:nuonuo.eleConShortcutSign.getEditUrl 版本:V2.0
请求地址
| 环境 | 请求地址 |
|---|
| 正式环境 | https://sdk.nuonuo.com/open/v1/services |
| 沙箱环境 | https://sandbox.nuonuocs.cn/open/v1/services |
公共请求参数(消息头)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| Content-type | String | 否 | - | MIME类型【消息头】 | - |
公共请求参数(消息体)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| senid | String | 否 | - | 唯一标识,由企业自己生成32位随机码【消息体】 | - |
私有请求参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| application | String | 否 | - | 应用名称 | xiaoertest |
| operatorId | String | 否 | - | 发起人账户id | 0f06014708d7403bb7b7394a1c7ccc2c |
| operatorPartId | String | 否 | - | 发起人主体id。当originType=0时,originatorAccountId和originatorMainBodyId必须相同 | 0f06014708d7403bb7b7394a1c7ccc2c |
| originatorType | Number | 否 | - | 类型。 0:个人 1:企业 | 0 |
| signOutUrl | String | 是 | - | “返回”按钮跳转地址 | https://baidu.com.cn |
| callBackUrl | String | 否 | - | 模板保存后跳转地址 | https://baidu.com.cn |
| editNotifyUrl | String | 是 | - | 模版编辑时的回调地址,当合同模版被编辑时会以post方式将参数以json的形式放入请求体中回调接口,回调参数示例值:{"changeTime":"2021-04-26 09:37:06","templateId":1059,"templateVersion":11}。注意,回调接口需以{“code”:200}格式的数据以响应成功,否则会认为接口回调失败。 | https://baidu.com.cn |
| themeColor | String | 是 | - | 主题色(16进制色值,显示认证结果页面则该参数生效,默认橙色 | ff3456 |
| fileId | String | 否 | - | 模板文件ID | 2887648642-e02a9b2adc8641bcae9a4f0b50155dac |
响应参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| code | String | 否 | - | | H200 |
| describe | String | 否 | - | | 成功 |
| result | Object | 否 | - | | - |
| └ editPCUrl | String | 否 | - | PC编辑地址 | https://hetong.nuonuo.com |
| └ orderNo | String | 否 | - | 订单号 | 13323452345 |
请求报文示例
NNOpenSDK sdk = NNOpenSDK.getIntance();
String taxnum = "23***789"; // 授权企业税号
String appKey = "Hn***XL";
String appSecret = "F65***65F";
String method = "nuonuo.eleConShortcutSign.getEditUrl"; // API方法名
String token = "2d484e**************pdui"; // 访问令牌
String content = "{
\"editNotifyUrl\": \"https://baidu.com.cn\",
\"callBackUrl\": \"https://baidu.com.cn\",
\"application\": \"xiaoertest\",
\"signOutUrl\": \"https://baidu.com.cn\",
\"themeColor\": \"ff3456\",
\"operatorPartId\": \"0f06014708d7403bb7b7394a1c7ccc2c\",
\"operatorId\": \"0f06014708d7403bb7b7394a1c7ccc2c\",
\"originatorType\": 0,
\"fileId\": \"2887648642-e02a9b2adc8641bcae9a4f0b50155dac\"
}";
String url = "https://sdk.nuonuo.com/open/v1/services"; // SDK请求地址
String senid = UUID.randomUUID().toString().replace("-", ""); // 唯一标识,32位随机码,无需修改,保持默认即可
String result = sdk.sendPostSyncRequest(url, senid, appKey, appSecret, token, taxnum, method, content);
System.out.println(result);
响应报文示例
{
"code": "H200",
"describe": "成功",
"result": {
"editPCUrl": "姓名",
"orderNo": "13323452345"
}
}
返回码说明
| 返回码 | 说明 | 处理建议 |
|---|
H200 | 返回成功 | |
H88888 | 参数异常 | 检查入参 |
H99999 | 系统异常 | 根据提示原因或联系管理员解决 |