持卡人詳情
返回單個持卡人的資料、證件影像、逐卡型別的審核狀態(bindings)與身份驗證狀態(kyc)。本頁同時定義所有持卡人介面返回的 持卡人物件。
端點
| 項 | 值 |
|---|---|
| Method | POST |
| Path | /api/v1/openapi/cardholder/detail |
| 鑑權 | HMAC |
| 冪等鍵 | 不需要 |
請求欄位
| 欄位 | 型別 | 必填 | 說明 |
|---|---|---|---|
cardholder_id | string | ✅ | chd_<id> |
refresh | bool | 否 | 預設 false(返回已儲存的狀態)。true:先拉取最新的審核 / 驗證狀態。同一持卡人每 30 秒最多重新整理一次 —— 在此時間窗內以及草稿,直接返回已儲存的狀態,不報錯。重新整理本身失敗時,同樣返回已儲存的狀態 |
請求示例
json
{ "cardholder_id": "chd_1024", "refresh": true }持卡人物件
| 欄位 | 型別 | 說明 |
|---|---|---|
cardholder_id | string | chd_<id> |
external_id | string | 你在 create 時傳入的自有持卡人編號(未傳為空字串) |
registration_status | int | 0 草稿(登記未完成)/ 1 已登記 —— 見登記狀態 |
last_error_key | string | 最近一次登記 / 修改失敗的 error_key;成功後為空字串 |
last_error_message | string | last_error_key 依 Accept-Language 在地化後的文案;last_error_key 為空時為空 |
first_name / last_name | string | 姓名(登記後固定) |
full_name | string | first_name + 空格 + last_name —— 用此持卡人開出的卡上使用的姓名 |
birth_date | string | YYYY-MM-DD |
gender | int | 0 未提供 / 1 男 / 2 女 |
nationality | string | ISO 3166-1 alpha-2,未提供為空 |
email | string | 聯絡郵箱 |
mobile_country | string | 手機號所屬國家的 ISO 3166-1 alpha-2,未提供為空 |
area_code | string | 帶 + 的手機區號,如 +65 |
mobile_number | string | 不含區號的手機號 |
ssn_provided | bool | 是否已提供 SSN(SSN 本身從不返回) |
identity | object | null | 證件 —— 見證件;未提供任何證件資訊時為 null |
billing_address | object | null | 地址物件;未提供時為 null |
delivery_address | object | null | 地址物件;未提供時為 null |
kyc | object | 目前身份驗證狀態 —— 見 kyc |
kyc_levels | array | 已廢棄 —— 為相容保留,恆為空陣列。請改用 kyc |
bindings | array | 逐組卡型別的審核狀態 —— 見 bindings[];首次提交前為空陣列 |
proof_of_address_status | object | null | 審核所用的地址證明是否已在案 —— 見 proof_of_address_status;未知時為 null |
card_count | int | 用此持卡人開出的卡數,不含開卡失敗(status=3)的卡。處理中 / 正常 / 凍結 / 註銷中 / 已註銷都計入——它們在發卡方真實存在過、佔用過持卡人開卡額度;被拒的申請從未存在 |
manual_review_status | int | 平台人工審核(v1.6.10 起):0 無需審核 / 1 待審核 / 2 審核通過 / 3 審核拒絕。1、3 時不能用此持卡人開卡(/card/apply 返回 cardholder_manual_review_pending / cardholder_manual_review_rejected)。只在平台把 AI 審核不通過設為「轉平台人工審核」時出現 1–3 |
manual_review_status_text | string | manual_review_status 的在地化文案 |
registered_at | string | null | 登記完成時間(RFC3339);草稿為 null |
status_synced_at | string | null | 平台上審核 / 驗證狀態最近一次更新的時間(RFC3339);首次狀態更新前為 null |
created_at / updated_at | string | RFC3339 |
證件
| 欄位 | 型別 | 說明 |
|---|---|---|
type | string | ID_CARD / PASSPORT / HK_HKID / DLN / RESIDENCE_PERMIT |
number_masked | string | 脫敏證件號碼:保留前 2 位與後 2 位,其餘以 * 代替(不足 6 個字元時只保留最後 1 位) |
issue_country | string | ISO 3166-1 alpha-2 |
issue_date / expiry_date | string | YYYY-MM-DD,未提供為空 |
front_file / back_file / hand_file | object | null | 證件正面 / 背面 / 手持證件影像的影像物件;未提供為 null |
proof_of_address | object | null | { "file": <影像物件或 null>, "issue_date": "YYYY-MM-DD", "issuing_country": "SG" };未提供地址證明時為 null |
影像物件
只有中繼資料 —— 從不返回檔案內容。
| 欄位 | 型別 | 說明 |
|---|---|---|
file_id | string | chf_<id> |
purpose | string | identity_front / identity_back / identity_hand / proof_of_address |
content_type | string | image/jpeg / image/png / application/pdf |
size | int | 位元組數 |
expires_at | string | null | 未被引用的上傳檔案可使用到何時(RFC3339)。referenced=true 後不再相關 |
referenced | bool | 是否已被持卡人引用 |
ai_check_status | string | 上傳時的 AI 審核狀態:passed / review_required / not_checked |
created_at | string | RFC3339 |
地址物件
| 欄位 | 型別 | 說明 |
|---|---|---|
country | string | ISO 3166-1 alpha-2 |
state | string | 州 / 省 |
city | string | 城市 |
district | string | 區(可為空) |
line1 | string | 地址第一行 |
line2 | string | 地址第二行(可為空) |
postcode | string | 郵遞區號 |
kyc
每位持卡人只有一份驗證記錄,同一時間只進行一項驗證:kyc 反映進行中的驗證,沒有進行中的驗證時反映最近一次結論。某個卡頭要求的驗證是否已滿足,以 /cardholder/check 為準(未滿足時 issues 含 KYC_REQUIRED)—— 不要只憑 kyc.status 判斷。
| 欄位 | 型別 | 說明 |
|---|---|---|
status | string | NOT_STARTED 未發起 / IN_PROGRESS 進行中 / APPROVED 通過 / REJECTED 拒絕 / CANCELLED 已取消(72 小時內未完成也會變為已取消) |
retry_allowed | bool | 僅 REJECTED 時有意義:能否再次發起;其他情況為 false |
retry_remaining | int | 僅 REJECTED 時有意義:剩餘次數;其他情況為 0 |
updated_at | string | 驗證狀態最近變化時間(帶時區偏移的 RFC3339);NOT_STARTED 時為空 |
kyc_levels 已廢棄
身份驗證不再按級別區分。kyc_levels 保留只為讓既有對接照常解析,恆為 []。
bindings[]
| 欄位 | 型別 | 說明 |
|---|---|---|
card_type_codes | string[] | 本次審核涵蓋的小寫卡型別(如 ["virtual_g", "physical_g"]);可能包含無法透過 OpenAPI 申請的卡型別 |
status | int | 1 提交中 / 2 審核中 / 3 通過 / 4 失敗 |
failure_reason | string | status=4 時的穩定代碼(見逐卡型別的審核狀態);其他情況為空字串 |
reviewed_at | string | 審核完成時間(帶時區偏移的 RFC3339);審核未完成時為空字串 |
requires_resubmission | bool | 送審資料在此次審核後已變更 —— 請重新提交 |
terminal | bool | true:審核方終審拒絕 —— 這些卡型別不能再提交審核(請改用其他卡型別) |
proof_of_address_status
| 欄位 | 型別 | 說明 |
|---|---|---|
provided | bool | 地址證明已在案。不代表其內容已審核通過 |
issue_date | string | YYYY-MM-DD |
issuing_country | string | ISO 3166-1 alpha-2 |
響應示例
json
{
"code": 0,
"message": "成功",
"data": {
"cardholder_id": "chd_1024",
"external_id": "cust-0001",
"registration_status": 1,
"last_error_key": "",
"last_error_message": "",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"birth_date": "1990-05-20",
"gender": 1,
"nationality": "SG",
"email": "[email protected]",
"mobile_country": "SG",
"area_code": "+65",
"mobile_number": "81234567",
"ssn_provided": false,
"identity": {
"type": "PASSPORT",
"number_masked": "E1*****78",
"issue_country": "SG",
"issue_date": "2020-01-15",
"expiry_date": "2030-01-14",
"front_file": {
"file_id": "chf_301",
"purpose": "identity_front",
"content_type": "image/jpeg",
"size": 482113,
"expires_at": "2026-11-25T08:00:00Z",
"referenced": true,
"created_at": "2026-10-26T08:00:00Z"
},
"back_file": null,
"hand_file": null,
"proof_of_address": null
},
"billing_address": {
"country": "SG",
"state": "Singapore",
"city": "Singapore",
"district": "",
"line1": "1 Raffles Place",
"line2": "#20-01",
"postcode": "048616"
},
"delivery_address": null,
"kyc": { "status": "APPROVED", "retry_allowed": false, "retry_remaining": 0, "updated_at": "2026-10-26T17:05:10+08:00" },
"kyc_levels": [],
"bindings": [
{
"card_type_codes": ["virtual_g", "physical_g"],
"status": 3,
"failure_reason": "",
"reviewed_at": "2026-10-26T18:30:00+08:00",
"requires_resubmission": false,
"terminal": false
}
],
"proof_of_address_status": { "provided": false, "issue_date": "", "issuing_country": "" },
"card_count": 2,
"registered_at": "2026-10-26T08:01:12Z",
"status_synced_at": "2026-10-26T10:30:05Z",
"created_at": "2026-10-26T08:01:10Z",
"updated_at": "2026-10-26T10:30:05Z"
}
}典型錯誤
| HTTP | code | error_key | 說明 |
|---|---|---|---|
| 200 | 40001 | validation_failed | 請求體無法解析 |
| 200 | 40000 | openapi_invalid_cardholder_id | cardholder_id 缺失或格式錯誤(應為 chd_ 加數字) |
| 404 | 40400 | cardholder_not_found | 你的帳號下不存在該持卡人(或不是透過 OpenAPI 登記的) |
| 200 | 50000 | cardholder_service_not_configured | 平台未開通持卡人服務 —— 請聯絡我們 |
| 401 | 40100 | openapi_invalid_credentials | 鑑權失敗 |
| 429 | 42900 | too_many_requests | 觸發限流,依 Retry-After 重試 |
| 200 | 50000 | openapi_cardholder_failed | 服務端異常 —— 稍後重試 |
注意事項
- 優先使用
cardholder.status_changedwebhook,而不是輪詢;需要在採取動作前確認狀態時(例如呼叫/card/apply之前)再用refresh=true。 - 不含時間的日期(
birth_date、issue_date…)是純YYYY-MM-DD字串;kyc.updated_at/reviewed_at保留記錄時的時區偏移。