Ttushe / docs
nsk_test_Operational

List accounts

Lists all accounts for this partner. Filter by ?user_ref= for a specific user, and/or ?type=current|savings. Ordered oldest first, by the date the account was opened, ties broken on accountId. The order is stable between calls and does not change when an account is updated. Before v1.55.0 no order was defined and results could shuffle between two reads. Changed (#370): this returned a BARE ARRAY of every account the filters admitted. It is a page now — { accounts, nextCursor } — cursor-paginated on after, limit 1–100, default 25. Read accounts instead of the response body, and follow nextCursor until it is null to walk the whole list. The old shape could not be kept: it was a full scan and an unbounded body, and above a few thousand accounts it was never safe. user_ref and type filter exactly as before, and both are applied in the database, so a filtered page is still a full page and the cursor stays correct.

GEThttps://api.trytushe.com/v1/accounts
GET/v1/accounts

Authorization

api-key
x-api-key<token>

In: header

Query Parameters

limit?integer

A whole number, 1–100. Default 25; anything else is 400 INVALID_QUERY_PARAM.

Range1 <= value <= 100
Default25
after?unknown

The nextCursor from the previous page, unchanged. Opaque — not an accountId. A malformed one is 400 INVALID_CURSOR.

type?string

Value in

  • "current"
  • "savings"
user_ref?unknown

Accounts belonging to one customer reference.

Response Body

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": {    "accounts": [      {        "accountId": "wlt_01abc",        "partnerId": "partner-uuid",        "externalUserRef": "user-alice-001",        "currency": "NGN",        "status": "active",        "balances": {          "ledger": {            "amount": "50000",            "currency": "NGN"          },          "available": {            "amount": "50000",            "currency": "NGN"          },          "hold": {            "amount": "50000",            "currency": "NGN"          }        },        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z",        "type": "current",        "label": "Rent 2027",        "savingsProductId": "string",        "targetAmount": "5000000",        "targetDate": "2019-08-24T14:15:22Z",        "goalProgress": {          "targetAmount": "string",          "targetDate": "2027-06-30",          "amountSaved": "1250000",          "percentComplete": 42,          "amountRemaining": "string",          "daysRemaining": 0,          "projectedCompletionDate": "string",          "onTrack": true        }      }    ],    "nextCursor": "MjAyNi0xMS0zMFQwOToxNTowMC4xMjNafDAxOGY0YmUwLe…"  }}