可申请的卡产品(按商户授权的 BIN 过滤)
商户自身
列出你这个商户名下已启用的卡产品。BIN 授权表是收紧手段:
你一条授权行都没有 = 不限制;有授权行 = 只回授权过的那几个 BIN。
下单时把这里的 id 原样传成 product_id。 它是我方的产品标识,
一款卡的介质、BIN、卡面与发行安排全部由它唯一确定 —— 你不需要、
也拿不到「这张卡由谁发」那一层。
⚠ 还差一项:source_asset(扣款资产)这份清单目前不返回,
合法值取 GET /v1/assets。传一个不在该产品允许清单内的,
回 product_not_available。
前置条件
- 该产品在我方后台已启用(
enabled = 1) - 该 BIN 已授权给你(或你名下一条授权行都没有)
响应
200OK。不分页,
has_more 恒为 false。{
"data": [
{
"id": "cpd_3",
"form_factor": "virtual_card",
"currency": "USD",
"bin": "5240",
"scheme": "MasterCard",
"card_types": [
"recharge"
]
}
],
"next_cursor": null,
"has_more": false
}403
insufficient_scope 这把 Key 没有 cards:read请求
curl -X GET 'https://api.zise.com/v1/cards/products' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zise.com/v1/cards/products", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
},
});
// 金额按字符串读,别让它变成 number
const data = await res.json();import requests
res = requests.get(
"https://api.zise.com/v1/cards/products",
headers={
"x-auth-token": "Bearer $TOKEN",
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()req, _ := http.NewRequest("GET", "https://api.zise.com/v1/cards/products",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// 金额字段用 string 接,不要 float64HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zise.com/v1/cards/products"))
.header("x-auth-token", "Bearer $TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// 金额字段用 String / BigDecimal,不要 double$ch = curl_init('https://api.zise.com/v1/cards/products');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
],
]);
$res = curl_exec($ch);
// 金额用 bcmath / 字符串,不要 floatval
200
{
"data": [
{
"id": "cpd_3",
"form_factor": "virtual_card",
"currency": "USD",
"bin": "5240",
"scheme": "MasterCard",
"card_types": [
"recharge"
]
}
],
"next_cursor": null,
"has_more": false
}