Backtest a budget change against real history
Replays the authorizations this budget’s cards actually made against a limit you are considering, and reports what would have been declined — today’s cap beside your proposal, because a decline count means nothing without its baseline. Nothing is saved. Reversed and expired authorizations are excluded: their reservation was released, so they never occupied the budget. Within a period that slightly understates peak usage.
POSThttps://api.trytushe.com/v1/config/budgets/{budgetId}/backtest
POST
/v1/config/budgets/{budgetId}/backtestAuthorization
api-key x-api-key<token>
In: header
Path Parameters
budgetId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
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": { "budgetId": "fcf1d230-a9d0-4836-9e20-f98f3396e01b", "budgetName": "Engineering", "lookbackDays": 90, "authorizationsExamined": 1842, "truncated": false, "truncatedNote": "string", "current": { "limit": "300000000", "window": "monthly", "approved": 1803, "approvedTotal": "4850000000", "declined": 39, "declinedTotal": "97500000", "peakPeriod": { "periodKey": "2026-09", "spent": "298400000" }, "examples": [ { "authorizationId": "fd01ce3c-0799-43be-b4cd-b95dd107d4d8", "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24", "amount": "250000", "at": "2019-08-24T14:15:22Z", "periodKey": "2026-09" } ] }, "proposed": { "limit": "300000000", "window": "monthly", "approved": 1803, "approvedTotal": "4850000000", "declined": 39, "declinedTotal": "97500000", "peakPeriod": { "periodKey": "2026-09", "spent": "298400000" }, "examples": [ { "authorizationId": "fd01ce3c-0799-43be-b4cd-b95dd107d4d8", "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24", "amount": "250000", "at": "2019-08-24T14:15:22Z", "periodKey": "2026-09" } ] }, "additionalDeclines": 14, "note": "string" }}