错误码
错误示例
json
{
"code": 409,
"label": "64",
"message": "Refund or capture currency does not match the original transaction currency."
}当请求API失败,NihaoPay会返回一个json格式的错误对象.
NihaoPay的错误对象遵循HTTP状态码,2xx 表示请求成功,你将不会看到错误对象。 4xx 表示请求的信息中有错误,可能是请求参数格式不正确,也可能是未经身份验证的请求或未知的请求端点。5xx 表示NihaoPay服务器存在内部错误,请与我们的技术支持团队tech_support@nihaopay.com 联系。
错误对象
| 字段 | 描述 |
|---|---|
codeint | HTTP状态码. |
labelstring | NihaoPay的错误代码,请提供该字段以便于我们追踪错误信息。 |
messagestring | 错误代码对应的错误描述. |
错误码列表
| code | label | message |
|---|---|---|
| 200 | 00 | Success 交易成功 |
| 402 | 01 | Transaction failed. Please try again.交易失败,请重试 |
| 402 | 02 | Cardholder input an incorrect card number. 卡号不正确 |
| 402 | 03 | Cardholder's issuing bank prevented the transaction.发卡行拒绝交易 |
| 402 | 06 | Customer input an expired card number. 卡片已过期 |
| 402 | 11 | Customer has insufficient funds available. 账户余额不足 |
| 402 | 14 | Cardholder input an incorrect expiration date. 卡片有效期不正确 |
| 402 | 15 | Cardholder authentication failed. Please verify cardholder's information.验证失败,请检查卡片等信息 |
| 402 | 21 | Cardholder authentication failed. Please verify cardholder's information.验证失败,请检查卡片等信息 |
| 402 | 22 | Card state is incorrect. 卡状态错误 |
| 402 | 30 | The amount exceeds transaction limit placed.订单金额超过限额 |
| 400 | 31 | Transaction reference number must be unique. Please re-submit.商户订单号不能重复,请更换订单号后重新提交 |
| 400 | 32 | This payment channel is restricted. Please contact NihaoPay customer service. 支付方式受限制,请联系NihaoPay |
| 409 | 33 | Transaction failed. Information submitted in a repeat transaction must match the original attempted transaction exactly. 交易失败,重复提交的订单号请与原订单信息一致 |
| 402 | 36 | Transaction exceeds the cardholder's credit limit. 订单金额超过持卡人的信用卡额度。 |
| 429 | 39 | Too many transactions attempts by cardholder.交易次数过多,卡号被限制 |
| 402 | 56 | Cardholder's chosen payment card is not supported in this Gateway.不支持的卡片 |
| 402 | 57 | Cardholder has not activated online payments with their issuing bank.持卡人未激活在线支付功能 |
| 404 | 59 | Failed. Transaction have refund or chargeback. 交易失败,原交易已经退款或者被拒付,不能撤销 |
| 404 | 60 | Transaction has been cleared, please request refund.交易已清算,不能撤销,请使用退款接口 |
| 402 | 61 | Transaction not found.交易未找到 |
| 402 | 62 | Transaction is not within the acceptance time range. 不在接受时间范围内,消费交易已被关闭,已经超过退款期限。 |
| 402 | 63 | The original transaction failed. You cannot refund, cancel, capture, or release an unsuccessful transaction.原交易支付失败,不能进行退款,撤销或预授权完成等其他管理交易 |
| 409 | 64 | Refund or capture currency does not match the original transaction currency.退款或预授权完成交易币种必须与原交易币种一致 |
| 409 | 65 | Transaction has previously been cancelled.交易已经取消 |
| 409 | 66 | Failed to refund transaction. Transaction has previously been fully refunded.退款失败,交易已经全额退款 |
| 402 | 67 | Failed to refund transaction. Refund amount exceeds original transaction amount or remaining transaction balance .退款失败,退款金额超过原交易金额或账户可用余额不足,不能退款 |
| 402 | 68 | Failed to capture transaction. Transaction has previously been released.预授权完成失败,预授权交易已经取消 |
| 402 | 69 | Failed to capture transaction. Transaction has previously been captured.预授权完成失败,预授权交易已经被捕获扣款,不能重复扣款 |
| 402 | 70 | Failed to capture transaction. Capture amount exceeds authorization amount.预授权完成失败,捕获扣款金额不能超过预授权交易金额的115% |
| 402 | 71 | Buyer not exist or buyer account info error 付款人账户不存在或者错误 |
| 402 | 72 | Transaction amount is exceed the limit 交易金额超过单笔限额或者超过单日累计总限额 |
| 500 | 81 | Merchant config error 商户配置错误,请联系NihaoPay |
| 500 | 82 | Merchant unavailable 商户不可用 |
| 500 | 83 | QRcode has expired 二维码已过期 |
| 500 | 84 | Service is not activated for this account 服务未开通 |
| 402 | 86 | Withdrawal amount exceeds account balance 提款金额超过账户余额 |
| 402 | 87 | Withdrawal amount less than the minimum withdrawal amount 提款金额小于最小提款金额 |
| 402 | 88 | Invalid application, it's only available for manually withdrawal merchant 提款申请仅对手工提款的商户开放 |
| 400 | 90 | The field not valid. 请求参数格式不正确 |
| 500 | 91 | Signature error 签名错误 |
| 500 | 92 | The {0} field is required.请求字段不能为空 |
| 404 | 93 | The Exchange rate not found. 未找到汇率 |
| 500 | 96 | Timeout 请求超时 |
| 500 | 97 | Inner error 内部错误 |
| 500 | 98 | Vendor error 渠道系统出错,请稍后再试 |
| 500 | 99 | System error 系统错误,请联系NihaoPay |
| 401 | 301 | Invalid merchant credentials provided 无效的认证信息,或身份验证失败 |
