使用此端點啟用或停用訂單的續訂通知。
若要查看是否已啟用或停用訂單的續訂通知,請查看訂單資訊端點的回應資料中的 disable_renewal_notifications
屬性。
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'
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'))
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))
}
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);
});
// No Content
名稱 | 必填/選填 | 說明 |
---|---|---|
order_id | 必填 | 更新續訂通知設定所針對的訂單的 ID。 |
狀態 | 必填 |
使用於訂單的續訂通知設定的狀態。 允許的值:
|