POST /apiv2/reports/statement
Account transactions
The same endpoint returns the eight supported Transactions views for dashboard tables and exports them to CSV/ZIP. Send type: "tx_statement"; the original address-based request documented below remains supported. All modes use the same X-API-KEY header.
Read a page immediately
action: "list" returns data.rows, totals, total, pagination, the resolved period, and meta with owned filter options. Money is returned as exact decimal strings. There is no report job to wait for. All eight views are supported: services, deposits, conversions, withdrawals, aml, markup, referrals, refunds.
{
"type": "tx_statement",
"action": "list",
"view": "deposits",
"period": "7d",
"acct": "all",
"offset": 10,
"limit": 11,
"tz": "Europe/Podgorica"
}limit is 1–100 (dashboard presets: 10/25/50/100). Use one-based page or zero-based offset, never both; offset 10 and limit 11 select rows 11–21 inclusive. period accepts all, today, yesterday, 7d, lastweek, month, prevmonth, custom. For custom dates send both date_from and date_to (inclusive, earliest 2025-01-01), or from/to; do not combine dates with a relative period. tz is an IANA timezone, default UTC. acct is own, subs, all, or an owned subaccount ID. q searches an exact ID/address/hash; svc, ref, sub filter services, referrals and markup. Foreign IDs are rejected.
For filter options alone send {"type":"tx_statement","action":"metadata"} with no other fields. Listing already includes the options needed by its view. Reading history requires authentication, without the export balance check.
period: "all" is the default. It starts at 2025-01-01 00:00 in tz and ends at the current query time, or at admission time for an export. It does not include records before that boundary. month covers only the current calendar month. An export freezes these boundaries when it is accepted.
acct: "all" includes the owner and subaccounts currently owned by that account. markup and referrals are owner-scoped views; sub and ref narrow their respective selections. The eight views describe the documented account operations; they are not a complete accounting ledger.
Coverage follows the dashboard’s eight Transactions views. Commercial postpaid charges, commercial payments/allocations and manual balance adjustments are outside these views. Complete historical operations of deleted subaccounts are not guaranteed to be included. Some views overlap: a USDT conversion can appear in deposits and conversions; AML can appear in services and AML. Do not sum every CSV together to reconcile the account balance.
Create the complete file
action: "export" (the default action for this type) returns an order number immediately. One view defaults to plain UTF-8 CSV; several views default to ZIP containing one CSV for each selected view. The export contains the full filtered selection, not just the displayed page.
All eight views over all available history — one ZIP containing eight separate CSV files:
curl --fail-with-body -sS -X POST 'https://netts.io/apiv2/reports/statement' \
-H 'X-API-KEY: your-api-key' \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "tx_statement",
"action": "export",
"views": [
"services",
"deposits",
"conversions",
"withdrawals",
"aml",
"markup",
"referrals",
"refunds"
],
"period": "all",
"acct": "all",
"tz": "UTC",
"format": "zip",
"client_request_id": "tx-all-20261117-1"
}'For one CSV, select exactly one view. This example exports all available deposits. format: "csv" with multiple views is rejected; use ZIP for several views.
curl --fail-with-body -sS -X POST 'https://netts.io/apiv2/reports/statement' \
-H 'X-API-KEY: your-api-key' \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "tx_statement",
"action": "export",
"views": [
"deposits"
],
"period": "all",
"acct": "all",
"tz": "UTC",
"format": "csv",
"client_request_id": "tx-deposits-all-20261117-1"
}'Use the existing GET /apiv2/reports/{order_no} for status and GET /apiv2/reports/{order_no}/download for the file, with the same key. Download when status is done; stop polling on error or expired. A single CSV is served as text/csv, and ZIP as application/zip. These transaction files are retained for 7 days after completion; the original blockchain files below keep their separate 30-day retention. Downloads include X-Artifact-SHA256.
Take data.order_no from the create response and replace REPxxxxxxxxxxxx below. Read data.status from the status response. Run the download command only after done; stop on error or expired and inspect data.error_code / data.error_message.
Also check data.expires_at: after that instant download returns 410, even if data.status still says done until cleanup runs. After error or expiry, use a new request identifier to request another export; the old identifier returns the old job.
curl --fail-with-body -sS 'https://netts.io/apiv2/reports/REPxxxxxxxxxxxx' \
-H 'X-API-KEY: your-api-key'
curl --fail-with-body -sS -OJ 'https://netts.io/apiv2/reports/REPxxxxxxxxxxxx/download' \
-H 'X-API-KEY: your-api-key'Transaction exports allow up to 200000 rows and 256 MiB across the whole file, with at most 3 queued/running exports per owner by default. A full queue returns 429. The existing positive-balance/active-subscription check applies to export; no new fee is introduced. Retry the same body with the same client_request_id or X-Idempotency-Key to retrieve the same order; a changed body returns 409. Without either identifier, each submission creates a new export. Invalid transaction filters return 400, unavailable data returns 503, and another owner’s data or order returns 404.
These are failure limits, not truncation limits: the 200000 data rows are counted across all selected CSV files. Both their combined uncompressed CSV bytes and the final CSV/ZIP artifact must fit within 256 MiB. If a limit is exceeded after admission, the job becomes error with error_code: "TX_STATEMENT_TOO_LARGE"; no partial file is published. There is no automatic continuation. Request fewer views or smaller date periods. Date filters have day precision: if one view for one day still exceeds a limit, dates cannot split that day further.
For exports, the balance condition is balance > 0 OR an active reports subscription; failure is 402 / NETTS_BALANCE_REQUIRED. The transaction queue limit gives 429 / TX_QUEUE_FULL. Listing, metadata, status and download do not repeat that export balance check; authentication and ownership checks still apply. 503 describes a synchronous data failure; a failure after a job is accepted is reported through its error status.
A retry with the same identifier returns the original frozen period, even on a later day. Use a new identifier when requesting a fresh export.
Blockchain statements by address
The remaining instructions describe the original address/token request and its formats, retention and admission rules.
Order a statement file — every operation of one token over a period, as CSV or PDF. The file is built in the background: the request returns an order number straight away, and the file is fetched once it is ready.
For a quick look at the same data without waiting, use the statement preview instead — it answers immediately but caps the number of operations it returns.
Endpoint base URL
https://netts.io/apiv2/reportsRequest headers
| Header | Required | Description |
|---|---|---|
X-API-KEY | yes | API key from the dashboard |
X-Idempotency-Key | no | Your own key, 12–128 chars of A-Z a-z 0-9 . _ : - |
Order a file
curl -s -X POST 'https://netts.io/apiv2/reports/statement' \
-H 'X-API-KEY: your-api-key' \
-H 'Content-Type: application/json' \
-d '{
"client_request_id": "stmt-2026-09-usdt",
"address": "TXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"token_id": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"date_from": "2026-09-01",
"date_to": "2026-09-30",
"format": "csv"
}'{
"status": "success",
"code": 0,
"msg": "created",
"data": {
"order_no": "REPxxxxxxxxxxxx",
"client_request_id": "stmt-2026-09-usdt",
"type": "statement",
"status": "queued",
"quota_bucket": "free",
"progress_pct": 0,
"address": "TXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"token_id": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"date_from": "2026-09-01",
"date_to": "2026-09-30",
"format": "csv",
"created_at": "2026-09-06 17:01:51.868542+00:00",
"finished_at": null,
"expires_at": null,
"artifact_sha256": null,
"artifact_size": null,
"download_url": null
}
}| Field | Required | Notes |
|---|---|---|
client_request_id | yes | Your identifier. Unique per account |
address | yes | TRON base58, 34 characters |
token_id | no | USDT by default; a TRC20 contract or a TRC10 id |
date_from, date_to | yes | UTC, inclusive. At most 366 days |
format | no | csv by default. PDF is limited to 5000 operations |
Then wait for it
curl -s 'https://netts.io/apiv2/reports/REPxxxxxxxxxxxx' \
-H 'X-API-KEY: your-api-key'data.status progresses through queued, running and waiting_cypherarc while work is in progress. Poll only in those states. Download at done. Stop at error or expired; inspect data.error_code and data.error_message for a failure.
Once it is done, download_url is filled in — as a path, not a full URL — and the file can be fetched:
curl -s -OJ 'https://netts.io/apiv2/reports/REPxxxxxxxxxxxx/download' \
-H 'X-API-KEY: your-api-key'The file arrives gzipped. A CSV order downloads as application/gzip with a .csv.gz filename in Content-Disposition; decompress it before parsing. The status reply carries artifact_sha256 and artifact_size for the compressed file exactly as delivered, so you can verify the download without a second request.
Rather than polling, register a webhook and be told when the file is ready.
Repeating a request is safe
Send the same client_request_id, or the same X-Idempotency-Key, and you get the existing order back instead of a second one being built. The reply carries "msg": "existing" so you can tell the two apart.
Reusing an identifier with a different body is an error, not a new order: that gives 409. Identifiers are unique within your account only — another account's identifiers never collide with yours.
Files live for 30 days
After that the order becomes expired and downloading gives 410. Order it again if you need it later.
Rate limits
10 requests per second per endpoint, shared across all clients. Exceeding it gives 429 with Retry-After: 1 and the message Endpoint rate limit exceeded (10 req/s shared).
That is the only limit. There is no monthly quota, no cap on how many files you may order, and no limit on how many build at once — an account with a positive balance may order as much as the rate limit allows. Orders beyond what the build queue can take are held and retried automatically rather than refused, so a burst costs you latency, not failures.
Errors
| HTTP | Meaning |
|---|---|
400 | the address is 34 characters but fails its base58 checksum |
401 | key missing or invalid, or the source IP is not whitelisted |
402 | no active reports subscription and account balance is zero or negative (NETTS_BALANCE_REQUIRED) |
403 | the API key is blocked; contact support |
409 | the same identifier was used with a different body — the body is IDEMPOTENCY_CONFLICT |
410 | the file has expired |
422 | a field is missing or malformed, or the period exceeds 366 days |
429 | rate limit exceeded — retry after Retry-After |
Related
- Balances — reading balances and the instant statement preview
- Report webhooks — notification when a file is ready