https://apiv2.xinnet.com/api/domainsub/renewPrivacy| 参数名 | 是否必选 | 类型 | 说明 | 示例 |
|---|---|---|---|---|
| domainName | 是 | string | 域名 | xinnet.com |
| buyTimeLimit | 否 | string | 购买年限(默认为1) | 2 |
{
"domainName" : "xinnet.com",
"buyTimeLimit" : "2"
}| 返回信息 | 说明 |
|---|---|
| code | 执行结果代码:0-成功,非0-失败 |
| msg | 执行结果说明 |
| requestId | 本次请求唯一ID |
| data | 返回json对象 |
| v2 code | v1接口返回 | 说明 |
|---|---|---|
| 350002 | auth-failure | 认证失败 |
| 350002 | client-null | 代理号为空 |
| 350002 | checksum-null | checksum为空 |
| 350002 | charset-null | 字符集为空 |
| 350009 | name-exist | 域名不存在 |
| 355050 | name-wrong | 错误的域名后缀 |
| 350024 | goods-invalid | 商品无效 |
| -- | credit-fail | 预付款不足 |
| 350005 | system-error | 系统异常 |
| 353002 | buyTimeLimit-error | 申请年限不支持 |
| 353003 | state-not-allowed | 状态不允许 |
{
"code":"0",
"msg":"请求成功",
"requestId":"mL7Uv3j2gMw0mBF8bj5",
"data":null
}{
"code":"5050",
"msg":"domainName参数格式错误,xn--请转换为中文",
"requestId":"mL7Uv3j2gMw0mBF8bj5",
"data":null
}