跳转到内容

公共错误码

VellPay 使用响应字段 code 表示本次接口调用结果。code=200 仅表示接口请求处理成功,交易最终结果仍需结合 data.status、订单查询或回调判断。

网关鉴权错误

错误码异常信息处理建议
401Header country error无法从域名或备用请求头识别国家,请确认国家测试域名
401Header appId is invalid检查 appId 是否属于当前环境和国家,格式及长度是否正确
401Header timestamp not found请求头缺少合法的 13 位毫秒时间戳
401Header timestamp expire请求时间与平台时间相差超过 5 分钟,请校准服务器时间
401Nonce verify failnonce 已使用或不合法,请生成新的随机字符串
401authorization verification failed检查签名原文、商户私钥、参数排序和 authorization
401app not set merchant public key当前应用未配置商户公钥,请先完成公钥交换
413json parse error请求体不是合法 JSON
415body empty请求体为空
416gateway maintaining网关维护中,请稍后重试
500gateway error网关内部错误,请记录 tid 并联系 VellPay 技术支持

通用业务错误

错误码异常信息处理建议
401signature verification failed签名验证失败,请重新生成签名
412Please try again later系统繁忙,请稍后重试
413Request timestamp Timestamp timeout请求时间戳超时,请使用当前毫秒时间戳
414parameter validation failed参数校验失败,以 msg 指出的具体字段为准
416Application not found应用不存在,请确认 appId 和调用环境
417Merchant account not found商户账户不存在或国家账户未开通
418Merchant account is closed商户账户已关闭,请联系技术支持
421This payout method is not supported当前国家不支持该 payoutType
423This payment method is not supported当前国家不支持该 paymentType
424This payment method is not configured商户未配置该代收方式
425Insufficient merchant balance商户可用余额不足
426merchant order duplicate商户订单号重复,请检查幂等逻辑或更换订单号
427The callback notification address for collection must not be empty.未配置代收回调地址
429The card number does not match the bank code.银行账号与银行编码不匹配
431The bank code does not supported.当前业务不支持该银行编码
433Payment way not support check out当前支付方式不支持收银台
434Merchant order not exist商户订单不存在,请检查订单号和接口类型
448request time out下游请求超时,请先查询原订单再决定是否重试
460The current payment method is unavailable.当前支付方式不可用,请更换方式或稍后重试
462This request failed due to blacklist blocking请求被风控黑名单拦截,请检查用户参数
466Payment method fee rate not configured.商户未配置该支付方式费率
473Merchant joint verification error商户国家、账户、支付方式或费率配置异常
487This API has not yet been made available.当前商户或国家尚未开放该接口
492The order amount does not fall within the configured amount range for the selected payment method.订单金额不在支付方式允许范围内
500Business Error通用业务异常,请记录请求信息和 tid 后联系技术支持

错误响应示例

{
"code": 414,
"data": null,
"msg": "paymentType is invalid",
"tid": "747bbf80261844ed85b809212aab0d81"
}