价格相关接口
更新时间:2020-04-30
计算证书价格
接口描述
本接口用于查询用户选择的证书价格
请求结构
Plain Text
1> POST http://cas.baidubce.com/v3/openapi/price
2> Authorization: authorization string
3> Host: cas.baidubce.com
4> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c
5> x-bce-date: 2020-04-27T02:43:18Z
6{
7 "certType" : "DV",
8 "productType" : "SINGLE",
9 "orderType" : "NEW",
10 "brand" : "BAIDUTRUST",
11 "domainNumber" : 1,
12 "wildcardNumber" : 0,
13 "purchaseLength" : 2
14}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
brand | String | 是 | BODY | 证书品牌 取值见附录CertBrand |
certType | String | 是 | BODY | 证书类型 取值见附录CertType |
productType | String | 是 | BODY | 产品类型 取值见 ProductType |
domainNumber | int | 是 | BODY | 标准域名数量 |
wildcardNumber | int | 是 | BODY | 通配符域名数量 |
duration | int | 是 | BODY | 购买年限 (每个品牌每种证书不一定相同,具体参见控制台) |
orderType | String | 是 | BODY | 订单类型 取值见附录 OrderType |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
price | int | 价格 |
请求示例
Plain Text
1 > POST http://cas.baidubce.com/v3/openapi/price
2 > Authorization: bce-auth-v1/5c36beca06ab4616b7969fe0e768d660/2020-04-27T07:41:42Z/3600/host;x-bce-console-rpc-id;x-bce-date/7ffe6b3a3e3f9ea2f1e3d73d6ac91680d5dbdbeccfcb6c74f1807926e2b484a8
3 > Content-Type: application/json
4 > Host: cas.baidubce.com
5 > x-bce-console-rpc-id: 31ee5f3c-eb4f-4496-bd0c-d715d3286b06
6 > x-bce-date: 2020-04-27T07:41:42Z
7{
8 "certType" : "DV",
9 "productType" : "SINGLE",
10 "orderType" : "NEW",
11 "brand" : "BAIDUTRUST",
12 "domainNumber" : 1,
13 "wildcardNumber" : 0,
14 "purchaseLength" : 2
15}
响应示例
Plain Text
1 < Cache-Control: no-cache
2 < Content-Length: -1
3 < Content-Type: application/json;charset=UTF-8
4 < Date: Mon, 27 Apr 2020 07:41:44 GMT
5 < Server: BWS
6 < transfer-encoding: chunked
7 < X-Bce-Gateway-Region: BJ
8 < X-Bce-Request-Id: b1783bd8-1c16-41b2-8d83-45528aec1866
9{"price":"1512.00"}