证书产品价格#
通过此接口可以提交不同购买数量,计算出此证书产品最终购买价格|请求地址#
|请求类型#
|请求参数#
| 字段 | 参数 | 类型 | 必填 | 说明 |
|---|
| APPID | appid | String | 是 | API应用Id |
| 时间戳 | gntime | String | 是 | 当前UNIX时间戳 |
| 签名 | gntoken | String | 是 | 签名字符串,参考 签名算法 |
| 指令 | do | String | 是 | v1/product/price |
| 产品id | id | Integer | 是 | 产品ID |
| 域名数量 | 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 | Array | 返回请求操作结果数据 |
|返回数据#
| 字段 | 参数 | 类型 | 说明 |
|---|
| 产品原价 | data.price | Float | 产品原始价格 |
| 购买价格 | data.current_price | Float | 实际付款金额 |
| 折扣额度 | data.rate | Float | 折扣额度,如5折为5.0 |
| 购买时长 | data.year | Integer | 您购买的证书时长(年) |
|响应数据#
{
"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
}
}
Modified at 2026-04-22 08:13:40