接口说明
用户获取企业认证信息
API 方法名:nuonuo.electronicContract.getCertificationInfo 版本:V2.0
请求地址
| 环境 | 请求地址 |
|---|
| 正式环境 | https://sdk.nuonuo.com/open/v1/services |
| 沙箱环境 | https://sandbox.nuonuocs.cn/open/v1/services |
公共请求参数(消息头)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| Content-type | String | 否 | - | MIME类型【消息头】 | - |
公共请求参数(消息体)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| senid | String | 否 | - | 唯一标识,由企业自己生成32位随机码【消息体】 | - |
私有请求参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| taxNum | String | 否 | 20 | 企业税号 | 91330106MA2AYNWD8M |
响应参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| code | String | 否 | - | | H200 |
| describe | String | 否 | - | | 成功 |
| result | Object | 否 | - | | - |
| └ certificationStatus | Number | 否 | - | 认证标识 0:未认证 1:已认证 | 1 |
| └ charterExistStatus | Number | 否 | - | 印章是否存在标识 0:不存在 1:存在 | 1 |
| └ charterValidStatus | Number | 否 | - | 印章有效性 企业认证时才会返回该标识 0:失效 1:有效 | 1 |
请求报文示例
NNOpenSDK sdk = NNOpenSDK.getIntance();
String taxnum = "23***789"; // 授权企业税号
String appKey = "Hn***XL";
String appSecret = "F65***65F";
String method = "nuonuo.electronicContract.getCertificationInfo"; // API方法名
String token = "2d484e**************pdui"; // 访问令牌
String content = "{
\"taxNum\": \"91330106MA2AYNWD8M\"
}";
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": {
"certificationStatus": 1,
"charterExistStatus": 1,
"charterValidStatus": 1
}
}
返回码说明
| 返回码 | 说明 | 处理建议 |
|---|
H200 | 请求成功 | 无需处理 |
H10106 | 系统出错 | 请稍后重试 |
H10107 | 参数有误 | 根据具体的提示处理 |