价格相关接口
技术问题 | 2022-09-19

计算证书价格

接口描述


本接口用于查询用户选择的证书价格


请求结构


> POST http://cas.baidubce.com/v3/openapi/price

> Authorization: authorization string

> Host: cas.baidubce.com

> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c

> x-bce-date: 2020-04-27T02:43:18Z

{

 "certType" : "DV",

 "productType" : "SINGLE",

  "orderType" : "NEW",

  "brand" : "BAIDUTRUST",

  "domainNumber" : 1,

  "wildcardNumber" : 0,

  "purchaseLength" : 2

}

请求头域


除公共头域外,无其它特殊头域。


请求参数


参数名称    类型    是否必需    参数位置    描述

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    价格

请求示例


 > POST http://cas.baidubce.com/v3/openapi/price

 > Authorization: bce-auth-v1/5c36beca06ab4616b7969fe0e768d660/2020-04-27T07:41:42Z/3600/host;x-bce-console-rpc-id;x-bce-date/7ffe6b3a3e3f9ea2f1e3d73d6ac91680d5dbdbeccfcb6c74f1807926e2b484a8

 > Content-Type: application/json

 > Host: cas.baidubce.com

 > x-bce-console-rpc-id: 31ee5f3c-eb4f-4496-bd0c-d715d3286b06

 > x-bce-date: 2020-04-27T07:41:42Z

{

  "certType" : "DV",

  "productType" : "SINGLE",

  "orderType" : "NEW",

  "brand" : "BAIDUTRUST",

  "domainNumber" : 1,

  "wildcardNumber" : 0,

  "purchaseLength" : 2

}

响应示例


 < Cache-Control: no-cache

 < Content-Length: -1

 < Content-Type: application/json;charset=UTF-8

 < Date: Mon, 27 Apr 2020 07:41:44 GMT

 < Server: BWS

 < transfer-encoding: chunked

 < X-Bce-Gateway-Region: BJ

 < X-Bce-Request-Id: b1783bd8-1c16-41b2-8d83-45528aec1866

{"price":"1512.00"}