Skip to content

Error Codes ​

Every Brand OpenAPI response — success or error — uses the same JSON envelope:

FieldWhen presentMeaning
codeAlwaysBusiness code. 0 = success. Errors use 5-digit business codes (40000, 40100, 50000 …) — these are not HTTP statuses.
messageAlwaysHuman-readable text, localized by Accept-Language (see Localization). For display and logs only — never branch on it.
error_keyEvery error response; never on successStable machine-readable key (e.g. card_is_closing). Use this for programmatic checks. It never changes with the language.
dataSuccess; some errorsBusiness payload (list endpoints put the paginated object here). Absent on errors, except the cardholder errors that carry structured details (e.g. {"field": "last_name"}) — on 40000, 40400 and 50000 responses alike, see Cardholders.
json
{
  "code": 0,
  "message": "Success",
  "data": { "card_id": "card_12345", "status": 2 }
}
json
{
  "code": 40000,
  "message": "Card is being closed",
  "error_key": "card_is_closing"
}

Check code first, not the HTTP status

Most business errors — validation failures, insufficient balance, card status, and server-side failures handled by the endpoint — are returned with HTTP 200. An HTTP 200 alone does not mean success: always check code == 0 before reading data.

error_key is present on every error returned under /api/v1/openapi/*: business errors, authentication failures (401), gated access (403), unknown cards (404), idempotency conflicts (409), rate limits (429), internal errors and even an unhandled server crash (500).

HTTP Status vs Business Code ​

SituationHTTPcodeerror_key examples
Success (incl. an idempotent replay)2000—
Business / validation rejection (bad ID format, amount, card status, insufficient balance, missing Idempotency-Key …)20040000openapi_invalid_card_id, insufficient_balance, card_is_closing
Request body cannot be parsed (not JSON, or a field has the wrong JSON type)20040001validation_failed
Authentication failure (signature / timestamp / nonce / AppID / disabled credential or account)40140100openapi_invalid_credentials
Authenticated but gated (sensitive-info second factor, card not active for sensitive data, admin ban, card frozen by the platform on unfreeze)40340300email_code_required, invalid_pin, openapi_sensitive_card_only_active, card_sensitive_access_banned, unauthorized_unfreeze_admin
Card not found / not owned by your account (also cardholders, cardholder files and headers on the cardholder endpoints)40440400card_not_found, cardholder_not_found, cardholder_file_not_found, cardholder_header_not_found
Idempotency-Key reused with a different body, or the same key is still being processed40940900openapi_idempotency_key_conflict, openapi_idempotency_key_in_progress
Rate limited (application limit per (AppID, client IP), sensitive-info verification lock / send cooldown, or the gateway in front of the API)42942900too_many_requests (+ Retry-After header)
Server-side failure handled by the endpoint20050000openapi_recharge_failed, openapi_internal_error
Unhandled server crash50050000internal_error (the message is always Internal Server Error, not localized)

How to read code:

codeMeaningWhat to do
0SuccessUse data.
40000 / 40001The request or the current state violates a ruleBranch on error_key; fix the input or wait for the state to change. Retrying the same request unchanged returns the same error.
40100Authentication failedSee Handling 401.
40300Authenticated, but this specific request is not allowedBranch on error_key (supply / correct a second factor, or stop).
40400The card (or cardholder / file / header) does not exist or is not yoursStop; check the ID you stored.
40900Idempotency conflict…_in_progress: retry the same key shortly. …_conflict: do not retry — see Idempotency.
42900Rate limitedWait for Retry-After seconds, then retry.
50000Server-side failureRetry later. On write endpoints, check the resulting state before sending a new Idempotency-Key (see Recharge).

Responses without the envelope

A proxy / load-balancer error page, a request to a path that does not exist, or a non-POST method can come back without this JSON envelope. Fall back to the HTTP status in that case — e.g. treat any HTTP 429 as rate limited and any 5xx as a transient server error.

Full error_key Dictionary ​

The en-US / zh-CN columns describe each key; the exact message wording may differ slightly. Never match on message.

General ​

error_keyen-USzh-CNHTTPcode
validation_failedRequest body could not be parsed (invalid JSON, or a field with the wrong JSON type)请求体无法解析(不是合法 JSON,或字段类型不对)20040001
too_many_requestsToo many requests — honor Retry-After (see Rate Limit)请求过于频繁,按 Retry-After 等待(见限流)42942900
internal_errorUnhandled server crash (message is always Internal Server Error)服务端未捕获的异常(message 固定为 Internal Server Error)50050000

Auth & Credentials ​

error_keyen-USzh-CNHTTPcode
openapi_invalid_credentialsInvalid OpenAPI credentials (every authentication failure, see Handling 401)无效的 OpenAPI 凭证(所有鉴权失败统一返回)40140100

ID Validation ​

error_keyen-USzh-CNHTTPcode
openapi_invalid_header_idInvalid header_id: missing prefix, malformed, or the header does not exist / is not availableheader_id 不合法:缺前缀、格式错误,或卡头不存在 / 不可用20040000
openapi_invalid_package_idInvalid package_id: missing or malformed (expected pkg_ followed by digits, e.g. pkg_123)package_id 缺失或格式不正确(应为 pkg_ 加数字,如 pkg_123)20040000
openapi_invalid_card_idInvalid card_id: missing or malformed (expected card_ followed by digits, e.g. card_123)card_id 缺失或格式不正确(应为 card_ 加数字,如 card_123)20040000
openapi_invalid_cardholder_idInvalid cardholder_id: missing or malformed (expected chd_ followed by digits)cardholder_id 缺失或格式不正确(应为 chd_ 加数字)20040000
openapi_invalid_cardholder_file_idA cardholder file ID is malformed (expected chf_ followed by digits); data.field names the field持卡人影像 ID 格式不正确(应为 chf_ 加数字),data.field 指明字段20040000

A well-formed card_id that does not exist or belongs to another account returns HTTP 404 / 40400 card_not_found on every card endpoint. See IDs & Prefixes.

Idempotency ​

error_keyen-USzh-CNHTTPcode
openapi_idempotency_key_requiredMissing Idempotency-Key header缺少 Idempotency-Key 请求头20040000
openapi_idempotency_key_too_longIdempotency-Key too long (max 128 chars)Idempotency-Key 超长(最大 128 字符)20040000
openapi_idempotency_key_invalid_charsIdempotency-Key contains invalid characters (only visible ASCII, no spaces)Idempotency-Key 含非法字符(仅允许可见 ASCII,不含空格)20040000
openapi_idempotency_key_conflictSame Idempotency-Key with a different request body同一 Idempotency-Key 但请求体不同40940900
openapi_idempotency_key_in_progressA request with the same Idempotency-Key is still being processed — retry shortly同 Idempotency-Key 的请求仍在处理中,请稍后重试40940900

Business Rules ​

Returned by /card/apply, /card_configs/list, /card/first_deposit/preview and the card endpoints.

error_keyen-USzh-CNHTTPcode
openapi_card_type_not_supportedNot supported (virtual cards only)暂不支持该卡类型,仅虚拟卡20040000
account_manager_bind_requiredAccount-manager-controlled header; bind an account manager first该卡头需绑定客户经理后才能开通20040000
account_manager_unavailableYour account manager is no longer active; contact support绑定的客户经理已失效,请联系客服20040000
account_manager_open_disabledHeader / package not opened for your account by your account manager您的客户经理尚未对该账号开放此卡头 / 套餐20040000
card_not_foundCard not found, or not owned by your account卡片不存在 / 不属于当前账号40440400
insufficient_balanceInsufficient wallet balance (nothing is frozen)钱包余额不足(不冻结任何资金)20040000
kyc_requiredThe account must complete platform identity verification (KYC) first账号需先完成平台实名认证(KYC)20040000
card_open_risk_blockedCard opening blocked by risk control (historical decline / zero-auth rate too high); contact support历史拒付率 / 授权异常率过高,风控暂停开卡,请联系客服20040000
card_open_risk_card_quota_exceededRisk control limits the account to 1 card for now风控限制当前最多只能持有 1 张卡20040000
card_deposit_insufficient_balanceInsufficient balance for the card security deposit押金余额不足20040000
card_deposit_config_invalidThe package's security-deposit configuration is incomplete (platform configuration)该卡的押金配置不完整(平台配置问题)20040000
card_deposit_asset_not_foundThe security-deposit currency does not exist or was removed (platform configuration)押金币种不存在或已下架(平台配置问题)20040000
card_deposit_already_existsA deposit record already exists for this card该卡已存在押金记录20040000
virtual_g_name_invalid(G card) cardholder name fails the ASCII-letters / single-space / ≤40 chars rule(G 卡)持卡人姓名不满足规则20040000
virtual_g_required_fields_missing(G card) server could not assemble a complete apply payload(G 卡)开卡资料不完整20040000
virtual_a_required_fields_missing(A card) first_name / last_name missing or blank, or apply payload incomplete(A 卡)持卡人姓名缺失或开卡资料不完整20040000
virtual_s921_required_fields_missing(S921 card) the card configuration is incomplete (header not fully configured or currency not USD) — contact support(S921 卡)开卡配置不完整(卡头配置不完整或币种非 USD),请联系客服20040000
virtual_s921_unified_webhook_not_subscribed(S921 card) the platform-side event subscription for this card type is incomplete, so the card cannot be opened yet; frozen funds refunded — contact support(S921 卡)平台侧该卡型的事件订阅不完整,暂不能开卡,冻结金额已退回钱包,请联系客服20040000

kyc_not_approved was listed here in earlier versions of this page but is never returned — an account that does not meet the KYC requirement always gets kyc_required.

First Deposit (Custom Amount) ​

Returned by /card/apply as error_key (HTTP 200 / 40000), and by /card/first_deposit/preview as invalid_reason inside a successful (code: 0) body, when a custom first_deposit_amount cannot be honored.

error_keyen-USzh-CNHTTPcode
invalid_first_deposit_amountfirst_deposit_amount must be a non-negative integerfirst_deposit_amount 必须是非负整数20040000
first_recharge_below_baseFirst deposit below the config base首充低于配置底额20040000
first_recharge_below_minFirst deposit below the package minimum (min_first_deposit)首充低于套餐首充最低金额(min_first_deposit)20040000
first_recharge_exceeds_maxExcess exceeds max recharge超额超过最大充值20040000
first_recharge_limit_exceededExcess exceeds the recharge limit超额超过充值限额20040000
first_recharge_asset_mismatchOpen-fee asset differs from recharge asset开卡费资产与充值资产不一致20040000
first_recharge_excess_too_smallExcess too small after fee + rounding超额扣费取整后过小20040000

Recharge ​

Returned by /card/recharge. The request also goes through the ID, idempotency and general checks above.

error_keyen-USzh-CNHTTPcode
amount_requiredamount is requiredamount 为必填20040000
card_not_foundCard not found, or not owned by your account卡片不存在 / 不属于当前账号40440400
invalid_recharge_amountamount is not a valid amountamount 不是合法金额20040000
recharge_amount_too_smallBelow the package minimum (the message includes the minimum)低于套餐最小充值金额(message 含最小值)20040000
recharge_amount_too_largeAbove the package maximum (the message includes the maximum)高于套餐最大充值金额(message 含最大值)20040000
recharge_limit_exceededAccount recharge limit exceeded超出账号充值限额20040000
recharge_amount_below_feeThe amount does not cover the recharge fee (nothing frozen)充值金额不足以支付手续费(未冻结)20040000
insufficient_balanceWallet cannot cover the amount (nothing is frozen, no order is created)钱包余额不足(不冻结资金、不创建订单)20040000
card_is_closingThe card is being closed (status=4)卡片正在注销中(status=4)20040000
card_not_activeThe card is not active (pending / frozen / closed / failed, or flagged as closed by the provider)卡片未激活(开卡中 / 已冻结 / 已注销 / 开卡失败,或已被提供方标记注销)20040000
card_number_not_readyThe card number has not been issued yet (VIRTUAL-S921 right after opening — usually seconds, up to about 90 s); retry later, nothing is frozen卡号尚未下发(VIRTUAL-S921 开卡后短时间内,通常几秒、最长约 90 秒),请稍后重试,不冻结资金20040000
card_recharge_disabledRecharge is disabled for your account账号已被禁止充值20040000
user_not_activeThe account is not active账号未处于正常状态20040000
recharge_disabledRecharge is switched off for this card type / header / package该卡类型 / 卡头 / 套餐的充值已关闭20040000
card_type_not_support_rechargeThis card type does not support recharge该卡类型不支持充值20040000
recharge_not_supportedThe package has no recharge asset该套餐未配置充值资产20040000
card_type_mismatchPackage / card type mismatch (platform data)套餐与卡类型不匹配(平台数据问题)20040000
account_currency_not_configuredCard account currency is not configured (platform configuration)卡内账户币种未配置(平台配置问题)20040000
same_currency_not_allowedRecharge asset equals the card currency (platform configuration)充值币种与卡内币种相同(平台配置问题)20040000
unsupported_card_providerCard provider not supported (platform configuration)暂不支持该卡提供商(平台配置问题)20040000
exchange_rate_not_availableExchange rate temporarily unavailable — retry later汇率暂不可用,请稍后重试20040000
card_status_not_rechargeableThe provider refused because of the card's status (closed / closing / frozen / not activated); funds already returned to the wallet提供方因卡状态拒绝充值(已注销 / 注销中 / 冻结 / 未激活),资金已退回钱包20040000
recharge_rejectedThe provider refused the recharge synchronously (e.g. below the provider minimum); funds already returned to the wallet提供方同步拒绝充值(如低于提供方最低金额),资金已退回钱包20040000
openapi_recharge_failedUnexpected server error — an order is not guaranteed; check /card/transactions/list before retrying服务端异常,不保证已建单;重试前先查 /card/transactions/list20050000

Outcome unknown is not an error

If the provider call times out or fails with an ambiguous result, the order already exists and its funds are frozen. Since v1.5 the endpoint then returns the normal success envelope with status: 1 (processing); the final result arrives via the card.recharged / card.recharge_failed webhooks. Do not resend with a new Idempotency-Key in that case.

Business errors are replayed for 24 h

HTTP-200 errors (40000 / 50000) are stored under the Idempotency-Key like a success: resending the same key and body replays the same error for 24 hours. After fixing the cause (topping up the wallet, waiting for card_number_not_ready …), send a new key. See Idempotency.

Sensitive Card Information ​

These codes are returned by /openapi/card/info when with_sensitive=true cannot be honored, and by /openapi/card/sensitive/send_code. Sensitive fields require the card to be status=2 (active) plus either valid user second-factor codes or a verification-exempt credential.

error_keyen-USzh-CNHTTPcode
email_code_requiredPlease enter email verification code请输入邮箱验证码40340300
sms_code_requiredPlease enter SMS verification code请输入短信验证码40340300
pin_requiredPlease enter PIN请输入 PIN 码40340300
2fa_code_requiredPlease enter 2FA code请输入 2FA 验证码40340300
invalid_email_codeInvalid email verification code邮箱验证码错误40340300
invalid_sms_codeInvalid SMS verification code短信验证码错误40340300
invalid_pinInvalid PINPIN 码错误40340300
invalid_2fa_codeInvalid 2FA code2FA 验证码错误40340300
email_not_verifiedEmail not verified邮箱未验证40340300
phone_not_verifiedPhone not verified手机号未验证40340300
no_usable_auth_methodNo usable authentication method无可用的认证方式40340300
card_sensitive_access_bannedSensitive card info access via API has been disabled by the administrator通过 API 获取敏感卡片信息的权限已被管理员关闭40340300
openapi_sensitive_card_only_activeSensitive card info is only available for active cards.仅激活状态的卡片可获取敏感信息40340300
too_many_requestsToo many requests (verification locked / send cooldown; honor Retry-After)请求过于频繁(验证锁定 / 发码冷却,遵循 Retry-After)42942900
sms_country_not_supportedPhone numbers from this country or region are not supported at the moment (no code sent, cooldown released)该国家/地区的手机号暂时不在支持范围内(不发码,冷却已释放)20040000
send_code_failedFailed to send verification code (cooldown released, retry allowed)验证码发送失败(冷却已释放,可立即重试)20050000

openapi_sensitive_card_info_disabled (403) is no longer returned: credentials without the verification exemption now fall back to the user second-factor path instead of being rejected outright.

Card List Filters ​

Returned by /cards/list.

error_keyen-USzh-CNHTTPcode
openapi_conflicting_card_filtersusable_only and statuses cannot be used togetherusable_only 与 statuses 不能同时传20040000
openapi_invalid_status_valuestatuses contains an invalid value (only 1-6 allowed)statuses 含非法状态值(仅允许 1-6)20040000
invalid_min_balancemin_balance must be a valid non-negative number最小余额必须是合法非负数字20040000
invalid_max_balancemax_balance must be a valid non-negative number最大余额必须是合法非负数字20040000
min_balance_exceeds_max_balancemin_balance must not exceed max_balance最小余额不能大于最大余额20040000
invalid_date_formatstart_date / end_date must be YYYY-MM-DDstart_date / end_date 必须为 YYYY-MM-DD20040000

Transaction Filters ​

Returned by /transactions/list and /card/transactions/list.

error_keyen-USzh-CNHTTPcode
openapi_invalid_card_idcard_id missing (required on /card/transactions/list) or malformedcard_id 缺失(/card/transactions/list 必填)或格式不正确20040000
card_not_foundThe card_id does not exist or is not yourscard_id 对应的卡不存在或不属于当前账号40440400
invalid_date_formattransaction_time_from/to must be YYYY-MM-DD HH:MM:SS (the message text mentions YYYY-MM-DD; the time part is required here)交易时间格式必须为 YYYY-MM-DD HH:MM:SS(message 文案写的是 YYYY-MM-DD,此处必须带时分秒)20040000
invalid_paramsInvalid parameters — a bad amount format, or a type_category outside the allowed values参数无效:金额格式错误,或 type_category 不在允许取值内20040000

Freeze / Unfreeze ​

Returned by /card/freeze and /card/unfreeze. Both also return openapi_invalid_card_id (malformed), card_not_found (404) and openapi_card_type_not_supported.

error_keyen-USzh-CNHTTPcode
card_already_frozen(freeze) Card is already frozen — treat as "already in the target state"(冻结)卡片已被冻结,可视为已处于目标状态20040000
card_status_cannot_freeze(freeze) Current card status does not allow freezing (pending / closing / closed / failed)(冻结)当前卡状态不可冻结(开卡中 / 注销中 / 已注销 / 开卡失败)20040000
card_not_frozen(unfreeze) Card is not frozen(解冻)卡片未被冻结20040000
card_type_mismatchCard type does not match卡类型与配置不匹配20040000
operation_not_supportedOperation not supported for this card type该操作不支持20040000
recharge_unfreeze_disabledRecharge-based unfreeze is not available for this card该卡不允许通过充值自动解冻20040000
unauthorized_unfreeze_admin(unfreeze) Frozen by admin — cannot self-unfreeze(解冻)该卡片被管理员冻结,用户无法自行解冻40340300
unauthorized_unfreeze_risk(unfreeze) Frozen by risk control — cannot self-unfreeze(解冻)该卡片被风控冻结40340300
unauthorized_unfreeze_system(unfreeze) Frozen by system — cannot self-unfreeze(解冻)该卡片被系统冻结40340300
openapi_freeze_card_failed / openapi_unfreeze_card_failedUnexpected server error服务端异常20050000

Before v1.5, freezing an already-frozen card returned card_status_cannot_freeze; it now returns card_already_frozen. A successful freeze / unfreeze also emits the card.status_changed webhook.

Close Card ​

Returned by /card/close (v1.3 — the endpoint has been live since v1.2 but undocumented). Also returns openapi_invalid_card_id, card_not_found (404), openapi_card_type_not_supported, card_type_mismatch and operation_not_supported.

error_keyen-USzh-CNHTTPcode
card_is_closingCard is being closed卡片正在注销中20040000
card_already_closedCard is already closed卡片已注销20040000
card_frozen_cannot_closeCard is frozen and cannot be cancelled卡片已冻结,无法注销20040000
card_status_cannot_closeCurrent card status does not allow cancellation当前卡状态不可注销20040000
close_not_accepted_by_upstreamClosure not accepted by the provider; the card has been restored to active — retry later销卡未被上游受理,卡片已恢复为可用状态,请稍后重试20040000
card_upstream_closed_pending_reconcileCard was already closed by the provider and awaits manual refund reconciliation该卡已被上游直接注销,正在等待人工对账退款20040000
card_config_not_foundCard configuration not found卡配置不存在20040000
openapi_close_card_failedFailed to close card销卡失败20050000

Cardholder Name / Billing Address ​

Returned by /card/holder_name/update, /card/billing_address/generate and /card/billing_address/update (v1.5.1). Also returns openapi_invalid_card_id, card_not_found (404) and openapi_card_type_not_supported. For field-level errors the message names the field / limit; the error_key stays the same.

error_keyen-USzh-CNHTTPcode
card_holder_info_not_editableThe cardholder name and billing address can only be changed while the card is active (status=2)仅激活状态(status=2)的卡片可修改持卡人姓名和账单地址20040000
billing_address_managed_by_cardholderThis card was opened with a cardholder, so its billing address comes from the cardholder profile and cannot be regenerated or changed (v1.6.1)该卡使用持卡人开立,账单地址取自持卡人资料,不能重新生成或修改(v1.6.1)20040000
card_holder_name_requiredCardholder name missing or blank持卡人姓名缺失或只有空白20040000
card_holder_name_length_exceededCardholder name longer than 100 characters (the message includes the limit)持卡人姓名超过 100 个字符(message 含上限)20040000
card_holder_name_invalid_charactersCardholder name contains control characters such as line breaks or tabs持卡人姓名含换行、制表符等控制字符20040000
invalid_country_codecountry / country_code is not a two-letter ISO 3166-1 alpha-2 codecountry / country_code 不是两位字母的 ISO 3166-1 alpha-2 代码20040000
billing_address_field_requiredA required billing-address field is missing or blank (the message names the field)账单地址必填字段缺失或只有空白(message 含字段名)20040000
billing_address_field_length_exceededA billing-address field is too long (the message names the field and the limit)账单地址字段超长(message 含字段名与上限)20040000
billing_address_field_invalid_charactersA billing-address field contains control characters (the message names the field)账单地址字段含控制字符(message 含字段名)20040000
billing_address_country_pool_empty(generate) No address available for this country — choose another(生成)该国家暂无可用地址,请换一个国家20040000
openapi_update_card_holder_name_failed / openapi_generate_billing_address_failed / openapi_update_billing_address_failedUnexpected server error — safe to retry服务端异常,可直接重试20050000

Cardholders ​

Returned by the cardholder endpoints (v1.6) and by /card/apply with a cardholder_id or, since v1.6.6, with a billing_address (the profile-validation keys below with data.field under billing_address.*). Some carry a data object with details — field, cardholder_id, header_id, review_status, failure_reason, terminal, issues, missing_fields, retry_after_seconds, max_pages; see Error details.

Profile validation (data.field names the field). Since v1.6.8 cardholder create / update only check the issuer's platform baseline (formats and storage limits); character sets, age, ID expiry and which fields a header needs are reported as issues by /cardholder/check, /cardholder/submit and card issuance

error_keyen-USzh-CNHTTPcode
cardholder_field_requiredA required field is missing (first_name / last_name / birth_date / email / area_code / mobile_number; when retrying a draft's registration it can also be identity.number — see Update Cardholder)缺少必填资料(first_name / last_name / birth_date / email / area_code / mobile_number;重试草稿登记时还可能是 identity.number,见修改持卡人)20040000
cardholder_field_too_longA field exceeds its storage limit (names 32; address state 20, city / district / line1 / line2 70, postcode 10 characters)资料超出存储上限(名 / 姓 32;地址 state 20,city / district / line1 / line2 70,postcode 10 个字符)20040000
cardholder_birth_date_invalidDate of birth must be YYYY-MM-DD出生日期格式须为 YYYY-MM-DD20040000
cardholder_gender_invalidGender must be 1 or 2性别只能是 1 或 220040000
cardholder_country_code_invalidCountry code must be two upper-case letters (ISO 3166-1 alpha-2)国家或地区代码须为两位大写字母(ISO 3166-1 alpha-2)20040000
cardholder_email_invalidInvalid email邮箱格式无效20040000
cardholder_area_code_invalidArea code must be + followed by 1–4 digits手机区号须为 + 加 1–4 位数字20040000
cardholder_mobile_number_invalidMobile number must be 4–30 digits手机号须为 4–30 位数字20040000
cardholder_ssn_invalidSSN must be 9 digits社会安全号须为 9 位数字20040000
cardholder_id_type_invalidID type must be ID_CARD / PASSPORT / HK_HKID / DLN / RESIDENCE_PERMIT证件类型只能是 ID_CARD / PASSPORT / HK_HKID / DLN / RESIDENCE_PERMIT20040000
cardholder_id_number_invalidID number: up to 64 letters, digits or hyphens证件号码最多 64 位,只能包含字母、数字和连字符20040000
cardholder_date_invalidDate must be YYYY-MM-DD日期格式须为 YYYY-MM-DD20040000
cardholder_address_incompleteAn address needs country, state, city, line 1 and postcode (only billing_address on /card/apply without a cardholder)地址须包含国家、州 / 省、城市、地址第一行和邮编(仅不用持卡人时 /card/apply 的 billing_address)20040000
cardholder_address_line_invalidAddress may only contain English letters, digits, spaces and , . ' / # ( ) - & (only billing_address on /card/apply without a cardholder)地址只能包含英文字母、数字、空格及 , . ' / # ( ) - &(仅不用持卡人时 /card/apply 的 billing_address)20040000
cardholder_postcode_invalidPostcode must be 4–10 letters or digits (only billing_address on /card/apply without a cardholder)邮编须为 4–10 位字母或数字(仅不用持卡人时 /card/apply 的 billing_address)20040000
cardholder_poa_info_requiredA new proof of address needs its issue date and issuing country in the same request上传或替换地址证明须同时填写出具日期和出具国家20040000
cardholder_poa_issue_date_in_futureProof-of-address issue date cannot be after today地址证明出具日期不能晚于今天20040000
cardholder_external_id_invalidexternal_id: up to 128 letters, digits or - _ .external_id 最多 128 位,只能包含字母、数字及 - _ .20040000
cardholder_name_immutableThe name cannot change after registration持卡人登记后不能修改姓名20040000

Cardholder state

error_keyen-USzh-CNHTTPcode
cardholder_not_foundCardholder not found on your account (or not registered through OpenAPI)持卡人不存在(或不是通过 OpenAPI 登记的)40440400
cardholder_not_registeredRegistration not completed (draft) — fix and update持卡人尚未完成登记(草稿),修改后调用 update20040000
cardholder_identity_public_figureAI check: this cardholder identity cannot be used to open cards — the create / update was not savedAI 审核:持卡人身份不能用于开卡,本次登记 / 修改未保存20040000
cardholder_id_number_mismatchAI check: the ID number does not match the identity document image — the create / update was not savedAI 审核:证件号码与证件影像上的不一致,本次登记 / 修改未保存20040000
cardholder_name_mismatchAI check: the name does not match the identity document image — the create / update was not savedAI 审核:姓名与证件影像上的不一致,本次登记 / 修改未保存20040000
cardholder_birth_date_mismatchAI check: the date of birth does not match the identity document imageAI 审核:出生日期与证件影像上的不一致20040000
cardholder_gender_mismatchAI check: the gender does not match the identity document imageAI 审核:性别与证件影像上的不一致20040000
cardholder_nationality_mismatchAI check: the nationality does not match the identity document imageAI 审核:国籍与证件影像上的不一致20040000
cardholder_id_type_mismatchAI check: identity.type does not match the uploaded documentAI 审核:证件类型与上传的证件不一致20040000
cardholder_id_issue_country_mismatchAI check: the issuing country / region does not match the identity document imageAI 审核:签发国家 / 地区与证件影像上的不一致20040000
cardholder_id_issue_date_mismatchAI check: the issue date does not match the identity document imageAI 审核:签发日期与证件影像上的不一致20040000
cardholder_id_expiry_date_mismatchAI check: the expiry date does not match the identity document imageAI 审核:到期日期与证件影像上的不一致20040000
cardholder_manual_review_pendingThe cardholder is under platform manual review — cards can be opened after approval持卡人在平台人工审核中,审核通过后才能开卡20040000
cardholder_manual_review_rejectedThe cardholder did not pass platform manual review and cannot be used to open cards持卡人未通过平台人工审核,不能用于开卡20040000
cardholder_under_reviewUnder review — only email can be changed审核中,仅可修改 email20040000
cardholder_busyAnother operation on this cardholder (or another create on your account) is in progress — retry shortly with a new Idempotency-Key该持卡人(或本账户的另一个登记请求)正在处理中,请稍后用新的 Idempotency-Key 重试20040000
cardholder_only_draft_deletableOnly drafts can be deleted只有草稿可以删除20040000
cardholder_legacy_card_invalidlegacy_card_id is not one of your legacy card candidateslegacy_card_id 不是可复用持卡人的旧卡20040000
cardholder_already_registeredThis person is already registered as another cardholder on your account该持卡人已在本账户登记为另一位持卡人20040000
cardholder_source_mismatchThe external_id belongs to a cardholder registered through another channel该 external_id 属于通过其他渠道登记的持卡人20040000

Files

error_keyen-USzh-CNHTTPcode
cardholder_file_purpose_invalidpurpose missing or invalidpurpose 缺失或无效20040000
cardholder_file_emptyNo file, or the file is empty未上传文件或文件为空20040000
cardholder_file_too_largeFile larger than 2 MB文件超过 2 MB20040000
cardholder_file_type_unsupportedOnly JPG / PNG / PDF只支持 JPG / PNG / PDF20040000
cardholder_file_rejectedFile invalid (unsupported format or damaged) — upload another影像无效(格式不支持或内容损坏),请重新上传20040000
cardholder_upload_busyToo many uploads — retry later上传繁忙,请稍后重试20040000
cardholder_file_not_identity_documentAI check: the file is not an identity documentAI 审核:上传的不是证件20040000
cardholder_file_no_person_holding_documentAI check: the hand-held photo does not show the person holding the documentAI 审核:手持证件照里没有本人手持证件20040000
cardholder_file_specimenAI check: specimen or template documentAI 审核:样本或模板证件20040000
cardholder_file_unreadableAI check: the document is not readable (blurry, dark, glare or covered)AI 审核:证件看不清(模糊、过暗、反光或被遮挡)20040000
cardholder_file_public_figureAI check: the identity on this document cannot be used to open cardsAI 审核:证件上的身份不能用于开卡20040000
cardholder_file_editedAI check: the document photo appears to have been edited or alteredAI 审核:证件照疑似经过修图或篡改20040000
cardholder_file_data_inconsistentAI check: the data on the document is inconsistent (e.g. the MRZ does not match the printed details)AI 审核:证件信息前后不一致(如机读区与印刷信息不符)20040000
cardholder_file_screen_captureAI check: a screenshot or a photo of a screenAI 审核:截图或翻拍屏幕的照片20040000
cardholder_file_digital_copyAI check: not a photo of the original document (downloaded, electronic or composited image)AI 审核:不是拍摄证件原件得到的图片(网上下载、电子版或合成图)20040000
cardholder_file_side_mismatchAI check: the side does not match the upload slotAI 审核:证件面与上传位置不符20040000
cardholder_ai_check_too_frequentToo many AI checks for this account — retry after data.retry_after_seconds with a new Idempotency-Key本账户 AI 审核次数超过上限 —— data.retry_after_seconds 秒后用新的 Idempotency-Key 重试20040000
cardholder_file_pdf_too_many_pagesThe identity document PDF has too many pages (data.max_pages)证件 PDF 页数超过上限(data.max_pages)20040000
cardholder_file_pdf_not_acceptedPDF is not accepted for identity documents — upload a JPG / PNG photo证件照不接受 PDF —— 请上传 JPG / PNG 照片20040000
cardholder_file_pdf_unreadableThe PDF's pages cannot be counted (encrypted or damaged)无法识别 PDF 的页数(加密或损坏)20040000
cardholder_file_not_foundFile not found on your account (data.field names the slot)影像不存在或不属于本账户(data.field 指明位置)40440400
cardholder_file_purpose_mismatchThe file was uploaded for a different slot影像用途与所填位置不符20040000
cardholder_file_expiredThe unreferenced file has expired — upload again影像已过期,请重新上传20040000
cardholder_file_in_useThe file is used by another cardholder — upload again影像已被其他持卡人使用,请重新上传20040000

Review and identity verification

error_keyen-USzh-CNHTTPcode
cardholder_headers_requiredGive at least one header请至少选择一个卡头20040000
cardholder_headers_too_manyAt most 20 headers per call一次最多 20 个卡头20040000
cardholder_header_not_foundCard header not found卡头不存在40440400
cardholder_header_unsupportedThe header does not use cardholders该卡头不使用持卡人20040000
cardholder_header_bin_missingThe header is temporarily unavailable for cardholders — contact us该卡头暂不可用于持卡人,请联系我们20040000
cardholder_header_bin_unavailableThe header's issuer card BIN has been disabled or does not exist (the issuer rejected it) — choose another header or contact us该卡头关联的发卡方卡段已停用或不存在,请换其他卡头或联系我们20040000
cardholder_billing_country_unsupportedThis card does not support this billing country or region. Please choose another country — returned only by /cardholder/billing_address/random (data.field=country) when the header requires a cardholder该卡不支持此账单国家或地区,请换一个国家 —— 仅由 /cardholder/billing_address/random 在卡头要求持卡人时返回(data.field=country)20040000
cardholder_random_address_unavailable(/cardholder/billing_address/random) Unable to generate an address for this country or region right now. Please choose another country or enter the address manually (data.field=country)(/cardholder/billing_address/random)暂时无法生成该国家或地区的地址,请换一个国家或手动填写(data.field=country)20040000
cardholder_kyc_level_not_requiredThe header does not require identity verification该卡头不需要身份认证20040000
cardholder_kyc_not_allowedThe verification this header requires was rejected and no retries are left该卡头要求的身份认证已被拒绝且重试次数已用完20040000
cardholder_kyc_not_in_progressNo verification is in progress for this cardholder该持卡人没有进行中的身份认证20040000
cardholder_kyc_cancel_linkedA verification started by linking an existing verification cannot be cancelled — the result is pushed automatically关联已有认证发起的身份认证不能取消,结果会自动推送20040000
cardholder_kyc_already_verifiedThe verification this header requires has already passed — submit for review directly该卡头要求的身份认证已通过,请直接提交审核20040000
cardholder_kyc_in_reviewAnother verification of this cardholder is under review — start again after it concludes持卡人另一项身份认证正在审核中,请在其结束后再发起20040000
cardholder_kyc_link_in_progressA linked verification is still being processed — wait for the result instead of starting a new one关联已有认证的结果还在处理,请等待结果,不要另行发起20040000
cardholder_requirement_unavailableThe header's cardholder requirements are temporarily unavailable — retry later该卡头的持卡人要求暂不可用,请稍后重试20050000
cardholder_conflictThe mobile number or ID number is already used by another cardholder手机号或证件号已被其他持卡人使用20040000
cardholder_provider_invalid_paramsThe data was rejected during registration / review — check it资料未通过校验,请检查后重试20040000
cardholder_provider_status_not_allowedThe cardholder's current status does not allow this operation持卡人当前状态不允许该操作20040000
cardholder_provider_unavailableCardholder service temporarily unavailable — retry later. On create / update of a draft, data.cardholder_id is the saved draft: retry with update持卡人服务暂不可用,请稍后重试。登记 / 修改草稿时 data.cardholder_id 为已保存的草稿,请对其调用 update 重试20050000
cardholder_service_not_configuredCardholder service not enabled — contact us持卡人服务未开通,请联系我们20050000
openapi_cardholder_failedUnexpected server error on a cardholder endpoint持卡人接口服务端异常20050000

Opening cards (/card/apply)

error_keyen-USzh-CNHTTPcode
cardholder_requiredThe header requires an approved cardholder (cardholder_id)该卡头须使用已审核通过的持卡人(cardholder_id)20040000
cardholder_review_not_approvedNot approved for this card type, or the reviewed information does not cover this header (data.review_status, data.failure_reason, data.terminal)该持卡人在此卡类型尚未审核通过,或已审核资料不覆盖该卡头(data.review_status、data.failure_reason、data.terminal)20040000
cardholder_kyc_level_not_passedIdentity verification required by this header not passed (data.header_id) — start it with /cardholder/kyc/init尚未通过该卡头要求的身份认证(data.header_id)—— 用 /cardholder/kyc/init 发起20040000
cardholder_requirements_unmetThe issuer's precheck found materials or restrictions this header does not accept (data.header_id, data.issues, data.missing_fields); no funds frozen发卡方预检发现该卡头不接受的资料或限制(data.header_id、data.issues、data.missing_fields);未冻结资金20040000
cardholder_card_limit_reachedThe cardholder has reached the card limit on this header该持卡人在此卡头的开卡数已达上限20040000
cardholder_kyc_not_configuredThe header requires identity verification but it is not configured — contact us该卡头要求身份认证但尚未配置,请联系我们20040000
bank_card_apply_cardholder_requirements_unmetThe cardholder does not meet this card's requirements (frozen funds returned)持卡人不满足该卡的开卡要求(冻结资金已退回)20040000
bank_card_apply_cardholder_disabledThe cardholder cannot open cards at the moment (frozen funds returned) — contact us该持卡人当前不可用于开卡(冻结资金已退回),请联系我们20040000

Server Errors ​

error_keyen-USzh-CNHTTPcode
openapi_internal_errorOpenAPI internal error (e.g. the idempotency store is temporarily unavailable)OpenAPI 内部错误(如幂等存储暂不可用)20050000
openapi_list_card_headers_failedFailed to list card headers查询卡头列表失败20050000
openapi_list_card_configs_failedFailed to list card configs查询卡配置列表失败20050000
openapi_apply_card_failedFailed to apply virtual card申请虚拟卡失败20050000
openapi_first_deposit_preview_failedFailed to preview first deposit首充预览失败20050000
openapi_recharge_failedFailed to recharge充值失败20050000
openapi_get_card_info_failedFailed to get card info获取卡片信息失败20050000
openapi_list_cards_failedFailed to list cards查询卡列表失败20050000
openapi_webhook_service_unavailableWebhook service unavailableWebhook 服务不可用20050000
openapi_list_webhook_events_failedFailed to list webhook events查询 Webhook 事件历史失败20050000
openapi_list_transactions_failedFailed to list transactions查询交易明细失败20050000
openapi_freeze_card_failedFailed to freeze card冻结卡片失败20050000
openapi_unfreeze_card_failedFailed to unfreeze card解冻卡片失败20050000
openapi_close_card_failedFailed to close card销卡失败20050000
openapi_update_card_holder_name_failedFailed to update the cardholder name修改持卡人姓名失败20050000
openapi_generate_billing_address_failedFailed to generate a billing address生成账单地址失败20050000
openapi_update_billing_address_failedFailed to save the billing address保存账单地址失败20050000
openapi_cardholder_failedFailed to process the cardholder request持卡人请求处理失败20050000
send_code_failedFailed to send verification code验证码发送失败20050000
internal_errorUnhandled server crash服务端未捕获的异常50050000
python
def handle_response(http_status: int, resp: dict):
    code = resp.get("code")
    key = resp.get("error_key", "")

    # 1. Success first. HTTP 200 alone is NOT success.
    if code == 0:
        return resp["data"]

    # 2. Envelope missing (proxy error page, unknown path): fall back to HTTP status
    if code is None:
        if http_status == 429:
            raise RateLimited()
        raise ServerError(f"HTTP {http_status}")

    # 3. Classes with a real HTTP status
    if code == 40100:
        # Always openapi_invalid_credentials
        raise AuthError("invalid credentials — check AppID/Secret/clock/signing input")
    if code == 40300:
        # Authenticated, but this specific request is gated
        if key.endswith("_required"):
            raise PermissionError(f"Second factor missing ({key}) — "
                                  "call /openapi/card/sensitive/send_code, then resubmit")
        if key.startswith("invalid_"):
            raise PermissionError(f"Second factor rejected: {key}")
        raise PermissionError(f"Forbidden: {key}")  # e.g. openapi_sensitive_card_only_active
    if code == 40400:
        raise NotFound(key)                          # card_not_found
    if code == 40900:
        if key == "openapi_idempotency_key_in_progress":
            raise RetrySameKeyLater()                # first request still running
        raise IdempotencyConflict()                  # same key, different body: don't retry
    if code == 42900:
        raise RateLimited()                          # honor the Retry-After header

    # 4. Business rules (HTTP 200): branch on error_key
    if key == "insufficient_balance":
        raise BalanceError()
    if key == "kyc_required":
        raise KYCError()
    if key == "card_number_not_ready":
        raise RetryLater()                           # S921 number not issued yet
    if key in ("openapi_invalid_card_id", "openapi_invalid_header_id", "openapi_invalid_package_id"):
        raise ValueError(f"bad ID: {key}")

    # 5. Server-side failure (HTTP 200 or 500)
    if code == 50000:
        # Write endpoints: check the resulting state before retrying with a NEW Idempotency-Key
        raise ServerError(key)

    raise ApiError(code, key, resp.get("message"))

Localization ​

The message language is taken from the Accept-Language header, then the X-Language header, then the ?lang= query parameter (a query parameter is part of the signed RAW_QUERY, see HMAC Authentication). Only the first language tag is used; q weights are ignored.

http
Accept-Language: en-US
Valuemessage language
Not sentEnglish (en-US)
en-US / enEnglish
zh-CN / zh / zh-HansSimplified Chinese
zh-HK / zh-TW / zh-Hant / zh-MOTraditional Chinese
Other languages supported by the platformThat language (may be machine-translated)
UnsupportedEnglish

English, Simplified Chinese and Traditional Chinese are maintained by hand; a text missing in one language falls back to another. error_key is independent of the language and always stable.

Released under MIT-equivalent terms.