List replacement benefits

POST https://www.digicert.com/services/v2/competitive-replacement/certificates
Use this endpoint to get information about the discounts available when replacing the certificates on one or more of your domains with a DigiCert product.

Example requests and response

curl -X POST 'https://www.digicert.com/services/v2/competitive-replacement/certificates' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
	"domains": ["exampledomain1.com", "exampledomain2.com"]
}'
import requests

url = "https://www.digicert.com/services/v2/competitive-replacement/certificates"

payload = "{\n\t\"domains\": [\"exampledomain1.com\", \"exampledomain2.com\"]\n}"
headers = {
  'Content-Type': 'application/json',
  'X-DC-DEVKEY': '{{api_key}}'
}

response = requests.request("POST", url, headers=headers, data = payload)

print(response.text.encode('utf8'))
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://www.digicert.com/services/v2/competitive-replacement/certificates"
  method := "POST"

  payload := strings.NewReader("{\n	\"domains\": [\"exampledomain1.com\", \"exampledomain2.com\"]\n}")

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("X-DC-DEVKEY", "{{api_key}}")

  res, err := client.Do(req)
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)

  fmt.Println(string(body))
}
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://www.digicert.com/services/v2/competitive-replacement/certificates',
  'headers': {
    'Content-Type': 'application/json',
    'X-DC-DEVKEY': '{{api_key}}'
  },
  body: JSON.stringify({"domains":["exampledomain1.com","exampledomain2.com"]})

};
request(options, function (error, response) { 
  if (error) throw new Error(error);
  console.log(response.body);
});

200 OK

{
    "certificates": [
        {
            "subject": "exampledomain1.com",
            "san_list": [
                "exampledomain1.com"
            ],
            "serial_number": "{{certificate_serial_number}}",
            "issuer_ca": "Network Solutions OV Server CA 2",
            "issuer_brand": "Sectigo",
            "not_before": "2020-03-16T00:00:00.000+0000",
            "not_after": "2020-06-14T23:59:59.000+0000",
            "validation_type": "OV",
            "matched_domains_count": 1,
            "matched_domains": [
                "exampledomain1.com"
            ],
            "certificate_replacement_benefits": [
                {
                    "to_product_type": "EV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 15,
                    "products": [
                        {
                            "product_name_id": "ssl_ev_basic",
                            "product_name": "Basic EV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_ev_geotrust_truebizid",
                            "product_name": "GeoTrust TrueBusiness ID EV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_ev_securesite_flex",
                            "product_name": "Secure Site EV",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_ev_securesite_pro",
                            "product_name": "Secure Site Pro EV SSL",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_ev_thawte_webserver",
                            "product_name": "Thawte SSL Webserver EV",
                            "additional_discount": 0
                        }
                    ]
                },
                {
                    "to_product_type": "OV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 20,
                    "products": [
                        {
                            "product_name_id": "ssl_basic",
                            "product_name": "Basic OV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_geotrust_truebizid",
                            "product_name": "GeoTrust TrueBusiness ID OV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_securesite_flex",
                            "product_name": "Secure Site OV",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_securesite_pro",
                            "product_name": "Secure Site Pro SSL",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_thawte_webserver",
                            "product_name": "Thawte SSL Webserver OV",
                            "additional_discount": 0
                        }
                    ]
                },
                {
                    "to_product_type": "DV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 10,
                    "products": [
                        {
                            "product_name_id": "ssl_dv_rapidssl",
                            "product_name": "RapidSSL Standard DV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "wildcard_dv_rapidssl",
                            "product_name": "RapidSSL Wildcard DV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_dv_geotrust_flex",
                            "product_name": "GeoTrust DV SSL",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_dv_thawte",
                            "product_name": "Thawte SSL123 DV",
                            "additional_discount": 0
                        }
                    ]
                }
            ]
        },
        {
            "subject": "exampledomain2.com",
            "san_list": [
                "exampledomain2.com"
            ],
            "serial_number": "{{certificate_serial_number}}",
            "issuer_ca": "Sectigo RSA Domain Validation Secure Server CA",
            "issuer_brand": "Sectigo",
            "not_before": "2020-03-16T00:00:00.000+0000",
            "not_after": "2020-06-14T23:59:59.000+0000",
            "validation_type": "DV",
            "matched_domains_count": 1,
            "matched_domains": [
                "exampledomain2.com"
            ],
            "certificate_replacement_benefits": [
                {
                    "to_product_type": "EV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 20,
                    "products": [
                        {
                            "product_name_id": "ssl_ev_basic",
                            "product_name": "Basic EV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_ev_geotrust_truebizid",
                            "product_name": "GeoTrust TrueBusiness ID EV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_ev_securesite_flex",
                            "product_name": "Secure Site EV",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_ev_securesite_pro",
                            "product_name": "Secure Site Pro EV SSL",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_ev_thawte_webserver",
                            "product_name": "Thawte SSL Webserver EV",
                            "additional_discount": 0
                        }
                    ]
                },
                {
                    "to_product_type": "OV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 10,
                    "products": [
                        {
                            "product_name_id": "ssl_basic",
                            "product_name": "Basic OV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_geotrust_truebizid",
                            "product_name": "GeoTrust TrueBusiness ID OV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_securesite_flex",
                            "product_name": "Secure Site OV",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_securesite_pro",
                            "product_name": "Secure Site Pro SSL",
                            "additional_discount": 10
                        },
                        {
                            "product_name_id": "ssl_thawte_webserver",
                            "product_name": "Thawte SSL Webserver OV",
                            "additional_discount": 0
                        }
                    ]
                },
                {
                    "to_product_type": "DV",
                    "bonus_type": "DISCOUNT",
                    "bonus_unit": 30,
                    "products": [
                        {
                            "product_name_id": "ssl_dv_rapidssl",
                            "product_name": "RapidSSL Standard DV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "wildcard_dv_rapidssl",
                            "product_name": "RapidSSL Wildcard DV",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_dv_geotrust_flex",
                            "product_name": "GeoTrust DV SSL",
                            "additional_discount": 0
                        },
                        {
                            "product_name_id": "ssl_dv_thawte",
                            "product_name": "Thawte SSL123 DV",
                            "additional_discount": 0
                        }
                    ]
                }
            ]
        }
    ],
    "page": {
        "total": 2,
        "limit": 1000,
        "offset": 0
    }
}

