本文件用于说明 FuturePay 平台接口返回的标准错误码及其含义。
所有 API 响应遵循以下结构:
{
"code": "错误码",
"message": "错误信息",
"data": {}
}
- code:错误码(字符串类型)
- message:错误描述(英文或中文)
- data:响应数据(失败时为空或省略)
分类 | 范围 | 描述 |
---|
成功响应 | 0 | 请求成功 |
系统错误 | 500 , 10000 等 | 系统或远程调用异常 |
参数错误 | 400 、1010 ~1012 、40000 | 请求参数错误 |
鉴权错误 | 401 403 、2006 2009 | 登录、权限、Token 问题 |
商户/资源错误 | 4008 ~4023 | 商户或资源信息错误 |
账户/注册错误 | 1511 ~1551 | 用户注册、登录、手机号等问题 |
支付相关错误 | 40008 ~40041 、900xx 系列 | 支付、退款、卡片错误 |
KYC 风控错误 | 70001 ~70007 | 身份验证与风控相关 |
业务限制错误 | 2511 2524 、3011 3014 | 提现、充值、活动等限制 |
订阅 AutoDebit 错误 | 40037 ~40039 | 订阅相关异常 |
卡 Token 错误 | 51001 ~51004 | 卡片 Token 管理错误 |
以下为系统内常用错误码清单(已分组整理)👇
错误码 | 描述 |
---|
0 | succeeded |
10000 | remote error |
400 | 参数不正确 / 参数检验失败 |
500 | 系统异常 |
20000 | Service Currently Unavailable |
40025 | Remote error |
40026 | Not configured |
错误码 | 描述 |
---|
401 | 未登录或token过期,请登录! |
403 | 没有相关权限 |
2006 | Please login first |
2007 | Request Header Error |
2008 | Password Error |
2009 | Too many failed attempt when inputing password |
90029 | Authentication error |
90001 | Invalid authorization. |
错误码 | 描述 |
---|
1010 | Missing parameter |
1011 | Parameter error |
1012 | Access speed is too fast! |
40000 | Parameter error. |
40001 | Missing Required Arguments |
40002 | MediaType not supported |
40003 | Signature configuration missing |
40040 | Parameter exceeds character length |
错误码 | 描述 |
---|
4008 | 商户基本信息已存在 |
4009 | 商户信息为空 |
4010 | 商户不存在 |
4011 | 商户信息不完整 |
4012 | 证件的国家信息为空 |
4015 | 保存资源失败 |
4023 | 保存数据失败 |
40004 | Merchant is now invalid |
40005 | App is invalid |
40006 | App not match |
错误码 | 描述 |
---|
1511 | Phone number format error |
1513 | Password cannot be empty |
1514 | Password must be 6-20 alphanumeric |
1523 | Account banned |
1534 | User ID does not exist |
1540 | OTP is wrong or invalid |
1551 | Please bind your mobile number |
1538 | Password reset failed |
1539 | Registration parameter failed |
错误码 | 描述 |
---|
40008 | Payment method not supported |
40009 | Currency not supported |
40010 | Reference should be unique |
40013 | Payment method invalid |
40016 | Payment order not exist / status error |
40017 | Refunds not supported |
40018 | Refund not allowed for unsuccessful orders |
40020 | Refund amount incorrect |
40022 | Refund currency mismatch |
40023 | Refund requested |
40030 | Failed to obtain the token |
40033 | Unsupported currency |
错误码 | 描述 |
---|
70001 | Verify Failed - User document id not exist |
70002 | Document Fail - User's KYC failed |
70003 | Legal risks |
70004 | Fraud Suspect |
70005 | Exceed total Transaction Limit |
70006 | Exceed Total Frequency Limit |
70007 | Invalid ID Number |
错误码 | 描述 |
---|
90002 | Invalid card number |
90003 | Invalid cvv |
90004 | Invalid amount |
90006 | Expired card |
90007 | Credit exceeded |
90016 | Insufficient funds |
90017 | Do not honor |
90018 | Contact issuer |
90024 | Duplicate request |
90025 | Card brand not supported |
90027 | Provider internal error |
90028 | Connection error |
错误码 | 描述 |
---|
40037 | The subscription product is not valid |
40038 | Consumer already subscribed |
40039 | Payment method not available for regular payment |
错误码 | 描述 |
---|
51001 | The card Token does not exist or has been cancelled |
51002 | The information on the bound card has expired |
51003 | The card Token failed to be saved |
51004 | The order has been captured |
{
"code": "0",
"message": "succeeded",
"data": {
........
}
}
{
"code": "40010",
"message": "Reference should be unique for each transaction.",
"data": null
}
- 返回码统一由服务端定义,调用方不应根据
message
判断结果;
- 请开发人员在接入 API 时,仅根据
code
进行逻辑判断;
- 如需扩展新错误码,须提前在公共枚举
CodeEunm
中注册,避免重复。