Skip to content

Create Cardholder ​

Registers one of your end customers as a cardholder. The profile is saved first and then registered; on success the cardholder comes back with registration_status=1. If registration fails after the profile was saved, the cardholder stays a draft (registration_status=0) — see Registration Status.

Endpoint ​

ItemValue
MethodPOST
Path/api/v1/openapi/cardholder/create
AuthHMAC
Idempotency KeyRequired via Idempotency-Key header

Request Fields ​

FieldTypeRequiredDescription
external_idstringNoYour own ID for this customer: up to 128 characters, letters, digits and - _ . only (leading / trailing spaces are trimmed). Unique per account — see Idempotent on external_id
legacy_card_idstringNocard_<id> of an existing card whose holder should be reused — take it from /cardholder/legacy_cards. See Reusing the holder of an existing card
…profile fieldsEvery field of the Profile below, at the top level of the body

Profile ​

Leading / trailing spaces are trimmed everywhere; repeated spaces inside names and address parts are collapsed. Country codes, ID type and postcode are upper-cased for you.

Since v1.6.8 create / update only apply the issuer's platform baseline: the formats and storage limits below. Character sets, minimum lengths, age, whether the ID has expired and which sections / fields a header needs are the header's requirements (rules on /cardholder/requirement) — they do not block registration and are reported as issues by /cardholder/check, /cardholder/submit and card issuance.

FieldTypeRequiredDescription
first_namestring✅Up to 32 characters. The accepted characters and minimum length are header requirements (e.g. LATIN_NAME in rules.field_constraints). Cannot be changed after registration
last_namestring✅Same rule as first_name
birth_datestring✅YYYY-MM-DD (format only — the accepted age range is a header requirement, rules.holder_age)
genderintNo1 male / 2 female; 0 or omitted = not provided
nationalitystring⚠️ISO 3166-1 alpha-2 (e.g. SG)
emailstring✅Contact email, up to 255 characters. The only field that can still be changed while a review is in progress
mobile_countrystringNoISO 3166-1 alpha-2 of the mobile number; when omitted it is derived from area_code
area_codestring✅+ followed by 1–4 digits; 65 is accepted and stored as +65
mobile_numberstring✅4–30 digits without the area code; spaces and hyphens are removed
ssnstring⚠️US Social Security Number, 9 digits (spaces / hyphens removed). Never returned — the response only shows ssn_provided
identityobject⚠️ID document — see identity
billing_addressobject⚠️Address
delivery_addressobjectNoAddress for physical card delivery

✅ = always required — the only fields create / update require (cardholder_field_required). ⚠️ = required when the header asks for it — see required_fields / sections on /cardholder/requirement and the issues of /cardholder/check; a missing one does not block create / update and is reported as MISSING_FIELDS at check / submit / card issuance.

identity ​

FieldTypeDescription
typestringID_CARD / PASSPORT / HK_HKID / DLN (driving licence) / RESIDENCE_PERMIT (residence permit). A header may accept only some of them — see rules.identity_types on /cardholder/requirement
numberstringUp to 64 letters, digits or hyphens. Only returned masked (number_masked)
issue_countrystringISO 3166-1 alpha-2
issue_datestringYYYY-MM-DD
expiry_datestringYYYY-MM-DD (format only — whether the ID has expired is decided by the review)
front_file_idstringchf_<id> uploaded with purpose=identity_front
back_file_idstringchf_<id> uploaded with purpose=identity_back
hand_file_idstringchf_<id> uploaded with purpose=identity_hand (cardholder holding the ID)
proof_of_address_file_idstringchf_<id> uploaded with purpose=proof_of_address
proof_of_address_issue_datestringYYYY-MM-DD, not later than today. Required whenever proof_of_address_file_id is sent
proof_of_address_issuing_countrystringISO 3166-1 alpha-2. Required whenever proof_of_address_file_id is sent
  • identity is optional at registration and may be filled in partially: no ID field is required by create / update (since v1.6.8 they no longer have to be sent together, and the front / back images are not required here).
  • Whether a header needs ID details at all, and which ones (e.g. the back image or the hand-held photo), depends on the header — see sections[] in /cardholder/requirement. Missing ones are reported as MISSING_FIELDS by /cardholder/check.
  • Proof of address: when you send proof_of_address_file_id (a new or replaced file), its proof_of_address_issue_date and proof_of_address_issuing_country must be sent in the same request (cardholder_poa_info_required); the issue date cannot be in the future (cardholder_poa_issue_date_in_future).
  • Upload the files first with /cardholder/files/upload. A file can only be used in the slot matching its purpose, by one cardholder, and — while unreferenced — only until its expires_at.

