验证错误,尚未为您的帐户启用以下报告:身份

Validation Error, following reports have not been enabled for your account: identity

我正在尝试实施 Onfido 以从我们的应用程序(IOS 和 Android)中验证我们客户的身份(驾驶执照或护照)。我们实施了 Onfido 并从我们的应用程序(通过 SDK)生成申请人 ID,并在后端(在我们的服务器上)接收它,并将其与用户信息一起保存在我们的数据库中。

我正在尝试通过执行与 Onfido documentation 相同的 API 请求来创建检查,但我得到 "validation error"。我在这里分享 JSON 下面的回复:

{
    "error": {
        "type": "validation_error",
        "message": "There was a validation error on this request",
        "fields": {
            "base": [
                "The following reports have not been enabled for your account: identity. You can see the list of enabled reports using the /report_type_groups API endpoint. Please contact client-support@onfido.com if you have questions regarding your account setup."
            ]
        }
    }
}

如上述错误信息中所述。它强调从我们的仪表板启用报告,但我无法找到从仪表板启用它的选项。我还尝试从 API 端点获取 "Report Type Groups" 的列表,但我得到的是空列表。

我的问题是:

  1. 我如何才能从仪表板部分启用报告?
  2. 如何从仪表板创建 "Report Type Groups"?

    https://api.onfido.com/report_type_groups (当前它响应为 Not Found

  3. reports[][name] 参数中从 API 创建 CHECK 时我需要传递什么(如果是驾驶执照或护照验证)?

我在 api@onfido.com 向 Onfido 技术支持询问了这些问题,根据我的理解,这些是上述问题的答案。

  1. 我怎样才能从仪表板部分启用报告?
    答案: 您无法从仪表板或 API 启用报告。默认情况下,他们的帐户启用了文档和面部相似性报告。如果您想添加更多报告类型,请联系 client-support@onfido.com.
  2. 如何从仪表板创建 "Report Type Groups"?
    答案: 如文档中所述,您无法从仪表板添加报告类型组。同样,这可以通过联系 client-support@onfido.com 为您完成。
  3. key: reports[][name] parameter 中从 API 创建 CHECK 时我需要通过什么(如果是驾驶执照或护照验证)?
    答案:对于文档报告,key: reports[][name] 应该有 value: (str)document。这是您检查护照、驾驶执照、身份证(包括 Aadhar)等时需要通过的文件。

请注意,Aadhar 报告不是文件检查,而是根据数据库验证申请人对象提供的 Aadhar 编号。当然,它可以 运行 与文件检查结合使用,以验证文件中的详细信息是否与 Aadhar 数据库相匹配。

我和 Onfido V2

有同样的问题

您需要通过下面的命令

检查您的 report_type_groups
curl https://api.onfido.com/v2/report_type_groups -H "Authorization: Token token=test_token"

如果您的帐户启用了 KYC 变体,则必须通过创建检查请求传递变体。像这样:

curl https://api.onfido.com/v2/applicants/APPLICANT_ID/checks -H "Authorization: Token token=test_token" -d "type=standard" -d 'reports[][name]=identity' -d 'reports[][variant]=kyc'

Create an identity check && identity-verification