Ttushe / docs
nsk_test_Operational

List account transactions

The account's statement history — every settled ledger line for this account, newest first, each carrying the running balanceAfter so the list reconciles rather than merely lists (ADR-056). Only settled lines appear. A pending card authorization is a HOLD, visible as the gap between available and ledger on the account, never as a transaction here. Pagination is cursor-based, not offset: pass the previous response's nextCursor back as cursor. A cursor is an opaque base64 value from the previous response; a malformed one is 422 INVALID_CURSOR. There is no total — pagination.total is always null, deliberately (see the field). Filters compose — direction, type, from/to may be combined, and all of them are applied in the database, so a filtered page is still a full page and the cursor stays correct. lastN is the USSD/SMS seam: the newest N lines in one shot, no cursor round-trip, for a channel that cannot paginate.

GEThttps://api.trytushe.com/v1/accounts/{accountId}/transactions
GET/v1/accounts/{accountId}/transactions

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

accountId*string

Query Parameters

to?string

Inclusive upper bound on posting time, ISO-8601. Invalid → 400.

Formatdate-time
from?string

Inclusive lower bound on posting time, ISO-8601. Invalid → 400.

Formatdate-time
lastN?integer

Return only the newest N lines, 1–100. For USSD/SMS, where there is no way to follow a cursor.

Range1 <= value <= 100
type?string

Filter by the derived type. Applied in-database, so pages stay full and the cursor stays valid. Prefer filtering on category semantics where you can — type folds direction into itself.

Value in

  • "deposit"
  • "withdrawal"
  • "transfer_in"
  • "transfer_out"
  • "reversal"
  • "card_purchase"
  • "card_refund"
  • "levy"
  • "levy_reversal"
  • "fee"
  • "profit"
  • "group_contribution"
  • "group_payout"
  • "test"
direction?string

Money in or out. Anything else is a 400 — note this is the spelled-out vocabulary, not the ledger's C/D.

Value in

  • "credit"
  • "debit"
cursor?string

Opaque cursor from the previous response's nextCursor. Malformed → 422 INVALID_CURSOR.

limit?integer

Page size, 1–100. Outside that range is a 400.

Range1 <= value <= 100
Default20

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

{  "status": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2026-10-03T16:30:00.000Z",  "path": "/v1/accounts",  "data": {    "transactions": [      {        "id": "0198…",        "groupId": "0198…",        "type": "deposit",        "direction": "credit",        "status": "posted",        "amount": "100000",        "currency": "NGN",        "balanceAfter": "73000",        "accountId": "account:018f4be0-0000-7000-8000-000000000010",        "accountUuid": "018f4be0-0000-7000-8000-000000000010",        "category": "bank_payout",        "customerId": "018f4be0-0000-7000-8000-0000000000c1",        "ledgerAccount": "system:018f4be0-…:cash",        "counterparty": {          "accountName": "CHIDI OBI",          "accountNumber": "******6789",          "bankCode": "058",          "bankName": "GTBank",          "recipientId": null,          "payoutId": "018f4be0-0000-7000-8000-00000000a1b2"        },        "provider": "paystack",        "paymentMethod": "bank_transfer",        "instrument": {          "brand": "visa",          "last4": "4081",          "issuer": "GTBANK"        },        "reference": "string",        "narration": "string",        "metadata": {},        "sessionId": "000001260809120000123456789012",        "postedAt": "2026-08-09T19:04:11.220Z",        "valueDate": "2026-08-09T19:04:11.220Z"      }    ],    "pagination": {      "nextCursor": "MDE5OGY0…",      "hasMore": true,      "total": null    }  }}