Skip to content

卡頭持卡人要求 ​

返回單個卡頭對持卡人的要求:該卡頭能否使用持卡人、在其上開卡是否必須使用持卡人、持卡人是否須先通過身份驗證、審核需要哪些資料、發卡方對該卡頭的完整規則(可接受的證件類型、年齡範圍、國家 / 區號名單、欄位格式、地址證明時效與條件要求)、哪些資料模組必須填寫,以及每位持卡人可持有的卡數。v1.6.8 起所有要求都來自發卡方對該卡頭的要求 —— 平台不另加任何規則。

端點 ​

項值
MethodPOST
Path/api/v1/openapi/cardholder/requirement
鑑權HMAC
冪等鍵不需要

請求欄位 ​

欄位型別必填說明
header_idstring✅來自 /card_headers/list 的 hdr_<id>
cardholder_idstring選填,chd_<id>。傳入時依該持卡人已儲存的資料評估 rules.conditionals[] 的 applies(未傳則為 null),sections[] 也會計入對該持卡人成立的條件要求
json
{ "header_id": "hdr_5" }

查看某位持卡人還缺什麼:

json
{ "header_id": "hdr_5", "cardholder_id": "chd_12" }

響應欄位 ​

欄位型別說明
header_idstring回顯的 hdr_<id>
card_binstring卡頭的 BIN(與 /card_headers/list 的 card_bin 相同)
card_typestring小寫卡型別,如 virtual_g
supportedbool該卡頭能否使用持卡人:virtual_v / virtual_r / virtual_g / virtual_a / virtual_s921 為 true;virtual_l / virtual_p 卡頭為 false —— 此時下面其餘欄位都為空 / false
requiredbool在該卡頭開卡必須使用已審核通過的持卡人 —— 與 /card_headers/list 的 cardholder_required 取值相同。v1.6.8 起 supported=true 時恆為 true(requirement_available=false 時也是),與 registration_required 無關;supported=false 時為 false
registration_requiredbool發卡方對該卡頭的 registration_required 原值,僅供參考 —— v1.6.8 起不再決定是否必須使用持卡人(看 required)。發卡方要求未同步或暫不可用時為 false
kyc_requiredbool持卡人須先通過該卡頭要求的身份驗證:以本 header_id 發起驗證,通過後再提交審核。見身份驗證
requirement_availablebool發卡方目前能否給出該卡頭的要求。為 false 時,對該卡頭的提交審核與開卡都會被拒,直至恢復 —— 請稍後重試
required_kyc_levelstring已廢棄 —— 為相容保留,恆為 ""。請改用 kyc_required
kyc_levelstring已廢棄 —— 為相容保留,恆為 ""
required_fieldsarray以樹形表示的 required_field_paths —— 見 required_fields[]
required_field_pathsstring[]必須提供的欄位路徑 —— 只有發卡方對該卡頭的必填欄位(rules.required_fields),不含身份驗證時採集的 residential_address.* 路徑;identity 這類物件路徑會加在其下欄位之前。平台不另加任何路徑(v1.6.8 起不再併入帳單地址)。與 /cardholder/check 的 issues[].field / missing_fields 命名相同。只在滿足條件時才必填的路徑見 rules.conditionals。要求未同步或暫不可用時為 []
support_billing_regionstring[]允許的持卡人帳單地址國家(ISO alpha-2)= rules.country_lists.billing_countries;[] = 不限。不適用於不用持卡人開卡時的 billing_address
support_nationalitystring[]允許的國籍 = rules.country_lists.nationalities;[] = 不限
sanctioned_nationalitystring[]不接受的國籍 = rules.country_lists.blocked_nationalities
support_area_codestring[]允許的手機區號(+65 形式)= rules.country_lists.area_codes;[] = 不限
max_cards_per_cardholderint一位持卡人在該卡頭最多可持有的卡數;0 = 不限
rulesobject發卡方對該卡頭的完整要求 —— 見 rules。上面四個扁平名單為相容保留;「白名單出現但為空」只能從 rules.country_lists 判斷
requirement_syncedbool是否已取得發卡方對該卡頭的要求。為 false 時 rules、required_fields、required_field_paths 與 sections[].fields 都為空,但卡頭仍可能有要求 —— 請以 /cardholder/check 為準
synced_atstring | null要求最近一次更新的時間(RFC3339)。呼叫本介面時若要求已超過 10 分鐘,會先向發卡方即時更新
sectionsarray證件資訊、帳單地址、快遞地址三個資料模組在該卡頭是否必須填寫 —— 見 sections[]。supported=false 時為 []

