https://apiv2.xinnet.com/api/template/upload
参数名 | 是否必选 | 类型 | 说明 | 示例 |
---|---|---|---|---|
templateName | 是 | string | 模板名称 | 专用模板 |
organCode | 是 | string | 证件号码 | 91110108101989014C |
organizeFile | 是 | string | 所有人证件 | jpg图片的base64编码 |
registrantType | 是 | string | 注册人类型I 个人 E 企业 | E |
idType | 是 | string | 证件类型 (证件类型对应标示见附录) | YYZZ |
{
"templateName" : "xinnet注册模板",
"organCode" : "91110108101989014C",
"organizeFile" : "base64编码太长省略",
"registrantType" : "E",
"idType" : "YYZZ"
}
返回信息 | 说明 |
---|---|
code | 执行结果代码:0-成功,非0-失败 |
msg | 执行结果说明 |
requestId | 本次请求唯一ID |
data | 返回json对象 |
v2 code | v1接口返回 | 说明 |
---|---|---|
350002 | client-null | 代理号为空 |
350002 | verify-null | 没有摘要 |
350002 | charset-null | 编码为空 |
350002 | testFlag-null | 编码内容验证为空 |
350002 | charset-invalid | 编码无效 |
350002 | testFlag-wrong | 编码内容验证失败 |
350002 | client-noexist | 代理号不存在 |
350002 | client-invalid | 代理号格式无效 |
350002 | verify-failure | 摘要认证失败 |
350002 | auth-failure | 认证错误 |
350042 | tname-null | 模板名称为空 |
-- | uname1-null | 注册所有人中文为空 |
355000 | organ_code-null | 注册所有人证件号码为空 |
355000 | file_reg-null | 注册所有人证件扫描件为空 |
-- | tname-invalid | 模板名称包含无效字符或超长 |
-- | uname1-invalid | 注册所有人中文包含无效字符或超长 |
355050 | organ_code-invalid | 注册所有人证件号码包含无效字符 |
350033 | tname-noexist | 模板不存在 |
-- | uname1-wrong | 提交的注册人与当前模板下记录的注册人不一致 |
-- | organ_code-wrong | 所有人名称与证件号码不匹配 |
350041 | file_reg-wrong | 注册所有人证件扫描件格式不符或大小超限 |
0 | upload-success | 上传实名资料成功 |
1 | rstatus-auditing | 模板注册人信息实名认证中 |
1 | rstatus-verified | 模板注册人信息已认证 |
-- | system-error | 系统错误 |
350005 | timeout | 网络超时 |
355000 | registrantType is null | registrantType为空 |
355050 | registrantType is wrong | registrantType数据格式错误 |
355000 | idType is null | idType为空 |
355050 | idType is wrong | idType数据格式错误 |
{
"code":"0",
"msg":"请求成功",
"requestId":"mL7Uv3j2gMw0mBF8bj5",
"data":null
}
{
"code":"5000",
"msg":"templateName参数不能为空",
"requestId":"mL7Uv3j2gMw0mBF8bj5",
"data":null
}