发起ai鉴证
服务说明
[!NOTE]
发起ai鉴证
http请求方式
[!NOTE]
POST application/x-www-form-urlencoded
http请求地址
[!NOTE]
$SERVICE_URL/v2/auth/startAiAuth #其中$SERVICE_URL为生产或测试的地址
http请求参数
除公共必填参数外,还需要传以下参数
参数 | 类型 | 是否必填 | 默认值 | 说明 |
---|---|---|---|---|
orderNo | string | * | 订单号 最大支持32个字符 | |
name | string | * | 姓名 | |
identityCard | string | * | 身份证号 | |
backUrl | string | * | 同步回调地址 | |
notifyUrl | string | ? | 异步通知地址 | |
willContentList | JSONArray | * | AI鉴证问题及标准答案;例如:[{'question':'确认是xxx本人吗','answers':['是的','对的']}] |
willContentList字段说明
[!NOTE]
willContentList AI 鉴证问题及标准答案。为JSONArray结构,参数说明如下:参数
类型 | 是否必填 | 默认值 | 说明 | |
---|---|---|---|---|
question | string | * | 问题,例如:”确认你是张三本人吗“ | |
answers | arry | * | 答案,支持多个或的关系。例如:“是的” |
http返回参数
[!NOTE]
返回response为application/json的数据,其字段说明如下
参数 | 类型 | 是否必返回 | 说明 |
---|---|---|---|
success | bool | * | 成功true;异常false |
msg | string | ? | 异常时,返回异常原因 |
resultCode | string | ? | 异常时返回 |
data | object | ? | 返回业务内容 |
data参数说明
参数 | 类型 | 是否必返回 | 说明 |
---|---|---|---|
startUrl | string | * | ai鉴证url , 链接地址有效期24小时 |
[!NOTE]
返回结果,参考:
//正确响应:
{"data":{"startUrl":"https://tesuxomm-user.sanxxxxxxxx"},"success":true}
//错误响应:
{"msg":"回调地址不能为空","resultCode":"HTTP_PARAM_ERROR","success":false}