required_fields[] ​

欄位型別說明
namestring欄位名,與登記資料中的欄位同名(如 nationality、identity、front_file_id)
typestring有子欄位時為 object,否則為 string
requiredbool恆為 true(欄位樹只包含 required_field_paths)
fieldsarray子欄位(結構相同);葉子為 []

讀法:

  • 樹中每個節點都必須提供;它就是依物件整理後的 required_field_paths。
  • 樹中只有發卡方對該卡頭要求的內容。發卡方沒有列出的模組(如許多卡頭的 billing_address)對該卡頭不是必填。
  • 只對部分持卡人必填的欄位(如部分國籍須提供地址證明、美國國籍須提供 ssn)不在樹中 —— 見 rules.conditionals。
  • /cardholder/create / /cardholder/update 只要求基本欄位(first_name、last_name、birth_date、email、area_code、mobile_number),其餘資料不全時仍會儲存;提交審核前請用 /cardholder/check 查看缺項。

rules ​

發卡方對該卡頭的要求(以發卡方定義為準)。/cardholder/check、/cardholder/submit 與開卡都依同一套規則判定,issues[].rules 的取值與下列欄位名一一對應。空陣列 / 空物件 / 0 表示「不限」。

欄位型別說明
required_fieldsstring[]發卡方的必填欄位路徑(升冪)。少數路徑(residential_address.*)在身份驗證時採集,你無法填寫 —— 它們不列入 required_field_paths
identity_typesstring[]可接受的 identity.type;[] = 不限
holder_ageobject{ "min": <含>, "max_exclusive": <不含> },按足歲;0 = 該側不限
country_listsobject國家 / 區號名單,鍵為 nationalities / blocked_nationalities / residence_countries / blocked_residence_countries / billing_countries / area_codes / poa_issuing_countries。鍵不出現 = 不限;白名單鍵出現且為 [] = 不允許任何值。 residence_* 針對身份驗證時採集的居住地址
field_constraintsobject欄位路徑 → { "min_length", "max_length", "charset", "format" }。charset:LATIN_NAME 拉丁字母、單字間單個空格 / LATIN_TEXT 拉丁字母、數字、空格及 , . ' / # ( ) - & / LATIN_ALNUM_DASH 拉丁字母、數字、空格及 - / DIGITS 僅數字;format:EMAIL / ISO_DATE / ISO_COUNTRY / E164;0 / "" = 不限
poa_max_age_monthsint地址證明須在提交前 N 個月內出具;0 = 不限
conditionalsarray只在滿足條件時才生效的要求 —— 見 conditionals[]

conditionals[] ​

欄位型別說明
when.fieldstring條件欄位路徑(與資料欄位同名);age = 依 birth_date 計算的足歲
when.opstringin:取值在 values 內(不區分大小寫)/ not_in:已提供且不在 values 內 / lt:小於 number / gte:大於等於 number(lt / gte 只用於 age)。欄位未提供時條件不成立
when.valuesstring[]in / not_in 的取值
when.numberintlt / gte 的比較值
thenobject條件成立時還須滿足的要求 —— 結構同 rules(可再巢狀 conditionals)
appliesbool | null傳了 cardholder_id:該條件對該持卡人已儲存的資料是否成立(上層條件不成立時其下巢狀條件為 false);未傳 cardholder_id 時為 null —— 請依表單目前的值自行判斷

