文档中心 > API类目 > 聚安全API

alibaba.security.jaq.rp.ocr.check (ocr同时实名校验)

聚安全实人认证证件OCR识别功能接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
verify_token String 必须 96203ef1639346d6a9ea752c7a41cb68 token
image_urls Json 必须 {"key":"value"} 要识别的信息

响应参数

名称 类型 示例值 描述
data RpidCard {} result
  • rp_idcard_image
  • RpidCardImage
  • {}
  • RPIDCardImage
  • └ back_image_url
  • String
  • url
  • backImageUrl
  • └ card_type
  • String
  • IdentityCard
  • cardType
  • └ front_image_url
  • String
  • url
  • frontImageUrl
  • └ address
  • String
  • 北京
  • address
  • └ birth_day
  • Date
  • 19890909
  • birthDay
  • biz_error_code
  • RpErrorCode
  • bizErrorCode
  • └ error_code
  • Number
  • errorCode
  • └ error_msg
  • String
  • errorMsg
  • └ error_name
  • String
  • errorName
  • └ card_type
  • String
  • IdentityCard
  • cardType
  • └ code
  • String
  • 身份证号
  • code
  • └ expiry
  • String
  • 20190909
  • expiry
  • └ name
  • String
  • 李三
  • name
  • sex
  • RpSex
  • {}
  • sex
  • └ type
  • Number
  • MAN
  • type
  • └ url_back_image
  • String
  • url
  • urlBackImage
  • └ url_front_image
  • String
  • url
  • urlFrontImage

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityJaqRpOcrCheckRequest req = new AlibabaSecurityJaqRpOcrCheckRequest();
req.setVerifyToken("96203ef1639346d6a9ea752c7a41cb68");
req.setImageUrlsString("{\"key\":\"value\"}");
AlibabaSecurityJaqRpOcrCheckResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_jaq_rp_ocr_check_response>
    <data>
        <rp_idcard_image>
            <back_image_url>url</back_image_url>
            <card_type>IdentityCard</card_type>
            <front_image_url>url</front_image_url>
        </rp_idcard_image>
        <address>北京</address>
        <birth_day>19890909</birth_day>
        <biz_error_code>
            <error_code></error_code>
            <error_msg></error_msg>
            <error_name></error_name>
        </biz_error_code>
        <card_type>IdentityCard</card_type>
        <code>身份证号</code>
        <expiry>20190909</expiry>
        <name>李三</name>
        <sex>
            <type>MAN</type>
        </sex>
        <url_back_image>url</url_back_image>
        <url_front_image>url</url_front_image>
    </data>
</alibaba_security_jaq_rp_ocr_check_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案
isp.server-error 服务端错误 稍后重试
isv.param-error 请求参数错误 检测入参

API工具

如何获得此API

FAQ

返回
顶部