Address ​

billing_address and delivery_address are both optional at registration and may be filled in partially — since v1.6.8 a billing address is no longer required for every header, and the sub-fields no longer have to be sent together. Whether a header needs an address, and which parts, comes from the header's requirements (sections[]); missing parts are reported as MISSING_FIELDS at check / submit / card issuance. Only the format and storage limits below are checked here (cardholder_country_code_invalid / cardholder_field_too_long).

FieldTypeDescription
countrystringISO 3166-1 alpha-2
statestringState / province, up to 20 characters
citystringCity, up to 70 characters
districtstringOptional, up to 70 characters
line1stringUp to 70 characters. The accepted characters are a header requirement — see rules.field_constraints on /cardholder/requirement (e.g. LATIN_TEXT: English letters, digits, spaces and , . ' / # ( ) - &)
line2stringOptional, same rule as line1
postcodestringUp to 10 characters (e.g. 048616, SW1A 1AA)

Idempotent on external_id ​

When the request carries an external_id that already exists on your account, nothing is changed: the existing cardholder (draft or registered) is returned with reused=true, and the profile in the request is ignored — it must still pass the format and required-field checks above, which run first. A draft returned this way is not registered again; call /cardholder/update to fix and retry it, or to change the data of a registered cardholder. Without external_id every successful call creates a new cardholder.

Example Request ​

http
Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7
json
{
  "external_id": "cust-0001",
  "first_name": "John",
  "last_name": "Doe",
  "birth_date": "1990-05-20",
  "gender": 1,
  "nationality": "SG",
  "email": "[email protected]",
  "area_code": "+65",
  "mobile_number": "81234567",
  "identity": {
    "type": "PASSPORT",
    "number": "E12345678",
    "issue_country": "SG",
    "issue_date": "2020-01-15",
    "expiry_date": "2030-01-14",
    "front_file_id": "chf_301"
  },
  "billing_address": {
    "country": "SG",
    "state": "Singapore",
    "city": "Singapore",
    "line1": "1 Raffles Place",
    "line2": "#20-01",
    "postcode": "048616"
  }
}

Response Fields ​

FieldTypeDescription
cardholderobjectThe Cardholder object. Check registration_status
reusedbooltrue when an existing cardholder was returned — the same external_id already existed, or the registration matched an existing registration (for example when reusing the holder of a legacy card)

Example Response ​

json
{
  "code": 0,
  "message": "Success",
  "data": {
    "cardholder": {
      "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",
      "...": "see the Cardholder object"
    },
    "reused": false
  }
}

Common Errors ​

Field errors carry data.field (the offending path, e.g. billing_address.postcode). Errors returned after the draft was saved carry data.cardholder_id — see Error details.

HTTPcodeerror_keyDescription
20040001validation_failedRequest body cannot be parsed
20040000openapi_invalid_cardholder_file_idA *_file_id is not a well-formed chf_<id> (data.field names it)
20040000openapi_invalid_card_idlegacy_card_id is not a well-formed card_<id>
20040000cardholder_field_requiredOne of first_name / last_name / birth_date / email / area_code / mobile_number is missing (data.field)
20040000cardholder_field_too_longA field exceeds its storage limit: first_name / last_name over 32, address state over 20, city / district / line1 / line2 over 70, postcode over 10 characters (data.field, e.g. billing_address.postcode)
20040000cardholder_birth_date_invalid / cardholder_gender_invalid / cardholder_country_code_invalid / cardholder_email_invalid / cardholder_area_code_invalid / cardholder_mobile_number_invalid / cardholder_ssn_invalidField format rules above
20040000cardholder_id_type_invalid / cardholder_id_number_invalid / cardholder_date_invalididentity formats above (data.field names the field)
20040000cardholder_poa_info_required / cardholder_poa_issue_date_in_futureProof-of-address date / country rules
20040000cardholder_external_id_invalidexternal_id format
20040000cardholder_source_mismatchThe external_id already belongs to a cardholder registered through another channel
20040000cardholder_legacy_card_invalidlegacy_card_id is not one of your legacy card candidates
40440400cardholder_file_not_foundA referenced file does not exist on your account (data.field names the slot)
20040000cardholder_file_purpose_mismatch / cardholder_file_expired / cardholder_file_in_useThe file was uploaded for another slot / has expired / is used by another cardholder — upload again
20040000cardholder_busyAnother create on your account is in progress — retry shortly with a new Idempotency-Key
20040000cardholder_identity_public_figureAI check: the identity (name + date of birth + nationality) cannot be used to open cards (when the platform rejects failed checks); this create was not saved nor sent to the issuer
20040000cardholder_ai_check_too_frequentToo many AI checks for this account (per-hour / per-day limit, shared with file uploads; whatever the failure handling); data.retry_after_seconds is the wait in seconds. Nothing was saved — retry later with a new Idempotency-Key
20040000cardholder_id_number_mismatch / cardholder_name_mismatch / cardholder_birth_date_mismatch / cardholder_gender_mismatch / cardholder_nationality_mismatch / cardholder_id_type_mismatch / cardholder_id_issue_country_mismatch / cardholder_id_issue_date_mismatch / cardholder_id_expiry_date_mismatchAI check: the submitted details do not match what was read from the identity document images (when the platform rejects failed checks; the platform decides which fields are compared — only the ID number by default). data.field is the first mismatching field and data.mismatch_fields lists all of them; this create was not saved nor sent to the issuer. See Document matching
20040000cardholder_provider_invalid_paramsThe draft was saved, but the data was rejected during registration — check and update (data.cardholder_id)
20040000cardholder_conflictThe draft was saved, but the mobile number or ID number is already used by another cardholder (data.cardholder_id)
20040000cardholder_file_rejectedThe draft was saved, but a file was rejected as invalid — upload a new file and update (data.cardholder_id)
20040000cardholder_already_registeredThe draft was saved, but this person is already registered as another cardholder on your account — use that one (data.cardholder_id is the new draft)
20040000cardholder_provider_status_not_allowedThe draft was saved, but registration is not allowed in the current state (data.cardholder_id)
20050000cardholder_provider_unavailableRegistration temporarily unavailable. When data.cardholder_id is present the draft was saved — retry later with /cardholder/update on that draft, not with another create
20050000cardholder_service_not_configuredThe cardholder service is not enabled — contact us. data.cardholder_id, when present, is the saved draft
20040000openapi_idempotency_key_required / openapi_idempotency_key_too_long / openapi_idempotency_key_invalid_charsIdempotency-Key header problem
40940900openapi_idempotency_key_conflict / openapi_idempotency_key_in_progressSame key with a different body / still running
40140100openapi_invalid_credentialsAuth failure
42942900too_many_requestsRate limited — honor Retry-After
20050000openapi_cardholder_failedServer error

Notes ​

  • Send external_id whenever you have one: a retry after a timeout (even with a new Idempotency-Key) then returns the same cardholder instead of creating a second one.
  • When an error carries data.cardholder_id, continue with /cardholder/update on that draft instead of calling create again.
  • One create is processed at a time per account — run creates sequentially.
  • A successful create does not submit anything for review — continue with /cardholder/check and /cardholder/submit.

Released under MIT-equivalent terms.