sections[] ​

各資料模組在此卡頭是否必須填寫 —— 用來決定登記表單的哪些部分必填。固定 3 項,順序為 identity、billing_address、delivery_address。

欄位型別說明
keystringidentity(證件資訊)/ billing_address(帳單地址)/ delivery_address(快遞地址)—— 與 create 資料中的同名物件一致
requiredbooltrue:此卡頭必須填寫該模組 —— 表單中應始終顯示、不提供「不填寫」的選項。false:選填
reasonsstring[]必填的原因;選填時為 []。required_fields:required_field_paths 包含該模組或其下某個欄位 / conditional:傳了 cardholder_id 時,對該持卡人成立的發卡方條件要求要求。v1.6.8 起只有這兩種原因 —— 都來自發卡方的要求。日後可能新增取值 —— 只依 required 判斷,不認得的取值忽略即可
fieldsstring[]該模組下必須提供的欄位路徑:required_field_paths 中屬於本模組的路徑,傳了 cardholder_id 時另含對該持卡人成立的條件要求欄位(如 identity.proof_of_address_file_id)。沒有時為 []。未列出的欄位可以留空

傳入國籍命中下方示例中條件要求(CN / IN / RU 須提供地址證明)的持卡人的 cardholder_id 時:

json
"sections": [
  {
    "key": "identity", "required": true, "reasons": ["required_fields", "conditional"],
    "fields": ["identity.front_file_id", "identity.number", "identity.type", "identity.proof_of_address_file_id", "identity.proof_of_address_issue_date", "identity.proof_of_address_issuing_country"]
  },
  {
    "key": "billing_address", "required": true, "reasons": ["required_fields"],
    "fields": ["billing_address.city", "billing_address.country", "billing_address.line1", "billing_address.postcode", "billing_address.state"]
  },
  { "key": "delivery_address", "required": false, "reasons": [], "fields": [] }
]

sections 只依發卡方的要求推導(required_field_paths,傳了 cardholder_id 時另加對其成立的條件要求),是編排表單最簡單的依據:模組是否必填看 required,模組內哪些欄位必填看 fields。模組以外的頂層欄位(如 nationality、gender)是否必填,看 required_field_paths。選填模組可以不填或只填一部分 —— 登記時不會被拒,最終以 /cardholder/check 為準。

響應示例 ​

