APISpace 银行卡四要素API

APISpace 的 银行卡四要素API,支持校验银行卡号、姓名、证件号、手机号码是否属于同一个人的信息。输入银行卡号、姓名、身份证号等基本信息,检验银行卡是否为该身份所有,手机号是否为银行卡绑定手机号。

APISpace 上面还有很多各种各样的API,并且所有API提供免费的调用次数,大家感兴趣欢迎访问官网apispace.com,eolink用户可以直接使用eolink的账号登录哟~

接口使用起来也是超级方便,仅需要以下短短几步,就能够实现了:

  1. 到 APISpace 注册账户
  2. 申请 银行卡四要素 API
  3. 申请之后就可以使用该接口了
接口PHP请求示例
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append(new http\QueryString(array({
  "name" => "",
  "idNum" => "",
  "cardNo" => "",
  "mobile" => ""
))));

$request->setRequestUrl("eolink.o.apispace.com/bankcard-4/card-auth");
$request->setRequestMethod("POST");
$request->setBody($body);

$request->setHeaders(array(
  "X-APISpace-Token" => "",
  "Authorization-Type" => "apikey",
  "Content-Type" => ""
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
接口返回示例
{
    chargeStatus: "1",
    message: "成功",
    data: {
        orderNo: "011569554991100011",
        handleTime: "2018-04-12 18:08:03",
        result: "02",
        bankName: "",
        cardType: "",
        cardCategory: "***",
        remark: "信息认证未通过(发卡行无此卡号)"
    },
    code: "200000"
}

你可能感兴趣的:(API,银行卡四要素)