可用码制(随上游同步,不是静态常量)
商户自身
不是静态常量。 上游的码制表会变,我方按同步结果下发。
把它硬编码进你的界面,等上游下线一种码制时你会继续把它显示给用户。
⚠ 上游已经不返回的码制不会出现在这份清单里,但我方的历史订单仍
保留着它(要靠它解释「这一单当时走的什么码」)。所以你可能在订单上
看到一个不在这份清单里的码制 —— 那是正常的,不是漂移,**别拿它去
校验历史单**。
region 是 ISO 3166-1 alpha-2;可能是空串 —— 上游对少数几条
走廊确实没给国家。按空串处理成「地区未知」,别过滤掉它。
响应
200不分页。按
region + code 排序。{
"data": [
{
"code": "PROMPTPAY",
"name": "PromptPay",
"currency": "THB",
"region": "TH"
},
{
"code": "QRIS",
"name": "QRIS",
"currency": "IDR",
"region": "ID"
}
],
"next_cursor": null,
"has_more": false
}403
insufficient_scope —— 这把 Key 没有 qrpay:read请求
curl -X GET 'https://api.zise.com/v1/qrpay/schemes' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zise.com/v1/qrpay/schemes", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
},
});
// 金额按字符串读,别让它变成 number
const data = await res.json();import requests
res = requests.get(
"https://api.zise.com/v1/qrpay/schemes",
headers={
"x-auth-token": "Bearer $TOKEN",
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()req, _ := http.NewRequest("GET", "https://api.zise.com/v1/qrpay/schemes",
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/qrpay/schemes"))
.header("x-auth-token", "Bearer $TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// 金额字段用 String / BigDecimal,不要 double$ch = curl_init('https://api.zise.com/v1/qrpay/schemes');
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": [
{
"code": "PROMPTPAY",
"name": "PromptPay",
"currency": "THB",
"region": "TH"
},
{
"code": "QRIS",
"name": "QRIS",
"currency": "IDR",
"region": "ID"
}
],
"next_cursor": null,
"has_more": false
}