json
{
  "code": 0,
  "message": "成功",
  "data": {
    "header_id": "hdr_5",
    "card_bin": "424242",
    "card_type": "virtual_g",
    "supported": true,
    "required": true,
    "registration_required": true,
    "kyc_required": true,
    "requirement_available": true,
    "required_kyc_level": "",
    "kyc_level": "",
    "required_fields": [
      {
        "name": "billing_address",
        "type": "object",
        "required": true,
        "fields": [
          { "name": "city", "type": "string", "required": true, "fields": [] },
          { "name": "country", "type": "string", "required": true, "fields": [] },
          { "name": "line1", "type": "string", "required": true, "fields": [] },
          { "name": "postcode", "type": "string", "required": true, "fields": [] },
          { "name": "state", "type": "string", "required": true, "fields": [] }
        ]
      },
      {
        "name": "identity",
        "type": "object",
        "required": true,
        "fields": [
          { "name": "front_file_id", "type": "string", "required": true, "fields": [] },
          { "name": "number", "type": "string", "required": true, "fields": [] },
          { "name": "type", "type": "string", "required": true, "fields": [] }
        ]
      },
      { "name": "nationality", "type": "string", "required": true, "fields": [] }
    ],
    "required_field_paths": [
      "billing_address", "billing_address.city", "billing_address.country", "billing_address.line1",
      "billing_address.postcode", "billing_address.state",
      "identity", "identity.front_file_id", "identity.number", "identity.type", "nationality"
    ],
    "support_billing_region": [],
    "support_nationality": [],
    "sanctioned_nationality": ["KP"],
    "support_area_code": [],
    "max_cards_per_cardholder": 5,
    "rules": {
      "required_fields": [
        "billing_address.city", "billing_address.country", "billing_address.line1", "billing_address.postcode",
        "billing_address.state", "identity.front_file_id", "identity.number", "identity.type", "nationality"
      ],
      "identity_types": ["ID_CARD", "PASSPORT"],
      "holder_age": { "min": 18, "max_exclusive": 80 },
      "country_lists": { "blocked_nationalities": ["KP"] },
      "field_constraints": {
        "first_name": { "min_length": 2, "max_length": 32, "charset": "LATIN_NAME", "format": "" },
        "billing_address.line1": { "min_length": 0, "max_length": 70, "charset": "LATIN_TEXT", "format": "" }
      },
      "poa_max_age_months": 0,
      "conditionals": [
        {
          "when": { "field": "nationality", "op": "in", "values": ["CN", "IN", "RU"], "number": 0 },
          "then": {
            "required_fields": ["identity.proof_of_address_file_id", "identity.proof_of_address_issue_date", "identity.proof_of_address_issuing_country"],
            "identity_types": [],
            "holder_age": { "min": 0, "max_exclusive": 0 },
            "country_lists": { "poa_issuing_countries": ["SG"] },
            "field_constraints": {},
            "poa_max_age_months": 12,
            "conditionals": []
          },
          "applies": null
        }
      ]
    },
    "requirement_synced": true,
    "synced_at": "2026-10-26T02:00:00Z",
    "sections": [
      {
        "key": "identity", "required": true, "reasons": ["required_fields"],
        "fields": ["identity.front_file_id", "identity.number", "identity.type"]
      },
      {
        "key": "billing_address", "required": true, "reasons": ["required_fields"],
        "fields": ["billing_address.city", "billing_address.country", "billing_address.line1", "billing_address.postcode", "billing_address.state"]
      },
      { "key": "delivery_address", "required": false, "reasons": [], "fields": [] }
    ]
  }
}

上面的欄位樹與發卡方規則僅為示例 —— 其他卡頭可能根本不要求帳單地址;請以你的卡頭實際返回的值為準。

典型錯誤 ​

HTTPcodeerror_key說明
20040001validation_failed請求體無法解析
20040000openapi_invalid_header_idheader_id 缺失或格式錯誤
20040000openapi_invalid_cardholder_idcardholder_id 格式錯誤
40440400cardholder_header_not_found卡頭不存在
40440400cardholder_not_foundcardholder_id 不是你帳號下的持卡人
20050000cardholder_service_not_configured持卡人服務未開通 —— 請聯絡我們
40140100openapi_invalid_credentials鑑權失敗
42942900too_many_requests觸發限流,依 Retry-After 重試
20050000openapi_cardholder_failed服務端異常

注意事項 ​

  • 這些要求描述的是審核需要什麼。某位持卡人是否滿足,由 /cardholder/check 逐卡頭回答 —— 請以它為準。
  • 在某卡型別審核通過的持卡人,可用於該型別下所有其送審資料能涵蓋要求的卡頭;需要更多資料的卡頭在 check 時返回 review_status=COVERAGE_INSUFFICIENT。
  • v1.6.8 起平台不另加任何要求:原有的 holder_rules、required_when_provided、billing_address_random_available 與 sections[].back_file_required_id_types 已移除,平台自有的居住國家名單也一併移除。字元集、最小長度、年齡、是否需要證件資訊 / 地址,以及國家 / 居住國限制,全部來自 rules(如 field_constraints、holder_age、country_lists.blocked_residence_countries),以及發卡方在預檢 / 提交審核 / 開卡時報出的問題。
  • 卡頭要求來自發卡方的「查詢卡頭要求」:平台定期更新全部卡頭,並在呼叫本介面時對已超過 10 分鐘的卡頭即時更新(synced_at 為最近一次更新時間)。請在登記 / 編輯頁面開啟時重新取得,不要長期快取。

採用 MIT 等價條款釋出