--- title: "Expiring orders and certificates" source_url: https://dev.digicert.com/certcentral-apis/services-api/reports/expiring-orders-and-certificates.html api_method: GET api_endpoint: "/services/v2/report/order/expiring" api_url: "https://www.digicert.com/services/v2/report/order/expiring" --- **GET** `https://www.digicert.com/services/v2/report/order/expiring` Use this endpoint to get the number of orders and certificates in your account that: - Expire within 0-30, 30-60, and 60-90 days of now. - Expired within the last 7 days. By default, this endpoint only returns the expiring orders count. To include the expiring certificates count in the results, append the query parameter `include_expiring_certs=true` to your request URL. This option is useful when you need to retrieve the total number of expiring certificates in your account, including certificates that expire more than 90 days before the order (for example, if the order is for a Multi-year Plan). ```console https://www.digicert.com/services/v2/report/order/expiring?include_expiring_certs=true ``` ## Expiration timeframes This endpoint returns the number of orders or certificates expiring in a given timeframe (`days_expiring`) from the time you submit the request.
| days_expiring | Days until expiration |
|---|---|
| 90 | Between 60 (inclusive) and 90 (inclusive) |
| 60 | Between 30 (inclusive) and 60 (exclusive) |
| 30 | Between now (exclusive) and 30 (exclusive) |
| -7 | Between now (inclusive) and 7 days ago (inclusive) |
| Name | Req/Opt | Type | Description |
|---|---|---|---|
| container_id | optional | number | Limit results to a specific container. |
| include_expiring_certs | optional | boolean | If true, results include the expiring certificates count in addition to the expiring orders count. Additionally, in expiring_orders objects, the name of the order_count field becomes count, instead.If false (default), results only include the expiring orders count. |
| Name | Type | Description |
|---|---|---|
| expiring_orders | array of objects | List of objects with the number of orders in each days_expiring category. |
| .. days_expiring | number | Number of days until expiration. Possible values: See Expiration timeframes. |
| .. order_count/count Note: If include_expiring_certs is true, returns as count instead of order_count. |
number | Number of orders expiring in the given timeframe. Does not include orders that have been renewed. |
| expiring_certs | array of objects | List of objects with the number of certificates in each days_expiring category. Only returned if include_expiring_certs is true. |
| .. days_expiring | number | Number of days until expiration. Possible values: See Expiration timeframes. |
| .. count | number | Number of certificates expiring in the given timeframe. |