Use this endpoint to get the number certificates expiring in the next 90, 60, and 30 days for your entire account. Certificates that expired in the last 7 days are also returned.
curl -X GET \
https://www.digicert.com/services/v2/report/order/expiring \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/report/order/expiring"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/report/order/expiring"
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/report/order/expiring',
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);
});
{
"expiring_orders": [
{
"days_expiring": 90,
"order_count": 10
},
{
"days_expiring": 60,
"order_count": 13
},
{
"days_expiring": 30,
"order_count": 3
},
{
"days_expiring": -7,
"order_count": 1
}
]
}
Name | Req/Opt | Type | Description |
---|---|---|---|
container_id | optional | int | Limit results to a specific container. |
Name | Type | Description |
---|---|---|
expiring_orders | array | List of expiring orders returned by the request. |
.. days_expiring | int |
Number of days until certificate expiration. Possible values: 90 , 60 , 30 , -7 (certificates expired in the last 7 days)
|
.. order_count | int |
Number of certificates in the days_expiring category.
|