跳至主要內容

證書列表

獲取當前用戶的證書服務列表。

接口地址​

GET /api/v1/certificate/list

請求參數​

參數名類型必填默認值說明
pageinteger否1頁碼
page_sizeinteger否15每頁數量
statusstring否-證書狀態篩選。
可選值:
issuing: 簽發中
issued: 已簽發
expiring: 即將過期(30天內)
expired: 已過期
keywordstring否-搜索關鍵詞(支持訂單號、域名等)。域名支持 punycode 與 Unicode 原文兩種寫法,例如 xn--fiqs8s 與 中國 都能搜到
fieldsarray否-指定返回字段,例如 ['service_id', 'status', 'domain_dcv']
國際化域名(IDN)

搜索可以傳 punycode 也可以傳 Unicode 原文;但返回的 domain_dcv 等域名一律是 punycode,請按 punycode 做匹配。

響應示例​

{
"code": 0,
"message": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 123,
"service_id": "202310270001",
"status": "issued",
"domain_dcv": {
"example.com": "dns"
},
"product_name": "Certum DV SSL",
"period": "1 Year",
"created_at": "2023-10-27 10:00:00",
"cert_expires_at": "2024-10-27 10:00:00",
"service_expires_at": "2024-10-27 10:00:00"
},
{
"id": 123,
"service_id": "202310270001",
"status": "expiring",
"domain_dcv": {
"example.com": "http"
},
"product_name": "Certum DV SSL",
"period": "1 Year",
"created_at": "2023-10-27 10:00:00",
"cert_expires_at": "2024-10-27 10:00:00",
"service_expires_at": "2024-10-27 10:00:00"
}
],
"first_page_url": "https://api.example.com/api/v1/certificate/list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.example.com/api/v1/certificate/list?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.example.com/api/v1/certificate/list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.example.com/api/v1/certificate/list",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}