| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| bankcard | string | 是 | 银行卡号 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| bankcard | string | 银行卡号 |
| name | string | 卡名称 |
| province | string | 省 |
| city | string | 市 |
| type | string | 银行卡类型 |
| len | string | 卡号长度 |
| bank | string | 银行名称 |
| logo | string | 银行logo 有80、120、200三种尺寸 |
| tel | string | 银行电话 |
| website | string | 银行网站 |
| iscorrect | string | 卡号校验是否正确 1正确 0错误 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$bankcard = '6212261202011584349';//银行卡号号
$url = "https://api.binstd.com/bankcard/query?appkey=$appkey&bankcard=$bankcard";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['bankcard'].' '.$result['name'].' '.' '.$result['type'].' '.'
';
echo $result['province'].' '.$result['city'].'
';
echo $result['bank'].' '.$result['logo'].' '.$result['tel'].'
';
echo $result['website'].' '.$result['len'].' '.$result['iscorrect'].'
';
{
"status": "0",
"msg": "ok",
"result": {
"bankcard": "6212261202011594349",
"name": "牡丹卡普卡",
"province": "浙江",
"city": "杭州",
"type": "借记卡",
"len": "19",
"bank": "中国工商银行",
"logo": "http://www.jisuapi.com/api/bankcard/upload/80/2.png",
"tel": "95588",
"website": "http://www.icbc.com.cn",
"iscorrect": "0"
}
}
| 代号 | 说明 |
|---|---|
| 201 | 银行卡号为空 |
| 202 | 银行卡号不正确 |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 名称 | 权限 | 价格 | |
|---|---|---|---|
| 免费套餐 | 5次 | 免费 | |
| Level1 | 20000次 | 230.00元 | |
| Level2 | 50000次 | 560.00元 | |
| Level3 | 70000次 | 760.00元 |
开通账号: