查域名
查whois
通过此接口可以提交不同购买数量,计算出此证书产品最终购买价格
/api/cps/ssl
POST
| 字段 | 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| APPID | appid | String | 是 | API应用Id |
| 时间戳 | gntime | String | 是 | 当前UNIX时间戳 |
| 签名 | gntoken | String | 是 | 签名字符串,参考 签名算法 |
| 指令 | do | String | 是 | v1/product/price |
| 产品id | id | Integer | 是 | |
| 域名数量 | domain_num | Integer | 是 | 主域名+附加域名数量 |
| 通配符数量 | wildcard_num | Integer | 是 | 通配符数量 |
| 购买方式 | type | Integer | 是 | 1=新购,2=追加购买域名 |
| 购买时长 | num | Integer | 是 | 购买时长,最大3年,单位:年 |
| 证书ID | record_id | Integer | 否 | 当type=2时,必传 |
| 字段 | 参数 | 类型 | 说明 |
|---|---|---|---|
| 返回码 | code | Integer | 1:返回成功 -1:返回失败 |
| 返回说明 | msg | String | 返回请求操作的说明 |
| 返回数据 | data | Object | 返回请求操作结果数据 |
| 字段 | 参数 | 类型 | 说明 |
|---|---|---|---|
| 产品原价 | data.price | 产品原始价格 | |
| 购买价格 | data.current_price | 实际付款金额 | |
| 折扣额度 | data.rate | 折扣额度,如5折为5.0 | |
| 购买时长 | data.year | 您购买的证书时长 |
{
"code": 0,
"data": {
"price": "string",
"current_price": "string",
"refund": "string",
"saved_price": "string",
"extend_price_d": "string",
"extend_price_w": "string",
"rate": "string",
"common_price": "string",
"all_common_price": "string",
"attach_domain_num": 0,
"attach_wildcard_num": 0,
"attach_domain_price": "string",
"attach_wildcard_price": "string",
"current_attach_wildcard_price": "string",
"current_attach_domain_price": "string",
"year": 0,
"year_rate": 0,
"is_act": 0
}
}