Z Zise Developers

我的导出任务列表

GET /v1/reports scope: merchant:read
商户自身

keyset 游标,按 (created_at, id) 严格递减,不用 OFFSET

  • status 五档:queued · building · ready · failed ·

expired认不出的原样回显(我方加一档时只改库,

静默 default 成「处理中」会让新增的那一档在你的界面上消失)。

  • rows / bytes 只在 ready 之后有意义,此前是 0。
  • error 是失败原因,四种:too_large(超过 2 万行,缩短 days

或分月导)· unknown_kind · build_timeout · build_failed

一个没有原因的「失败」只会变成一张工单,所以它必须出参。

  • expires_at 是生成件的下架时刻(ready 之后保留 7 天)。

这一页不带 download_url —— 取件前先 GET /v1/reports/{id}

查询参数

字段类型必填说明
limit integer 可选 缺省 20、上限 100
cursor string 可选 上一页的 next_cursor(不透明串)

响应

200OK
{
  "data": [
    {
      "id": "rep_4c8a10d2-91f7-4a3e-b0c6-52d8e7f19b34",
      "kind": "statements",
      "status": "ready",
      "rows": 1842,
      "bytes": 214093,
      "error": "",
      "expires_at": "2026-08-20T05:00:07.220Z",
      "created_at": "2026-08-13T05:00:00.000Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
403insufficient_scopemerchant:read
请求
curl -X GET 'https://api.zise.com/v1/reports' \
  -H 'x-auth-token: Bearer $TOKEN'
const res = await fetch("https://api.zise.com/v1/reports", {
  method: "GET",
  headers: {
    "x-auth-token": "Bearer $TOKEN",
  },
});
// 金额按字符串读,别让它变成 number
const data = await res.json();
import requests

res = requests.get(
    "https://api.zise.com/v1/reports",
    headers={
        "x-auth-token": "Bearer $TOKEN",
    },
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()
req, _ := http.NewRequest("GET", "https://api.zise.com/v1/reports",
    nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// 金额字段用 string 接,不要 float64
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://api.zise.com/v1/reports"))
    .header("x-auth-token", "Bearer $TOKEN")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
// 金额字段用 String / BigDecimal,不要 double
$ch = curl_init('https://api.zise.com/v1/reports');
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": "rep_4c8a10d2-91f7-4a3e-b0c6-52d8e7f19b34",
      "kind": "statements",
      "status": "ready",
      "rows": 1842,
      "bytes": 214093,
      "error": "",
      "expires_at": "2026-08-20T05:00:07.220Z",
      "created_at": "2026-08-13T05:00:00.000Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}