GET
/v1/deposits
入金记录(我方账本视角)
Scope
deposits:read
代会员调用 · 必带 x-on-behalf-of
列的是我方账本里真的记过的那些入金凭证,不是你那边的入金台账。
对账时以这一份为准:你上报了但这里没有的,就是没记上。
id 是 dep_ + 你当初传的 reference —— 拿它直接跟你自己的
台账对,不需要额外映射表。
⚠ 这是真游标分页,与 GET /v1/transactions 同一套。
照 while (has_more) 写就对了;只取第一页会静默漏掉更早的记录。
查询参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
limit |
integer | 可选 | 缺省 20,上限 100。 |
cursor |
string | 可选 | 上一页的 next_cursor 原样回传。 |
请求头
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
x-on-behalf-of |
string | 必填 | 查谁的入金记录 |
响应
200OK
{
"data": [
{
"id": "dep_0xa3f1c2...e9:0",
"asset": "USDT",
"amount": "1500.000000",
"status": "credited",
"created_at": "2026-08-12T08:04:57Z"
}
],
"next_cursor": null,
"has_more": false
}404
member_not_found 会员不存在 / 属于别的商户 / 已停用
调用样例
curl -X GET 'https://api.zise.com/v1/deposits' \
-H 'authorization: Bearer $TOKEN' \
-H 'x-zise-merchant: $MERCHANT_ID' \
-H 'x-on-behalf-of: $MEMBER_ID'
const res = await fetch(
"https://api.zise.com/v1/deposits",
{
method: "GET",
headers: {
"authorization": "Bearer $TOKEN",
"x-zise-merchant": "MERCHANT_ID",
"x-on-behalf-of": "MEMBER_ID"
},
},
);
// 金额一律按字符串读,不要 JSON.parse 成 number
const data = await res.json();
import requests
res = requests.get(
"https://api.zise.com/v1/deposits",
headers={
"authorization": "Bearer $TOKEN",
"x-zise-merchant": "$MERCHANT_ID",
"x-on-behalf-of": "$MEMBER_ID"
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()