Price estimate

POST https://www.digicert.com/services/v2/finance/order-pricing
Use this endpoint to get price estimates for a certificate order.

Example requests and responses

cURL

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": [
      "example.com",
      "example.net",
      "example.org"
    ]
  },
  "validity_years": 1,
  "product_name_id": "ssl_basic",
  "renewal_of_order_valid_till": "2024-06-20"
}'

200 OK

{
    "base_price": 782,
    "total_price": 782,
    "addons_price": 0,
    "san_package_price": 0,
    "benefits_discount_total": 0,
    "fqdns": {
        "subtotal": 0,
        "units": 0
    },
    "wildcards": {
        "subtotal": 0,
        "units": 0
    },
    "balance": 0,
    "currency": "USD",
    "tax": "0.00",
    "tax_error": false
}

Request parameters

NameReq/OptTypeDescription
certificaterequiredobjectDetails about the domains to secure.
.. dns_namesrequiredarrayList of domains to secure with the certificate.
order_validityrequiredobjectObject with order validity details. Used in products that allow multi-year plans. When used, overrides validity_years.
.. yearsrequirednumberOrder validity (years).
.. daysrequirednumberOrder validity (days).
.. custom_expiration_dateoptionalstringCustom expiration date for the order.
validity_yearsrequiredintValidity period for the order, in years.
Allowed values: Varies by product type. For valid ranges, see the Order endpoint documentation for the product that you want a price estimate for.
is_out_of_contractoptionalintIf the account is under a contract, specify if the request should return the non-contract price.
Allowed values:0 (contract price), 1 (non-contract price)
Default:
0
product_name_idrequiredstringCertificate product to order. See Glossary – Product identifiers.
billing_addressoptionalobjectBilling address details. Used to calculate estimated tax. If not provided, we calculate estimated tax using the billing address associated with the account used to send the request.
.. countryrequiredstringBilling country.
.. cityrequiredstringBilling city.
.. staterequiredstringBilling state or province. Optional for some countries.
.. ziprequiredstringZip/postal code. Optional for some countries.
renewal_of_order_valid_tilloptionalstringIf estimating the price of a renewal order, include the expiration date of the order being renewed.
Format:
YYYY-MM-DD
addonsoptionalarray of stringsList of product IDs for order add-ons to include in the price estimate.
When requesting a price estimate for Code Signing or EV Code Signing orders that will be provisioned using a DigiCert-provided hardware token or DigiCert KeyLocker, make sure to include the ID of the corresponding add-on. Otherwise, your price estimate may not be accurate.
Allowed values:

Response parameters

NameTypeDescription
base_priceintBase cost for the specified product type.
total_priceintTotal cost estimate for the order, including estimated tax.
addons_priceintCost of all add-ons.
addons_price_detailsarrayDetails about order add-ons. Omitted from response if the request does not include add-ons .
.. subtotalintAdd-ons cost subtotal. Calculated by multiplying units by additional_name_price.
.. product_idintProduct ID of the add-on.
Possible values:
.. unitsintNumber of add-ons added to the order.
.. pricestringPer-unit cost of the product add-on.
fqdnsobjectObject with details about the price estimate for FQDNs on the order.
.. subtotalintPrice estimate for FQDNs on the order.
.. unitsintNumber of FQDNs on the order.
wildcardsobjectObject with details about the price estimate for wildcards on the order.
.. subtotalintPrice estimate for wildcards on the order.
.. unitsintNumber of wildcards on the order.
balanceintCurrent account balance.
currencystringCurrency code for the monetary values in this estimate.
Possible values: See Glossary – DigiCert currencies.
taxfloatEstimated tax for the order.
Returns 0 if an error prevents tax calculation.
Note: Estimated tax may change when you place the order.
tax_errorboolReturns true if an internal error prevents tax calculation.