Subaccount order info

GET https://www.digicert.com/services/v2/account/subaccount/order/{{order_id}}
Use this endpoint to get details for a certificate order placed by a subaccount or sub-subaccount.

Example requests and responses

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

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

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

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

print(response.text)
package main

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

func main() {

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

	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))

}
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/account/subaccount/order/{{order_id}}',
  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);
});
{
  "id": 123456,
  "certificate": {
    "id": 101015,
    "common_name": "example.com",
    "dns_names": [
      "sub.example.com"
    ],
    "signature_hash": "sha256",
    "ca_cert": {
      "id": "A937018B9FAF6CC2",
      "name": "DigiCert Global G2 TLS RSA SHA256 2020 CA1"
    }
  },
  "organization": {
    "id": 334455,
    "name": "Real Organization, LLC",
    "assumed_name": "Real Organization",
    "display_name": "Real Organization, LLC (Real Organization)"
  },
  "subaccount": {
    "account_id": 123445,
    "account_type": "enterprise",
    "organization_name": "Sub account organization"
  },
  "product": {
    "name_id": "ssl_securesite",
    "name": "Secure Site SSL",
    "type": "ssl_certificate"
  },
  "order_price": {
    "cost": 399,
    "currency": "USD"
  },
  "status": "pending",
  "number_of_sans": 1,
  "date_created": "2019-06-21T09:06:47+00:00",
  "validity_years": 1
}
{
  "id": 12345678,
  "certificate": {
    "id": 23456,
    "common_name": "example.com",
    "dns_names": [
      "example.com",
      "subdomain.example.com"
    ],
    "signature_hash": "sha256",
    "ca_cert": {
      "id": "<ca_cert_id>",
      "name": "<ca_cert_name>"
    }
  },
  "organization": {
    "id": 1875789,
    "name": "Example Co.",
    "assumed_name": "Example",
    "display_name": "Example Co. (Example)"
  },
  "subaccount": {
    "account_id": 12345,
    "account_type": "retail",
    "organization_name": "Subaccount Inc."
  },
  "product": {
    "name_id": "ssl_basic",
    "name": "Basic OV",
    "type": "ssl_certificate"
  },
  "status": "pending",
  "date_created": "2023-12-11T22:12:26+00:00",
  "is_multi_year_plan": "1",
  "validity_years": 1,
  "order_price": {
    "cost": <cost>,
    "currency": "USD"
  },
  "subaccount_order_validations": {
    "order_name_scope": "base_domain",
    "order_dcv_method": "dns-txt-token",
    "organization_validations": [
      {
        "type": "ov",
        "name": "OV",
        "description": "Normal Organization Validation",
        "status": "pending",
        "verification_details": {
          "organization_type": "pending",
          "organization_status": "pending",
          "address_verification": "pending",
          "blacklist_fraud": "pending",
          "request_authenticity": "pending"
        }
      }
    ],
    "dns_name_validations": [
      {
        "status": "unapproved",
        "dns_names": [
          "subdomain.example.com"
        ],
        "base_domain": "example.com"
      },
      {
        "status": "unapproved",
        "dns_names": [
          "example.com"
        ],
        "base_domain": "example.com"
      }
    ]
  }
}
{
  "id": 12345678,
  "certificate": {
    "id": 34567891,
    "thumbprint": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX70C5B",
    "serial_number": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXC5F",
    "common_name": "example.com",
    "dns_names": [
      "example.com"
    ],
    "valid_from": "2020-10-14",
    "valid_till": "2021-10-18",
    "days_remaining": 286,
    "signature_hash": "sha256",
    "ca_cert": {
      "id": "A937018B9FAF6CC2",
      "name": "DigiCert Global G2 TLS RSA SHA256 2020 CA1"
    }
  },
  "organization": {
    "id": 123456,
    "name": "Example Organization",
    "display_name": "Example Organization"
  },
  "subaccount": {
    "account_id": 2345678,
    "account_type": "enterprise",
    "organization_name": "Example account"
  },
  "product": {
    "name_id": "ssl_basic",
    "name": "Basic OV",
    "type": "ssl_certificate"
  },
  "order_price": {
    "cost": 358,
    "currency": "USD"
  },
  "status": "issued",
  "date_created": "2020-10-14T15:18:50+00:00",
  "date_issued": "2020-10-14T15:18:52+00:00",
  "is_multi_year_plan": "1",
  "order_valid_from": "2020-10-14",
  "order_valid_till": "2021-10-19",
  "validity_years": 1
  "cs_provisioning_method": "email"
}
{
  "id": 123456,
  "subaccount": {
    "account_id": 123445,
    "account_type": "enterprise",
    "organization_name": "Sub account organization"
  },
  "product": {
    "name_id": "ssl_plus",
    "name": "Standard SSL",
    "type": "ssl_certificate"
  },
  "order_price": {
    "cost": 198,
    "currency": "USD"
  },
  "status": "pending",
  "number_of_sans": 1,
  "date_created": "2019-05-07T09:33:08+00:00",
  "validity_years": 1
}

