Skip to content

交易响应码

交易响应码

每一个接口都会返回responseCode和responseMsg两个字段,其中responseCode为响应码,responseMsg为响应描述。

responseCode的取值为下面表格中的一个,只有响应为success时,才代表请求成功。

注意

请求成功不代表交易成功,具体交易状态请以交易状态码为准。

当responseCode为fail时,请通过接口返回的errorCode和errorMsg字段查看具体失败原因。

状态码状态描述
success请求成功
fail请求失败

交易状态码

状态码状态描述
init订单初始化
pending订单处理中
success支付成功
fail支付失败 | 撤销失败 | 退款失败
closed订单已关闭
canceled撤销成功
refunding退款处理中
refunded退款成功
unknown订单状态未知

交易错误码

错误码错误描述
bad_request错误请求
duplicate_request重复请求
invalid_param请求参数为空或不合法
signature_fail签名失败
signature_verify_fail签名验证失败
amount_above_limit金额超过最大限额
amount_below_limit金额低于最小限额
order_error下单失败
order_not_exist订单不存在
order_not_unique订单不唯一
configuration_error配置错误,请联系您的商务经理
currency_not_supported不支持的币种
operation_not_supported不被允许的操作请求
payment_method_not_allowed不支持的支付方式
validation_error业务校验失败
system_error系统错误
unknown_error未知错误

北京腾春科技有限公司