Ttushe / docs
nsk_test_Operational

Dry-run an authorization

Runs a hypothetical authorization through every gate and tells you what would happen — without moving money, placing a hold, or touching a counter. Every gate is reported, not just the first failure, so you can fix everything in one pass; decisive: true marks the gate that would actually have produced the decline in production. confidence matters. If this card’s program hands decisions to your own endpoint, we do not call it — a simulation must not tell your live risk system that a transaction happened. That gate comes back not_simulated and the result is partial, meaning "nothing on our side blocks this", not "this will be approved".

POSThttps://api.trytushe.com/v1/cards/{id}/simulate
POST/v1/cards/{id}/simulate

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

id*string

Card id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

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": {    "decision": "approve",    "reason": "BUDGET_EXHAUSTED",    "confidence": "exact",    "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24",    "amount": "250000",    "currency": "NGN",    "gates": [      {        "gate": "spend_controls",        "state": "pass",        "decisive": false,        "reason": "MCC_BLOCKED",        "detail": {}      }    ]  }}