List my export tasks
Merchant account
Keyset pagination, strictly descending by (created_at, id), without OFFSET.
- Five
statusvalues:queued·building·ready·failed·expired. Display unknown values unchanged. We may add a state through a database change; silently usingdefaultto display processing would hide the new state. rows/bytesare meaningful only afterready; before that they are 0.errorgives one of four failure reasons:too_large(over 20,000 rows; shortendaysor export by month),unknown_kind,build_timeout, orbuild_failed. An unexplained failure only creates a support ticket, so the reason must be returned.expires_atis when the generated file is removed; retained for 7 days afterready.
⚠ This list does not include download_url. Call GET /v1/reports/{id} before downloading.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
limit |
integer | Optional | Defaults to 20, maximum 100. |
cursor |
string | Optional | The previous page's next_cursor, an opaque string. |
Response
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
}403
insufficient_scope: missing merchant:read.Request
curl -X GET 'https://api.zinfra.vip/v1/reports' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zinfra.vip/v1/reports", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
},
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.get(
"https://api.zinfra.vip/v1/reports",
headers={
"x-auth-token": "Bearer $TOKEN",
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("GET", "https://api.zinfra.vip/v1/reports",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// Decode amount fields as string, not float64.HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zinfra.vip/v1/reports"))
.header("x-auth-token", "Bearer $TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/v1/reports');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
],
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not 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
}