List orders

GET https://www.digicert.com/services/v2/order/certificate
Use this endpoint to list all certificate orders.

Example requests and responses

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

url = "https://www.digicert.com/services/v2/order/certificate"

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/order/certificate"

	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/order/certificate',
  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

{
  "orders": [
    {
      "id": 123456,
      "certificate": {
        "id": 104,
        "common_name": "example.com",
        "dns_names": [
          "example2.com",
          "example3.com"
        ],
        "signature_hash": "sha256"
      },
      "status": "pending",
      "is_renewed": false,
      "date_created": "2018-10-16T17:29:56+00:00",
      "organization": {
        "id": 112233,
        "name": "Epigyne Unwieldiness llc"
      },
      "validity_years": 1,
      "disable_renewal_notifications": false,
      "container": {
        "id": 14,
        "name": "DigiCert Inc."
      },
      "product": {
        "name_id": "ssl_plus",
        "name": "Standard SSL",
        "type": "ssl_certificate"
      },
      "has_duplicates": false,
      "product_name_id": "ssl_plus"
    },
    {
      "id": 123457,
      "certificate": {
        "id": 105,
        "common_name": "example.org",
        "dns_names": [
          "sub.example.org"
        ],
        "valid_till": "2020-04-30",
        "days_remaining": 289,
        "signature_hash": "sha256"
      },
      "status": "issued",
      "is_renewed": false,
      "date_created": "2019-04-30T18:02:50+00:00",
      "organization": [],
      "validity_years": 1,
      "container": {
        "id": 14,
        "name": "CertCentral"
      },
      "product": {
        "name_id": "ssl_dv_geotrust",
        "name": "GeoTrust Standard DV",
        "type": "dv_ssl_certificate"
      },
      "has_duplicates": false,
      "product_name_id": "ssl_dv_geotrust"
    },
    ...
  ],
  "page": {
    "total": 31,
    "limit": 0,
    "offset": 0
  }
}

Filters and URL query parameters

This endpoint supports filters, sorting, and pagination. For general information and examples of the syntax to use when applying filters and sorting results, see Services API - Filters, sorting, and pagination parameters.

NameReq/OptTypeDescription
filters[{{property_name}}]optionalstringFilters results by the specified property. Replace {{property_name}} in your request with the property to use for filtering. This endpoint supports filtering by the following properties:
filters[search]optionalstringLimits response to results where the value of the email or common_name property matches or contains a specific string of characters. To search for values that contain a specific string of characters, prefix the string with a URL-encoded (percent-encoded) % character: %25. To search for values that are an exact match for a string of characters, omit the %25 from the request.
Examples:
sortoptionalstringSorts results by the value of one or more properties.
By default, sorts results in ascending alphabetical order (0-9, A-Z). To sort in descending alphabetical order (9-0, Z-A), prefix the property name with a minus (-).
To sort by multiple properties, separate the name of each property with a comma. Sort hierarchy matches the order of properties in this list.
This endpoint supports sorting by the following properties:
offsetoptionalintIndex of the first result to include in the response.
Default:0
limitoptionalintTotal number of results to include in the response.
Max: 1000 (default)

Response parameters

NameTypeDescription
ordersarrayList of orders returned by the request.
.. idintOrder ID.
.. certificateobjectDetails about the certificate ordered.
.. .. idintCertificate ID.
.. .. common_namestringName secured by the certificate.
.. .. dns_namesarrayList of additional names secured by the certificate.
.. .. valid_tillstringExpiration date of the certificate.
Format:
yyyy-MM-dd
.. .. days_remainingintNumber of days until certificate expires.
.. .. signature_hashstringSigning algorithm used by the certificate.
.. statusstringStatus of the order. See Glossary – Order status.
.. is_renewedboolSpecifies if the order has been renewed.
.. date_createdstringOrder creation date.
Format: UTC timezone and ISO 8601 date
.. organizationobjectDetails about the organization associated with the order.
.. .. idintOrganization ID.
.. .. namestringLegal name of the organization.
.. validity_yearsintNumber of years the certificate will be valid.
.. disable_renewal_notificationsboolSpecifies if renewal notifications are enabled.
.. containerobjectDetails about the container associated with the order.
.. .. idintContainer ID.
.. .. namestringName of the container.
.. productobjectDetails about the ordered product.
.. .. name_idstringName ID of the product. See Glossary – Product identifiers.
.. .. namestringDisplay name of the product. SeeGlossary – Product identifiers.
.. .. typestringProduct type. See Glossary – Product types.
.. duplicates_countintNumber of duplicate certificates associated with the order.
.. has_duplicatesboolSpecifies if there are duplicates.
.. reissues_countintNumber of reissued certificates associated with the order.
.. has_reissuesboolSpecifies if there are reissues.
.. product_name_idstringName ID of the product. SeeGlossary – Product identifiers.
pageobjectDetails about results. Modified using URL query strings.