Skip to Content

Error Codes

Error code (code) indicates the processing result of API requests.

Success Response

Response CodeDescription
0Interface response successful

Important Note

code being 0 only means interface call succeeded, not transaction success. Transaction final status needs to be determined by transactionStatus.

Security Restriction Errors (S prefix)

Error CodeDescriptionSolution
S01Invalid IP addressCheck if merchant has configured IP whitelist and add calling server IP to whitelist
S02Request timestamp deviation from server time too largeSync client system time, ensure time difference within allowed range (±10 minutes)
S03Signature verification failedCheck signature algorithm, key, and parameter order, confirm parameters involved in signature have not been modified
S04Interface call frequency exceededReduce call frequency, follow platform frequency limit rules
S05Data decryption failedCheck code encryption logic or check if key settings are correct
S06Insufficient permissionsContact administrator to apply for permissions or check if permissions are correct
S07TMK key does not exist or key expiredRe-obtain TMK
S08Working key does not exist or key expiredRe-obtain working key
S09Login session expired or not logged inLog in again
S10Request authentication failedCheck key settings or authentication algorithm calculation is correct
S11Duplicate requestUse different X-Request-Id to initiate request again, or wait 10 minutes before retrying

Client Errors (C prefix)

Error CodeDescriptionSolution
C01Request parameter missingEnsure all required parameters are provided
C02Request JSON format errorCheck JSON structure, bracket matching, and data type validity
C03Merchant does not exist or is disabledCheck if merchant ID is correct and confirm merchant status
C06Duplicate request serial numberEnsure uniqueness of merchant request number, avoid duplicate submission
C08Transaction locked (prevent concurrent operations)Wait for current operation to complete before initiating new request, recommend business layer locking control
C10Order already paidConfirm order status through order query interface, no need to repeat operation
C12Order does not existCheck if order number is correct and order’s merchant
C14Transaction amount exceeds allowed rangeCheck platform’s amount limit rules for this merchant/payment method, adjust request amount
C15Refund amount exceeds original order amount or refundable balanceVerify original order amount and refunded amount, ensure total refund amount does not exceed refundable limit
C24Original transaction status not allowedCheck transaction status

Merchant Configuration Errors (M prefix)

Error CodeDescriptionSolution
M01Interface call permission insufficient or not activatedApply for corresponding interface permission or renew
M02Application does not exist or unavailableCheck if appId is correct and confirm application status on open platform
M04Merchant has not activated this payment product or payment parameters not configured or configured incorrectlyConfirm merchant has activated corresponding payment product, complete payment parameter configuration

Payment Channel Errors (P prefix)

Error CodeDescriptionSolution
P01Bank channel exceptionCall order query interface to confirm transaction status, if unpaid order can retry

System Errors (E prefix)

Error CodeDescriptionSolution
E01System busy, please try again laterCall order query interface to confirm transaction status, if unpaid order can retry
E02Network timeout or errorCall order query interface to confirm transaction status, if unpaid order can retry
E03Unknown exceptionCall order query interface to confirm transaction status, if unpaid order can retry

Error Handling Recommendations

  • When encountering P01, E01, E02, E03 errors, should first call order query interface to confirm transaction status
  • If order is unpaid, can retry; if multiple attempts still fail, contact technical support
  • When encountering C08, C26, C27 and other concurrency-related errors, recommend retrying later
Last updated on