Error Code Reference

Standardized Format

All error responses follow a standardized format:

{
  "type": "error type",
  "code": "error code",
  "message": "error message"
}

1. Error Types

Error TypeHTTP Status CodeScopeRemarks
  1. invalid_request_error
400
  • invalid parameters
  1. idempotence_error
400
  • idempotence request
  1. account_error
400
  • house account
  • sub account
  • account product (metadata, restrict, auth trade)
  1. api_error
500
  • any internal unexpected error
Contact technical support.
  1. payment_error
400
  1. refund_error
400
  1. payout_error
400
  • payout operations

2. invalid_request_error

Error CodeError MessageHow to Fix
missing_parameterMandatory parameter is missingCheck whether all required request parameters are provided. Add any missing fields (e.g., amount, currency).
invalid_parameterparameter is invalidVerify the format and value range of the corresponding parameter.

3. idempotence_error

Error CodeError MessageHow to Fix
request_being_processedrequest is being processedEnsure requests are not sent too frequently, particularly within a short interval.
key_mismatch_accountkey does not belong to account
key_mismatch_apiapi associated with key is not the originalRequest the original endpoint directly.
invalid_key_formatinvalid idempotency key formatUsing uuid v4

4. account_error

Error CodeError MessageHow to Fix
account_not_foundaccount not found or deactivated
sub_account_not_foundsub-account associated with the on-behalf-of not found or deactivatedEnsure the ID specified in the x-on-behalf-of header corresponds to a valid sub-account.
user_not_founduser associated with account not found or deactivated
product_not_foundproduct not found or inactiveContact technical support.

5. payment_error

Error CodeError MessageHow to Fix
missing_billing_infoMissing billing info
missing_shipping_infoMissing shipping info
invalid_order_currencyInvalid order currency
invalid_order_amountInvalid order amount
order_amount_too_smallOrder amount is less than the minimum transaction amount
  1. Adjust the order amount to meet the minimum limit required by the payment channel (e.g., ¥1.00);
  2. Contact customer support to confirm the exact threshold requirements.
amount_exceededAmount exceeded
count_exceededCount exceeded
avs_declinedAVS declined
invalid_payment_methodInvalid paymentmethod
invalid_billing_info_errorInvalid billing info
invalid_shipping_infoInvalid shipping info
payment_refusedPayment refused
invalid_card_numberInvalid Card Number
restricted_cardRestricted cardTry the transaction with a different card.
expired_cardExpired card
invalid_card_expire_dateInvalid card expire date
transtype_errorTransaction Typeerror
payment_rejectedPayment rejected by issuerPrompt the user to contact their issuing bank to remove the restriction, or choose a different payment method.
abnormal_transactionAbnormal transactionContact technical support.
expired_orderExpired order
closed_orderClosed order
issuer_unavailableIssuer unavailable
not_enough_balanceNot enough balance
transaction_cancelledTransaction cancelled
invalid_pinInvalid Pin
pin_retry_exceededPIN tries exceeded
pin_validation_not_possiblePIN validation not possible
card_requires_online_pinCard requires online pin
mobile_pin_requiredMobile PIN required
fraudFRAUD
risk_rejectReject by risk control
channel_parameters_errorChannel parameters errorCheck wx mid, appid
transaction_already_reversedTransaction was reversed
reversal_not_supportedTransaction does not support reversal
3ds_not_authenticated3DS Not Authenticated
3ds_not_authenticated_error3DS Authentication Error
3ds_not_authenticated_failed3DS Authentication Failed
retrieve_payment_failRetrieve payment information error
order_conflictOrder number duplication
idempotency_violationChannel Idempotency exception
invalid_refund_windowExceeded the refund time limit
invalid_qr_codeQRC not found or status error
data_mismatchThe request data does not match the original order
system_errorSystem error
timeoutTimeout
operation_in_progressThe program is in progress.
signature_verify_failsignature error
3DS_requiredThe issuer bank requires the 3D Secure process
invalid_encodingThe encoding format is incorrect
resource_not_foundResource does not exists
invalid_cardholder_infoCardholder identity information or mobile number incorrect
awaiting_user_inputTransaction has been redirected, waiting for cardholder input
internal_errorInternal Error: Please contact support for assistanceContact technical support.
not_found_idNot Found ID

6. refund_error

Error CodeError MessageHow to Fix

7. payout_error

Error CodeError MessageHow to Fix
payout_disabledThe Payout service has not been enabled
disabled_transfer_typeThis type of payout is disabled by the merchant (e.g., auto-withdrawal turned off)
invalid_currencyInvalid currencyUse a valid and supported currency code.
invalid_amountInvalid amount
invalid_parameterMissing, malformed, or non-compliant request parameters (e.g., currency code not following ISO 4217, negative amount)Verify all required parameters are provided and formatted correctly.
merchant_account_invalidMerchant Account Invalid
insufficient_balanceMerchant's available balance is insufficient
payout_create_failPayout create fail
payout_not_foundPayout not foundVerify the payout ID is correct and the payout exists.