读这张卡的商户 / MCC 名单
代会员调用 · 必带
x-on-behalf-of
「这张卡能在哪一类商户消费」。限的是对象,不是金额 ——
与 /limits 是两件正交的事,别指望其中一个能替另一个把关。
⚠ synced: false 是这个响应里最要紧的一位。
规则的执行点在上游发卡网络,不在我方的库里。false 表示我方记着
这份名单、但上游还没确认收下(上一次下发结果不明)——
也就是说这张卡此刻可能仍然不受限。别把它当成生效的展示给终端用户。
rule_type: null = 这张卡没配过名单,哪儿都能刷。
与「白名单为空」不是一回事 —— 后者的含义是「哪儿都不许刷」,
所以我方在写入时直接拒掉空名单(要取消限制请用 DELETE)。
路径参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id |
string | 必填 | 卡 id |
请求头
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
x-on-behalf-of |
string | 必填 | 代哪个会员调用 |
响应
200OK
{
"id": "crd_9f2c1b7a-3d51-4a2e-9c08-6b1f0d4e77aa",
"rule_type": "white",
"merchant_names": [
"AMAZON",
"UBER"
],
"mcc_list": [
"5411",
"4121"
],
"synced": true,
"synced_at": "2026-08-13T02:11:47.000Z"
}404
not_found 卡不存在或不在这个会员名下请求
curl -X GET 'https://api.zise.com/v1/cards/{id}/merchant-rules' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID'const res = await fetch("https://api.zise.com/v1/cards/{id}/merchant-rules", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
});
// 金额按字符串读,别让它变成 number
const data = await res.json();import requests
res = requests.get(
"https://api.zise.com/v1/cards/{id}/merchant-rules",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()req, _ := http.NewRequest("GET", "https://api.zise.com/v1/cards/{id}/merchant-rules",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
req.Header.Set("x-on-behalf-of", "$MEMBER_ID")
res, err := http.DefaultClient.Do(req)
// 金额字段用 string 接,不要 float64HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zise.com/v1/cards/{id}/merchant-rules"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// 金额字段用 String / BigDecimal,不要 double$ch = curl_init('https://api.zise.com/v1/cards/{id}/merchant-rules');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
'x-on-behalf-of: $MEMBER_ID',
],
]);
$res = curl_exec($ch);
// 金额用 bcmath / 字符串,不要 floatval
200
{
"id": "crd_9f2c1b7a-3d51-4a2e-9c08-6b1f0d4e77aa",
"rule_type": "white",
"merchant_names": [
"AMAZON",
"UBER"
],
"mcc_list": [
"5411",
"4121"
],
"synced": true,
"synced_at": "2026-08-13T02:11:47.000Z"
}