Z Zise Developers
GET /v1/sandbox/upstream-behaviors

沙盒 · 当前为各家上游预置了什么行为

Scope merchant:read 商户自身

恒定返回四家(uqpay / photonpay / paydify / cobo),

没注入过的那几家显示 success —— 缺省不是「未设置」,是「一切正常」。

本期这份清单只能读回你自己写进去的值,业务链路还不消费它。

POST /v1/sandbox/upstream-behavior 的说明。

响应

200OK
{
  "data": [
    {
      "upstream": "uqpay",
      "behavior": "unknown"
    },
    {
      "upstream": "photonpay",
      "behavior": "success"
    },
    {
      "upstream": "paydify",
      "behavior": "success"
    },
    {
      "upstream": "cobo",
      "behavior": "success"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
404不在沙盒环境
调用样例
curl -X GET 'https://api.zise.com/v1/sandbox/upstream-behaviors' \
  -H 'authorization: Bearer $TOKEN' \
  -H 'x-zise-merchant: $MERCHANT_ID'
const res = await fetch(
  "https://api.zise.com/v1/sandbox/upstream-behaviors",
  {
    method: "GET",
    headers: {
      "authorization": "Bearer $TOKEN",
      "x-zise-merchant": "MERCHANT_ID"
    },
  },
);
// 金额一律按字符串读,不要 JSON.parse 成 number
const data = await res.json();
import requests

res = requests.get(
    "https://api.zise.com/v1/sandbox/upstream-behaviors",
    headers={
        "authorization": "Bearer $TOKEN",
        "x-zise-merchant": "$MERCHANT_ID"
    },
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()