Tochka icon

Tochka

Call Tochka Bank Open API (JWT Bearer)

Actions19

Statement → Get Transactions

AI-generated

Summary

Creates a statement, polls until it is Ready, and returns its transactions with an accountId stripped of the BIC suffix

Inputs

  • accountIdGetTx — Идентификатор счёта с БИК через слэш (e.g., 40817810802000000008/044525104)
  • startDateTimeGetTx — Начало периода выписки в ISO 8601; пусто — период по умолчанию
  • endDateTimeGetTx — Конец периода выписки в ISO 8601; пусто — период по умолчанию
  • timeoutSec — Максимальное время ожидания статуса Ready (сек)
  • pollIntervalSec — Интервал опроса статуса Ready (сек)

Output shape

array of flattened transaction objects, each containing the transaction fields plus a cleaned accountId (account number without the trailing /BIC)

The node returns transactions via an internal out‑array; they may be empty. An error is thrown on timeout unless continueOnFail is enabled.

Examples

Example 1: Fetch transactions for a specific account between two dates

resource=statement, operation=getTransactions, accountIdGetTx=40817810802000000008/044525104, startDateTimeGetTx=2024-01-01T00:00:00Z, endDateTimeGetTx=2024-01-31T23:59:59Z

Example 2: Poll for completed statement transactions using default timeout and poll interval

resource=statement, operation=getTransactions, accountIdGetTx=40817810802000000008/044525104 (startDateTimeGetTx and endDateTimeGetTx left empty), timeoutSec=60, pollIntervalSec=2

Example 3: Handle timeout when waiting for statement to become Ready

Same as above but with a shorter timeoutSec value; if timeout occurs the node throws an error unless continueOnFail is enabled.

Links

Discussion