产品详情
API参数 银行卡二三四要素综合实名认证 调用地址: http,https://b2bxzhv1.api.bdymkt.com/4bzxszhv1 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- bankcard
- string
- false
- --
- 银行卡号
- realname
- string
- false
- --
- 姓名
- customername
- string
- false
- --
- 商户名称
- scenecode
- string
- false
- --
- 商户业务应用场景(01:直销银行;02:消费金融;03:银行二三类账户开户;04:征信;05:保险;06:基金;07:证券;08:租赁;09:海关申报;99:其他)
- idcard
- string
- false
- --
- 证件号
- idcardtype
- string
- false
- --
- 证件类型(选填) 01:身份证(默认) 02:军官证 03:护照 04:回乡证 05:台胞证 06:警官证 07:士兵证 08:驾驶证 09:学⽣证 10:港澳证 99:其它证件
- mobile
- string
- false
- --
- 银行卡预留手机号
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;
// 银行卡二三四要素综合实名认证 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "http://gwgp-nnw4gcj4hvy.n.bdcloudapi.com/4bzxszhv1";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {"jobid":"ZT20201025151858701279801","errmsg":"验证通过","errcode":"00000","responsetime":"20201025151900249","result":{"provincename":"北京市","areaname":"北京","bankname":"中国建设银行","bankalias":"CCB","bankcardtype":"借记卡","weburl":"http://www.ccb.com/","logo":"","isluhn":"true","tel":"95533","cardname":"龙卡通","carddigits":"19","bindigits":"6","cardbin":"621700"}}
失败返回示例 {"jobid":"ZT20201025154958701279362","errmsg":"请求姓名格式错误","errcode":"210J4","responsetime":"20201025151900249","result":{"provincename":"北京市","areaname":"北京","bankname":"中国建设银行","bankalias":"CCB","bankcardtype":"借记卡","weburl":"http://www.ccb.com/","logo":"","isluhn":"true","tel":"95533","cardname":"龙卡通","carddigits":"19","bindigits":"6","cardbin":"621700"}}
错误码定义
