Update renewal notification settings

PUT
https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}

Use this endpoint to enable or disable renewal notification emails for an order.

To see whether renewal notifications are enabled or disabled for an order, check the status of the disable_renewal_notifications property in the response data for the Order info endpoint.

Example requests and responses

cURL
curl --request PUT 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json'
Python
import requests

url = "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}"

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

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

print(response.text.encode('utf8'))
Go
package main

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

func main() {

		url := "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}"
		method := "PUT"

		payload := strings.NewReader("")

		client := &http.Client {
		}
		req, err := http.NewRequest(method, url, payload)

		if err != nil {
				fmt.Println(err)
		}
		req.Header.Add("X-DC-DEVKEY", {{api_key}})
		req.Header.Add("Content-Type", "application/json")

		res, err := client.Do(req)
		defer res.Body.Close()
		body, err := ioutil.ReadAll(res.Body)

		fmt.Println(string(body))
}
NodeJS
var request = require('request');
var options = {
  'method': 'PUT',
  'url': 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}',
  'headers': {
    'X-DC-DEVKEY': {{api_key}},
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
204 No Content
// No Content

Path parameters

Name Req/Opt Description
order_id required ID of the order to update renewal notification settings for.
status required Status of renewal notification settings for the order.
Allowed values:
  • enable - Enables renewal email notifications for the order.
  • disable - Disables renewal email notifications for the order.