Skip to main content

General rules for paying on behalf of others

Local Payments

General rules for paying on behalf of others

This page summarizes the general rules for PayCools Local Payments (Pay on Behalf).Currently contains failed transactions Error code with the interface's API response code In the future, more general rules such as logic, parameters and definitions will continue to settle on this page.

1

Error code

When the transaction fails, the interface returns and the asynchronous notification will pass failedCode And failedMessage Give the reason for the failure:

failedCodemessageIntroduction
-10000Transaction Service ErrorTrading service exception
-10001Transaction Exceed LimitTransaction amount exceeds limit
-10002Transaction Params ErrorIncorrect transaction parameters
-10003Transaction Insufficient BalanceMerchant has insufficient funds
-10004Transaction Channel RejectedChannel Rejection (Channel Side Not Accepted)
-10005Transaction Destination Account ErrorIncorrect payout account information
-10006Transaction Network RejectNetwork Exception
-10007Transaction Channel Temporarily CloseChannel temporarily closed
-10008Merchant Unavailable ErrorMerchant Unavailable
-10009Recipient Account BlockedPayout account frozen or restricted
-10010Channel Refund FailedChannel Refund Failed

Failure code returned by the card verification interface:

failedCodemessageIntroduction
-20001Invalid parametersInvalid parameter
-20002Account abnormalAccount Exception
-20003Balance InsufficientInsufficient funds
-20004Channel errorChannel Exception
-20005System errorSystem Exception
-20006Unknown errorUnknown error
note

The error code only describes the reason for the failure; for the corresponding troubleshooting direction and handling suggestions, please refer to the Business introduction · Risk control and failure handling.

2

API response code

Returned by the interface in real time code And message to identify the outcome of this request. The following is the common interface response code, and the payment interface is also applicable:

codemessageIntroduction
10000SuccessRequest succeeded
21000Server error, Please try again later.Service exception, please try again later
21001Request sign errorFailed to request signature verification
21002Request param errorWrong request parameters
21003Request appId errorappId error
21004Merchant is unavailableMerchant Unavailable
21005Merchant channel is unavailableMerchant channel not available
21006Merchant transaction not foundMerchant transaction does not exist
21007Duplicate merchant order idMerchant order number duplicate
21008Request timestamp errorRequest timestamp error
21009Request timestamp errorRequest timestamp error
21010The amount exceeds the limitAmount exceeds limit
21011Network errorNetwork Exception
21012Request bank code errorIncorrect bank code
21013Request wallet code errorWallet code error
21014Merchant balance insufficientMerchant has insufficient funds
21015Duplicate idempotencyIdIdempotent Repeat
21016Merchant ip forbiddenMerchant IP is not whitelisted
21017Merchant has not opened this national serviceMerchant is not available in this country
21018Request transfer code errortransferCode error
21019Request pay method code errorpayMethodCode Error
21020Too many requests, please retry later.Too many requests, please try again later
21021Transaction Amount InvalidInvalid transaction amount
21022Transaction Volume LimitNumber of transactions exceeded
21023Transaction create failedTransaction creation failed
21024Invalid access tokenInvalid access token
21025Not allowed to cancelCancel not allowed
21026Customer Balance not enoughInsufficient user balance
21027Transaction creation exceeds limitTransaction creation exceeds limit
21028Transaction already paid or closedTransaction paid or closed
21050Business unit not foundBusiness unit does not exist
21051Business unit does not belong to this merchantBusiness unit does not belong to this merchant
21056Cross region business is not allowed for this merchantThis merchant does not allow cross-regional business
note

For full prompts and instructions, refer to the API Generic Prompt.