Request parameters

NameReq/OptTypeDescription
domainsrequiredarrayList of domains to check for competitive replacement benefits.

URL query strings

NameReq/OptTypeDescription
offsetoptionalintStart list at the specified number for pagination.
Default: 0
limitoptionalintTruncate list to the specified number for pagination.
Max: 1000 (default)

Response parameters

NameTypeDescription
certificatesarrayList of objects with competitive replacement details for the certificates that secure each domain in the request.
.. subjectstringSubject of the certificate.
.. san_listarrayList of SANs the certificate secures.
.. serial_numberstringCertificate serial number.
.. issuer_castringName of the intermediate or root certificate authority that issued the certificate.
.. issuer_brandstringBrand name of the owner of the certificate authority that issued the certificate.
.. not_beforestringTimestamp when certificate validity starts.
Format: UTC timezone and ISO 8601 date
.. not_afterstringTimestamp when certificate validity ends.
Format: UTC timezone and ISO 8601 date.
.. validation_typestringValidation type used by the certificate.
Possible values: OV, EV, or DV
.. matched_domains_countintNumber of domains from your request that this certificate secures.
.. matched_domainsarrayList of domains from your request that this certificate secures.
.. certificate_replacement_benefitsarrayList of objects with information about the discounts and other benefits available for replacing this certificate with a DigiCert product.
.. .. to_product_typestringValidation type for the products in this object.
Possible values: OV, EV, or DV.
.. .. bonus_typestringType of benefit available when you replace the certificate with a product in this category.
Possible values: DISCOUNT
.. .. bonus_unitfloatPercentage discount applied to order cost when you replace the certificate with a product in this category.
.. .. productsarrayA list of objects with information about the products in this category to which the above discounts apply.
.. .. .. product_name_idstringName ID of the DigiCert product. See Glossary – Product identifiers
.. .. .. product_namestringDisplay name of the DigiCert product. See Glossary – Product identifiers
.. .. .. additional_discountintAdditional percentage discount applied for this product.
pageobjectDetails about results. Modified using URL query strings.