开户状态查询

建议超时 5000ms。

接口说明

请求方式:【POST】/v1/wallet/account/opened

请求域名:【主域名】https://api.baofu.com

请求参数

Header 参数

参数名 类型 必填 描述
Authorization string true 请参考【开发指引-整体说明】生成认证信息
Accept string true 请设置为 application/json
Content-Type string true 请设置为 application/json

Body 参数

参数名 类型 必填 描述
identity_document_type string true 证件类型;最长 16
identity_document_no string true 证件号(敏感字段,须数字信封加密);最长 64

请求示例

{
  "identity_document_type": "ID_CARD",
  "identity_document_no": "310101199001011234"
}

应答参数

200 OK

参数名 类型 必填 描述
account_opened boolean true 未开户固定 false;已开户固定 true
customer_no string true 客户号(已开户)
contract_no string true 签约号(已开户)
create_time string true 开户时间,ISO 8601(已开户)

应答示例

200 OK

{
  "account_opened": false
}

应答示例

200 OK

{
  "account_opened": true,
  "customer_no": "CUS202605180001",
  "contract_no": "WA2026051800001",
  "create_time": "2026-05-18T09:00:00+08:00"
}

错误码

公共错误码

状态码 错误码 描述 解决方案
401 SIGN_ERROR 验证不通过 请参阅【开发指引-整体说明】排查签名
400 PARAM_ERROR 参数错误 请根据错误提示正确传入参数
500 SYSTEM_ERROR 系统异常,请稍后重试 请稍后重试

业务错误码

状态码 错误码 描述 解决方案
非 200 INVALID_PARAMETER 证件参数错误 修正参数
非 200 UPSTREAM_TIMEOUT 查询异常 稍后重试

应答示例

失败

{
  "code": "INVALID_PARAMETER",
  "message": "交易失败"
}

应答示例

失败

{
  "code": "UPSTREAM_TIMEOUT",
  "message": "交易失败"
}

应答示例

失败

{
  "code": "SYSTEM_ERROR",
  "message": "交易失败"
}