订单报告

GET
https://www.digicert.com/services/v2/report/order

使用此端点获取所有证书订单的 CSV。

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/report/order?limit=3' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

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

querystring = {"limit":"3"}

payload = ""
headers = {'X-DC-DEVKEY': '{{api_key}}'}

response = requests.request("GET", url, data=payload, headers=headers, params=querystring)

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/report/order?limit=3"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/report/order',
  qs: { limit: '3' },
  headers: { 'X-DC-DEVKEY': '{{api_key}}' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
200 OK
order_id,customer_order_id,date_created,container_id,container_name,status,user_id,organization_id,organization_name,organization_address_1,organization_address_2,organization_city,organization_state,organization_country,organization_unit,tech_first_name,tech_last_name,tech_email,tech_title,tech_telephone,server_type,issuing_ca,agreement_id,validity_years,signature_hash,dcv_method,common_name,plus_feature,dns_names,product_id,product_name_id,product_name,product_type,email,csr,valid_from,valid_till,certificate_tracker_id,is_renewed,renewed_order_id,receipt_id,disable_issuance_email,pay_type,is_out_of_contract,disable_renewal_notifications,additional_emails,auto_renew,custom_renewal_message,thumbprint,serial_number,account_id,user_first_name,user_last_name,user_email,user_assignments,cost,metadata,has_duplicates
"123456","","2018-10-26 10:15:33","112233","Will Smith","issued","123123","221133","Real Organization","123 Fake Street","","Lehi","Utah","us","IT department","Will","Smith","will.smith@example.com","Fresh Prince","8015555555","2","DigiCert Global Root CA","41","2","sha256","","example.com","1","example.com","1","ssl_plus","Standard SSL","ssl_certificate","","-----BEGIN CERTIFICATE REQUEST-----
...
-----END CERTIFICATE REQUEST-----
","2018-10-26","2020-10-30","111113","1","0","54323","0","A","1","0","","0","","123ABC","123ABC","4567890","Will","Smith","will.smith@example.com","123123","","","0"
"123455","","2018-11-16 13:14:26","112233","Will Smith","issued","123123","221133","Real Organization","123 Fake Street","","Lehi","Utah","us","Finance","Will","Smith","will.smith@example.com","Fresh Prince","8015555555","2","DigiCert Global Root CA","41","2","sha256","","example.org","1","example.org","1","ssl_plus","Standard SSL","ssl_certificate","","-----BEGIN CERTIFICATE REQUEST-----
...
-----END CERTIFICATE REQUEST-----
","2018-11-16","2020-11-20","111112","1","0","54322","0","A","1","1","","0","","123ABC","123ABC","4567890","Will","Smith","will.smith@example.com","123123","","","0"
"123454","","2018-11-16 13:19:16","112233","Will Smith","issued","257107","221133","Real Organization","123 Fake Street","","Lehi","Utah","us","Sales","Will","Smith","will.smith@example.com","Fresh Prince","8015555555","2","DigiCert Global Root CA","41","2","sha256","","*.example.org","1","*.example.org","2","ssl_wildcard","WildCard","ssl_certificate","","-----BEGIN CERTIFICATE REQUEST-----
...
-----END CERTIFICATE REQUEST-----
","2018-11-16","2020-11-20","111111","1","0","54321","0","A","1","0","","0","","123ABC","123ABC","4567890","Will","Smith","will.smith@example.com","123123","","","1"

URL 查询字符串

名称 请求/选项 类型 描述
limit 可选 int 将列表截断到指定的分页页码。
最大值:1000
offset 可选 int 在特定分页页码开始列表。
默认值:0

响应 CSV 列

所有列参数值均使用双引号 (") 包围。

名称 描述
order_id 订单编号。
customer_order_id 自定义订单 ID。
date_created 下达订单的日期。
格式:yyyy-MM-dd HH:mm:ss
container_id 订单的容器 ID。
container_name 订单的容器名称。
状态 订单状态。
请参阅词汇表 - 订单状态
user_id 下达订单的用户的 ID。
organization_id 与订单关联的组织 ID。
organization_name 组织名称。
organization_address_1 组织地址。
organization_address_2
organization_city 组织所在的城市。
organization_state 组织所在的州。
organization_country 组织所在的国家/地区。
organization_unit 证书上的组织单位。
tech_first_name 技术联系人名字。
tech_last_name 技术联系人姓氏。
tech_email 技术联系人电子邮件地址。
tech_title 技术联系人职位名称。
tech_telephone 技术联系人电话号码。
server_type 服务器平台 ID。
请参阅词汇表 - 服务器平台
issuing_ca 证书颁发机构。
agreement_id CSA 同意的 ID。
validity_years 证书的有效年限。
signature_hash 用于给证书请求签名的签名哈希。
dcv_method 为域配置的域控制验证。
请参阅词汇表 - DCV 方法
common_name 证书保护的名称。
plus_feature 指定是否对订单启用 Plus 功能。
可能的值:0(禁用),1(启用)
dns_names 证书保护的其他名称的列表。
number_of_sans 证书保护的 SAN 的数量
server_licenses 证书包含的服务器许可证的数量
product_id 产品的 ID。
product_name_id 产品的名称 ID。
请参阅词汇表 - 产品标识符
product_name 显示产品名称。
请参阅词汇表 - 产品标识符
product_type 产品类型。
请参阅词汇表 - 产品类型
电子邮件 证书上的电子邮件地址(如适用)。
CSR 证书签名请求 (CSR)。
valid_from 证书有效期开始日期。
格式:yyyy-MM-dd
valid_till 证书有效期结束日期。
格式:yyyy-MM-dd
certificate_tracker_id 证书编号。
is_renewed 指定订单是否已续订。
可能的值:0 (false),1 (true)
renewed_order_id 上一个订单的订单编号。
仅当订单为续订订单时返回。
receipt_id 接收人编号。
disable_issuance_email 指定是否发送颁发电子邮件。
可能的值:0 (false),1 (true)
pay_type 订单使用的付款方式。
可能的值:A(帐户余额),C(信用卡),U(单位)
is_out_of_contract 订单的合同状态。
可能的值:0 (false),1 (true)
disable_renewal_notifications 指定是否启用续订通知。
可能的值:0 (false),1 (true)
additional_emails 订单上的其他电子邮件地址。
auto_renew 指定证书是否应自动续订。
可能的值:0(禁用),1(启用)
custom_renewal_message 包括在续订通知中的自定义消息。
拇指指纹 证书拇指指纹。
serial_number 证书序列号。
account_id 与订单关联的帐户 ID。
user_first_name 请求证书的用户的名字。
user_last_name 请求证书的用户的姓氏。
user_email 请求证书的用户的电子邮件地址。
user_assignments 分配给订单的用户的 ID。
费用 订单费用。
可能的值:基于美元,基于单位
元数据 自定义字段详细信息。
格式:{{metadata_id}}{{metadata_label}}{{metadata_value}}
数据分隔符:0x1f
has_duplicates 指定证书是否有副本。
可能的值:0 (false),1 (true)