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
| Item | Value |
|---|---|
| Method | POST |
| Path | /api/v1/openapi/cardholder/create |
| Auth | HMAC |
| Idempotency Key | Required via Idempotency-Key header |
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
external_id | string | No | Your 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_id | string | No | card_<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 fields | Every 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.
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | ✅ | 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_name | string | ✅ | Same rule as first_name |
birth_date | string | ✅ | YYYY-MM-DD (format only — the accepted age range is a header requirement, rules.holder_age) |
gender | int | No | 1 male / 2 female; 0 or omitted = not provided |
nationality | string | ⚠️ | ISO 3166-1 alpha-2 (e.g. SG) |
email | string | ✅ | Contact email, up to 255 characters. The only field that can still be changed while a review is in progress |
mobile_country | string | No | ISO 3166-1 alpha-2 of the mobile number; when omitted it is derived from area_code |
area_code | string | ✅ | + followed by 1–4 digits; 65 is accepted and stored as +65 |
mobile_number | string | ✅ | 4–30 digits without the area code; spaces and hyphens are removed |
ssn | string | ⚠️ | US Social Security Number, 9 digits (spaces / hyphens removed). Never returned — the response only shows ssn_provided |
identity | object | ⚠️ | ID document — see identity |
billing_address | object | ⚠️ | Address |
delivery_address | object | No | Address 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
| Field | Type | Description |
|---|---|---|
type | string | ID_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 |
number | string | Up to 64 letters, digits or hyphens. Only returned masked (number_masked) |
issue_country | string | ISO 3166-1 alpha-2 |
issue_date | string | YYYY-MM-DD |
expiry_date | string | YYYY-MM-DD (format only — whether the ID has expired is decided by the review) |
front_file_id | string | chf_<id> uploaded with purpose=identity_front |
back_file_id | string | chf_<id> uploaded with purpose=identity_back |
hand_file_id | string | chf_<id> uploaded with purpose=identity_hand (cardholder holding the ID) |
proof_of_address_file_id | string | chf_<id> uploaded with purpose=proof_of_address |
proof_of_address_issue_date | string | YYYY-MM-DD, not later than today. Required whenever proof_of_address_file_id is sent |
proof_of_address_issuing_country | string | ISO 3166-1 alpha-2. Required whenever proof_of_address_file_id is sent |
identityis optional at registration and may be filled in partially: no ID field is required bycreate/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 asMISSING_FIELDSby/cardholder/check. - Proof of address: when you send
proof_of_address_file_id(a new or replaced file), itsproof_of_address_issue_dateandproof_of_address_issuing_countrymust 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 itspurpose, by one cardholder, and — while unreferenced — only until itsexpires_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).
| Field | Type | Description |
|---|---|---|
country | string | ISO 3166-1 alpha-2 |
state | string | State / province, up to 20 characters |
city | string | City, up to 70 characters |
district | string | Optional, up to 70 characters |
line1 | string | Up 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 , . ' / # ( ) - &) |
line2 | string | Optional, same rule as line1 |
postcode | string | Up 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
Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7{
"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
| Field | Type | Description |
|---|---|---|
cardholder | object | The Cardholder object. Check registration_status |
reused | bool | true 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
{
"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.
| HTTP | code | error_key | Description |
|---|---|---|---|
| 200 | 40001 | validation_failed | Request body cannot be parsed |
| 200 | 40000 | openapi_invalid_cardholder_file_id | A *_file_id is not a well-formed chf_<id> (data.field names it) |
| 200 | 40000 | openapi_invalid_card_id | legacy_card_id is not a well-formed card_<id> |
| 200 | 40000 | cardholder_field_required | One of first_name / last_name / birth_date / email / area_code / mobile_number is missing (data.field) |
| 200 | 40000 | cardholder_field_too_long | A 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) |
| 200 | 40000 | cardholder_birth_date_invalid / cardholder_gender_invalid / cardholder_country_code_invalid / cardholder_email_invalid / cardholder_area_code_invalid / cardholder_mobile_number_invalid / cardholder_ssn_invalid | Field format rules above |
| 200 | 40000 | cardholder_id_type_invalid / cardholder_id_number_invalid / cardholder_date_invalid | identity formats above (data.field names the field) |
| 200 | 40000 | cardholder_poa_info_required / cardholder_poa_issue_date_in_future | Proof-of-address date / country rules |
| 200 | 40000 | cardholder_external_id_invalid | external_id format |
| 200 | 40000 | cardholder_source_mismatch | The external_id already belongs to a cardholder registered through another channel |
| 200 | 40000 | cardholder_legacy_card_invalid | legacy_card_id is not one of your legacy card candidates |
| 404 | 40400 | cardholder_file_not_found | A referenced file does not exist on your account (data.field names the slot) |
| 200 | 40000 | cardholder_file_purpose_mismatch / cardholder_file_expired / cardholder_file_in_use | The file was uploaded for another slot / has expired / is used by another cardholder — upload again |
| 200 | 40000 | cardholder_busy | Another create on your account is in progress — retry shortly with a new Idempotency-Key |
| 200 | 40000 | cardholder_identity_public_figure | AI 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 |
| 200 | 40000 | cardholder_ai_check_too_frequent | Too 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 |
| 200 | 40000 | cardholder_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_mismatch | AI 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 |
| 200 | 40000 | cardholder_provider_invalid_params | The draft was saved, but the data was rejected during registration — check and update (data.cardholder_id) |
| 200 | 40000 | cardholder_conflict | The draft was saved, but the mobile number or ID number is already used by another cardholder (data.cardholder_id) |
| 200 | 40000 | cardholder_file_rejected | The draft was saved, but a file was rejected as invalid — upload a new file and update (data.cardholder_id) |
| 200 | 40000 | cardholder_already_registered | The 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) |
| 200 | 40000 | cardholder_provider_status_not_allowed | The draft was saved, but registration is not allowed in the current state (data.cardholder_id) |
| 200 | 50000 | cardholder_provider_unavailable | Registration temporarily unavailable. When data.cardholder_id is present the draft was saved — retry later with /cardholder/update on that draft, not with another create |
| 200 | 50000 | cardholder_service_not_configured | The cardholder service is not enabled — contact us. data.cardholder_id, when present, is the saved draft |
| 200 | 40000 | openapi_idempotency_key_required / openapi_idempotency_key_too_long / openapi_idempotency_key_invalid_chars | Idempotency-Key header problem |
| 409 | 40900 | openapi_idempotency_key_conflict / openapi_idempotency_key_in_progress | Same key with a different body / still running |
| 401 | 40100 | openapi_invalid_credentials | Auth failure |
| 429 | 42900 | too_many_requests | Rate limited — honor Retry-After |
| 200 | 50000 | openapi_cardholder_failed | Server error |
Notes
- Send
external_idwhenever you have one: a retry after a timeout (even with a newIdempotency-Key) then returns the same cardholder instead of creating a second one. - When an error carries
data.cardholder_id, continue with/cardholder/updateon that draft instead of callingcreateagain. - One
createis processed at a time per account — run creates sequentially. - A successful create does not submit anything for review — continue with
/cardholder/checkand/cardholder/submit.