Use this endpoint to get price estimates for a certificate order.

If an estimate could not be determined, the endpoint returns a price estimate of 0.

curl -X POST \
  https://www.digicert.com/services/v2/finance/order-pricing \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
  "certificate": {
  	"dns_names": [
  "validity_years": 2,
  "product_name_id": "ssl_multi_domain"
import requests

url = "https://www.digicert.com/services/v2/finance/order-pricing"

payload = "{\n  \"certificate\": {\n  \t\"dns_names\": [\n  \t\t\"example.com\",\n  \t\t\"example.org\",\n  \t\t\"example.biz\",\n  \t\t\"test-example.com\"\n  \t]\n  },\n  \"validity_years\": 2,\n  \"product_name_id\": \"ssl_multi_domain\"\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"

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

package main

import (

func main() {

	url := "https://www.digicert.com/services/v2/finance/order-pricing"

	payload := strings.NewReader("{\n  \"certificate\": {\n  \t\"dns_names\": [\n  \t\t\"example.com\",\n  \t\t\"example.org\",\n  \t\t\"example.biz\",\n  \t\t\"test-example.com\"\n  \t]\n  },\n  \"validity_years\": 2,\n  \"product_name_id\": \"ssl_multi_domain\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)


var request = require("request");

var options = { method: 'POST',
  url: 'https://www.digicert.com/services/v2/finance/order-pricing',
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
   { certificate: 
      { dns_names: 
         [ 'example.com',
           'test-example.com' ] },
     validity_years: 2,
     product_name_id: 'ssl_multi_domain' },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

200 OK
  "base_price": 680,
  "total_price": 937,
  "addons_price": 257,
  "addons": [
      "subtotal": 257,
      "product_id": 12,
      "units": 1,
      "additional_name_price": "257.00"

Request parameters

Name Req/Opt Type Description
certificate required object Details about the domains to secure.
.. dns_names required array List of domains to secure with the certificate.
validity_years required int Number of validity years.
Allowed values: 1, 2
custom_expiration_date optional string Custom expiration date for certificate.
If included, this parameter overrides validity_years.
Format: YYYY-MM-DD
is_out_of_contract optional int If under contract, specify if the out of contract pricing should be returned.
Allowed values: 0 (contract price), 1 (non-contract price)
Default: 0
product_name_id required string Certificate product to order.
See Glossary – Product identifiers

Response parameters

Name Type Description
base_price int Base cost for the specified product type.
total_price int Total cost estimate for the order.
addons_price int Cost of all add-ons.
addons array Details about order add-ons.
.. subtotal int Add-ons cost subtotal.
Calculated by multiplying units by additional_name_price.
.. product_id int Product ID of the add-on.
Possible values: 12 (additional SAN)
.. units int Number of add-ons added to the order.
.. additional_name_price string Per-unit cost of the product add-on.