Ttushe / docs
nsk_test_Operational

Apply a scenario

Creates the customers and accounts the scenario declares, and funds them through the ledger. The ids are derived, not random — applying the same scenario and seed again gives you the same account ids, so an assertion you write survives a reset. Applying twice is idempotent.

POSThttps://api.trytushe.com/v1/sandbox/scenarios/{key}/apply
POST/v1/sandbox/scenarios/{key}/apply

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

key*string

The scenario key, built-in or your own.

Query Parameters

version?string

Which version. Defaults to the newest — name it to re-apply an older one.

tier?string

How many objects to GENERATE, for a scenario that generates (1–500, default 8). Rounded UP to a whole confusability family, so every beneficiary has a counterpart — the response reports what was actually built. ★ The first N are the same at every size, so assertions written against a small run survive scaling it up — and the ids do not move. 422 SCENARIO_DOES_NOT_GENERATE if the scenario has a fixed definition: there would be nothing for a tier to scale.

Response Body

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": {    "key": "solo-funded-customer",    "version": 1,    "seed": "a1b2c3",    "checksum": "9f2c…",    "applicationId": "019335a1-7c4e-7000-8000-0000000000aa",    "tier": 30,    "appliedAt": "2026-10-31T09:14:02.000Z",    "customers": [      {        "ref": "primary",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      }    ],    "accounts": [      {        "ref": "main",        "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",        "currency": "NGN",        "balance": "50000000"      }    ],    "payouts": [      {        "ref": "p1",        "payoutId": "c3d65312-6575-43de-b8ae-728d8d0a9371",        "beneficiaryName": "OKAFOR CHIDINMA NGOZI",        "outcome": "completed",        "mechanism": "transliteration"      }    ],    "recipients": [      {        "ref": "declines",        "recipientId": "afdd332c-8290-47b9-aca2-368bf5f25a9d",        "accountNumber": "9999010000",        "simulate": "decline"      }    ]  }}