URL query parameters

NameTypeDescription
include_validation_statusbooleanIf true, the response includes a subaccount_order_validations object with details about the status of domain and organization validations for the order. If false (default), the response omits the subaccount_order_validations object.
include_cs_provisioning_methodbooleanIf true, the response includes a cs_provisioning_method parameter that indicates the provisioning method used for the certificate. See Glossary – CS provisioning methods.
Example cURL request

Response parameters

NameTypeDescription
idintOrder ID.
certificateobjectDetails about the certificate ordered. Only returned for orders placed by immediate subaccounts.
.. idintCertificate ID.
.. thumbprintstringThumbprint of the certificate. Only returned if certificate status is issued.
.. serial_numberstringSerial number of the certificate. Only returned if certificate status is issued.
.. common_namestringName secured by the certificate.
.. dns_namesarrayList of additional names secured by the certificate.
.. valid_tillstringDate when certificate validity ends. Only returned if certificate status is issued.
Format:
yyyy-MM-dd
.. organization_unitsarrayList of organization units on the certificate.
.. signature_hashstringSigning algorithm used by the certificate.
.. ca_certobjectDetails about the issuing CA certificate for the primary certificate on the order.
.. .. idstringIssuing CA certificate ID.
.. .. namestringIssuing CA certificate name.
organizationobjectDetails about the organization associated with the order. Only returned for orders placed by immediate subaccounts.
.. idintOrganization ID.
.. namestringLegal name of the organization.
.. assumed_namestringPublic name of the organization. Also called DBA name.
.. display_namestringFull name of the organization. Constructed using name + assumed_name.
subaccountobjectDetails about the subaccount that ordered the certificate.
.. account_idintSubaccount ID.
.. account_typestringSubaccount type.
.. organization_namestringPrimary organization of the subaccount.
productobjectDetails about the ordered product.
.. name_idstringName ID of the product. See Glossary – Product identifiers.
.. namestringDisplay name of the product. See Glossary – Product identifiers
.. typestringProduct type. See Glossary – Product types.
order_priceobjectDetails about the order price.
.. costintTotal order cost.
.. currencystringCurrency unit.
Possible values:
USD
statusstringStatus of the order. See Glossary – Order status.
number_of_sansintNumber of domains in the dns_names array.
date_createdstringOrder creation date.
Format: UTC timezone and ISO 8601 date. YYYY-MM-DDThh:mm:ssTZD
date_issuedstringDate when the certificate was issued. Only returned for issued certificate orders.
Format: UTC timezone and ISO 8601 date. YYYY-MM-DDThh:mm:ssTZD
is_multi_year_planstringReturns "1" if the order is a Multi-year Plan.
Only returned if the order is a Multi-year Plan.
order_valid_fromstringStart date of the order validity period.
Format:YYYY-MM-DD
Only returned for issued certificate orders.
order_valid_tillstringExpiration date of the order.
Format: YYYY-MM-DDOnly returned for issued certificate orders.
validity_yearsintNumber of years the certificate will be valid.
order_pricesarray of objectsIf the subaccount reissues a certificate on the order and the parent account is using a different currency than when the original order was placed, this endpoint returns an order_prices array. Each item in the order_prices array represents the total cost of reissues requested for the order in the given currency.
When the subaccount reissues a certificate and the parent account is using the same currency as the when the original order was placed, the extra cost of the reissued certificate is added to the cost value in the order_price object.
.. costnumberTotal cost of reissues requested in the corresponding currency.
.. currencystringCurrency unit for the corresponding cost value.
subaccount_order_validationsobjectObject with domain and organization validation details for the order. Only returned if the request URL contains include_validation_status=true.
.. order_name_scopestringDomain validation scope for the order. Domain validation scope determines the specific domains that you must validate before DigiCert can issue your certificate.
Possible values:
.. order_dcv_methodstringDomain control validation (DCV) method for the order.
.. organization_validationsarray of objectsList of objects with details about organization validations that must be complete before DigiCert can issue the certificate.
Note: The organization_validations array is not returned for DV certificate orders.
.. .. typestringValidation type ID. See Glossary – Validation types.
.. .. namestringFriendly name of the validation type.
.. .. descriptionstringDescription of the validation type.
.. .. date_createdstringTimestamp when validation was completed. UTC timezone and ISO 8601 date.
.. .. validated_untilstringTimestamp when validation will expire. UTC timezone and ISO 8601 date.
.. .. statusstringValidation status.
Possible values:pending, active
.. .. verified_contactsarray of objectsList of objects with details about verified contacts for the organization.
.. .. user_idstringContact user ID. Returns "0" if the verified contact is not a user in your CertCentral account.
.. .. namestringContact name.
.. .. first_namestringContact first name.
.. .. last_namestringContact last name.
.. .. job_titlestringContact job title.
.. .. telephonestringContact telephone number.
.. .. emailstringContact email address.
.. .. statusstringContact approval status.
Possible values:pending, active
.. .. verification_detailsobjectObject containing the status of each component involved in verifying your certificate request.
.. .. .. organization_typestringStatus of verification of organization type. Only returned for OV certificate orders.
Possible values:pending, complete
.. .. .. organization_statusstringStatus of verification that the business is still active. Returned for OV, code signing, and doc signing certificate orders.
Possible values:pending, complete
.. .. .. address_verificationstringStatus of verification of the legal physical address for the organization. Returned for OV, code signing, and doc signing certificate orders.
.. .. .. blacklist_fraudstringStatus of verification that the organization doesn’t appear on “do not issue” lists or “bad actor” lists. Returned for EV, OV, doc signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. blacklist_fraud_malwarestringStatus of verification that the organization is not a known malware signer. Returned for code signing and EV code signing certificate orders.
Possible values:pending, complete
.. .. .. request_authenticitystringStatus of verification that the certificate requestor has authority to order a certificate for the organization. Only returned for OV certificate orders.
Possible values:pending, complete
.. .. .. operational_existencestringStatus of verification that the organization exists and is operational. Returned for EV, EV code signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. place_of_business_verificationstringStatus of verification of the organization’s place of business. Returned for EV, EV code signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. phone_number_verificationstringStatus of verification that the phone number given is valid and tied to the organization. Returned for EV, code signing, EV code signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. approver_verificationstringStatus of verification that the approver is valid for this organization. Returned for EV, code signing, EV code signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. approver_blackliststringStatus of verification that the approver doesn’t appear on “do not issue” or “bad actor” lists. Returned for EV, code signing, EV code signing, and VMC certificate orders.
Possible values:pending, complete
.. .. .. logo_trademarkstringStatus of verification that the logo is a registered trademark for the organization on the order. Only returned for VMC certificate orders.
Possible values:pending, complete
.. dns_name_validationsarray of objectsList of objects with validation details for each domain on the order. Returned for EV, OV, DV, and VMC certificate orders.
.. .. statusValidation status.
Possible values:approved, unapproved
.. .. methodDCV method for the domain. Only returned if the validation status for the domain is unapproved.
Note: For OV and EV orders, this parameter is omitted unless the order specifies a domain-level DCV method for the domain. For domains without a method, validate the domain using the DCV method set for the order (order_dcv_method).
.. .. name_scopeDomain you must validate to prove you control the domain on the order. Only returned if the validation status for the domain is unapproved.
The name_scope value is useful when you need to validate a domain on the order by completing a DCV check for either the base domain or for a subdomain between the FQDN and base domain.
Note: For OV and EV orders, this parameter is omitted unless the order specifies a domain-level validation scope for the domain. For domains without a name_scope, validate the domain using the validation scope set for the order (order_name_scope).
.. .. dns_namesList containing the SAN from the certificate order associated with the validation details in the dns_name_validations object.
.. base_domainBase domain of the hostname in the dns_names array.
cs_provisioning_methodstringReturns the provisioning method for the certificate. See Glossary – CS provisioning methods.