List subaccount products

GET
https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products

Use this endpoint to list detailed product information for a subaccount.

To set product limits for a subaccount, use the Set subaccount product.

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

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

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products"

	req, _ := http.NewRequest("GET", url, nil)

	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)

	fmt.Println(res)
	fmt.Println(string(body))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' } };

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

  console.log(body);
});
200 OK
{
    "currency": "USD",
    "products": [
        {
            "product_name_id": "ssl_plus",
            "product_name": "Standard SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 218,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 414,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                }
            ]
        },
        {
            "product_name_id": "ssl_multi_domain",
            "product_name": "Multi-Domain SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 412,
                    "additional_fqdn_cost": 135,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 782,
                    "additional_fqdn_cost": 257,
                    "additional_wildcard_cost": 0
                }
            ]
        },
        {
            "product_name_id": "ssl_wildcard",
            "product_name": "WildCard",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 688,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 658
                },
                {
                    "lifetime": 2,
                    "cost": 1307,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 1250
                }
            ]
        },
        {
            "product_name_id": "ssl_ev_plus",
            "product_name": "EV SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 344,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 654,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                }
            ]
        }
    ]
}

Response parameters

Name Type Description
currency string Currency type used for pricing.
Possible values: USD
products array List of products enabled for the subaccount.
.. product_name_id string Product name ID.
See Glossary – Product identifiers
.. product_name string Display name of the product.
.. prices array List of prices for the product.
.. .. lifetime int Validity term in years that the pricing applies to.
.. .. cost int Base price of the product.
.. .. additional_fqdn_cost int Cost for each additional domain name (SAN) added to the order.
.. .. additional_wildcard_cost int Cost for each additional wildcard domain (e.g., *.example.com) added to the order.