接口说明
获取合同模版对应的文本框、日期框设置
API 方法名:nuonuo.eleConShortcutSign.getContracTemplateDetail 版本: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 | 否 | - | 应用名称 | applicationtest001 |
| templateFileId | String | 否 | - | 模版文件id | 2887647849-f4f0ca809e89408e9aeea52ebdaca91f |
| operatorId | String | 否 | - | 发起人账户id | f653c3a39bbc49f99ddbf6906a26fbf5 |
| operatorPartId | String | 否 | - | 发起人主体id。当operatorType=0时,operatorId和operatorPartId必须相同 | 61d89fce745c45838065008528d41587 |
| operatorType | String | 否 | - | 操作人类型。 0:个人 1:企业 | 1 |
响应参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| code | String | 否 | - | | H200 |
| describe | String | 否 | - | | 成功 |
| result | Object | 否 | - | 查询结果 | - |
| └ templateId | Number | 否 | - | 模版id | 3 |
| └ templateFileId | String | 否 | - | 模版文件id | 2887647849-f4f0ca809e89408e9aeea52ebdaca91f |
| └ templateVersion | Number | 否 | - | 模版版本 | 1 |
| └ templateName | String | 否 | - | 模版设置的名称 | 合同模版名称 |
| └ templateSettingList | Array | 否 | - | | - |
| └ fieldId | Number | 否 | - | 字段id | 25 |
| └ fieldType | Number | 否 | - | 字段类型(1-文本,5-日期) | 5 |
| └ fieldTitle | String | 否 | - | 字段标题 | 日期 |
| └ fieldIsNotNull | Number | 否 | - | 字段是否必填(0-非必填,1-必填) | 1 |
| └ fieldContentMaxLength | String | 否 | - | 文本最大长度,fieldType为1(文本)时有值 | - |
| └ fieldDateStart | String | 否 | - | 日期填写范围起始时间,fieldType为5(日期)时有值 | 2021-01-06 |
| └ fieldDateEnd | String | 否 | - | 日期填写范围截止时间,fieldType为5(日期)时有值 | 2021-01-09 |
请求报文示例
NNOpenSDK sdk = NNOpenSDK.getIntance();
String taxnum = "23***789"; // 授权企业税号
String appKey = "Hn***XL";
String appSecret = "F65***65F";
String method = "nuonuo.eleConShortcutSign.getContracTemplateDetail"; // API方法名
String token = "2d484e**************pdui"; // 访问令牌
String content = "{
\"application\": \"applicationtest001\",
\"templateFileId\": \"2887647849-f4f0ca809e89408e9aeea52ebdaca91f\",
\"operatorPartId\": \"61d89fce745c45838065008528d41587\",
\"operatorType\": \"1\",
\"operatorId\": \"f653c3a39bbc49f99ddbf6906a26fbf5\"
}";
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": {
"templateId": 3,
"templateFileId": "2887647849-f4f0ca809e89408e9aeea52ebdaca91f",
"templateVersion": 1,
"templateName": "合同模版",
"templateSettingList": [
{
"fieldId": 25,
"fieldType": 5,
"fieldTitle": "日期",
"fieldIsNotNull": 1,
"fieldContentMaxLength": null,
"fieldDateStart": "2021-01-06",
"fieldDateEnd": "2021-01-09"
},
{
"fieldId": 26,
"fieldType": 1,
"fieldTitle": "文本",
"fieldIsNotNull": 1,
"fieldContentMaxLength": 20,
"fieldDateStart": null,
"fieldDateEnd": null
}
]
}
}
返回码说明
| 返回码 | 说明 | 处理建议 |
|---|
H200 | 成功 | |
H88888 | 参数异常 | 检查入参 |
H99999 | 系统异常 | 根据提示原因或联系管理员解决 |