FuturePay 系统错误码响应文档

适用范围:FuturePay 收单 API 接口返回的标准错误码

📖 一、文档说明

本文件用于说明 FuturePay 平台接口返回的标准错误码及其含义。 所有 API 响应遵循以下结构:

{
  "code": "错误码",
  "message": "错误信息",
  "data": {}
}
  • code:错误码(字符串类型)
  • message:错误描述(英文或中文)
  • data:响应数据(失败时为空或省略)

🧩 二、错误码分类总览

分类范围描述
成功响应0请求成功
系统错误500, 10000系统或远程调用异常
参数错误4001010~101240000请求参数错误
鉴权错误40140320062009登录、权限、Token 问题
商户/资源错误4008~4023商户或资源信息错误
账户/注册错误1511~1551用户注册、登录、手机号等问题
支付相关错误40008~40041900xx 系列支付、退款、卡片错误
KYC 风控错误70001~70007身份验证与风控相关
业务限制错误2511252430113014提现、充值、活动等限制
订阅 AutoDebit 错误40037~40039订阅相关异常
卡 Token 错误51001~51004卡片 Token 管理错误

✅ 三、详细错误码说明

以下为系统内常用错误码清单(已分组整理)👇


1. 通用类

错误码描述
0succeeded
10000remote error
400参数不正确 / 参数检验失败
500系统异常
20000Service Currently Unavailable
40025Remote error
40026Not configured

2. 登录与鉴权

错误码描述
401未登录或token过期,请登录!
403没有相关权限
2006Please login first
2007Request Header Error
2008Password Error
2009Too many failed attempt when inputing password
90029Authentication error
90001Invalid authorization.

3. 参数与请求错误

错误码描述
1010Missing parameter
1011Parameter error
1012Access speed is too fast!
40000Parameter error.
40001Missing Required Arguments
40002MediaType not supported
40003Signature configuration missing
40040Parameter exceeds character length

4. 商户与资源相关

错误码描述
4008商户基本信息已存在
4009商户信息为空
4010商户不存在
4011商户信息不完整
4012证件的国家信息为空
4015保存资源失败
4023保存数据失败
40004Merchant is now invalid
40005App is invalid
40006App not match

5. 用户输入信息相关

错误码描述
1511Phone number format error
1513Password cannot be empty
1514Password must be 6-20 alphanumeric
1523Account banned
1534User ID does not exist
1540OTP is wrong or invalid
1551Please bind your mobile number
1538Password reset failed
1539Registration parameter failed

6. 支付与订单类

错误码描述
40008Payment method not supported
40009Currency not supported
40010Reference should be unique
40013Payment method invalid
40016Payment order not exist / status error
40017Refunds not supported
40018Refund not allowed for unsuccessful orders
40020Refund amount incorrect
40022Refund currency mismatch
40023Refund requested
40030Failed to obtain the token
40033Unsupported currency

7. KYC / 风控类

错误码描述
70001Verify Failed - User document id not exist
70002Document Fail - User's KYC failed
70003Legal risks
70004Fraud Suspect
70005Exceed total Transaction Limit
70006Exceed Total Frequency Limit
70007Invalid ID Number

8. 银行卡与支付通道错误

错误码描述
90002Invalid card number
90003Invalid cvv
90004Invalid amount
90006Expired card
90007Credit exceeded
90016Insufficient funds
90017Do not honor
90018Contact issuer
90024Duplicate request
90025Card brand not supported
90027Provider internal error
90028Connection error

9. AutoDebit(订阅支付)类

错误码描述
40037The subscription product is not valid
40038Consumer already subscribed
40039Payment method not available for regular payment

10. 卡 Token 管理

错误码描述
51001The card Token does not exist or has been cancelled
51002The information on the bound card has expired
51003The card Token failed to be saved
51004The 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 中注册,避免重复。