FinSim

Why a Timeout Does Not Mean a Payment Failed

ADR 0001 defines how FinSim isolates ambiguous transfers in UNKNOWN and resolves them forward first without ever creating duplicate credits.

REJECTED vs. UNKNOWN

In FinSim, FAILED is not a transfer state. A transfer is marked REJECTED only when a participant definitively refuses a leg (or a leg never left the network). When a leg times out after submission, the participant may have already committed the balance change. FinSim therefore transitions the transfer to UNKNOWN and blocks naive caller retries with 409 RECONCILIATION_REQUIRED.

ADR 0001 resolution decision table

Calling POST /api/v1/transfers/{id}/resolve queries each leg via GET /finsim/v1/payments/{transactionId}?leg=... and applies forward recovery first, backward recovery only on a definitive rejection:

Debit at sourceCredit at destinationActionOutcome
404 not foundNot sentNothing was applied.REJECTED (FINSIM_TIMEOUT)
REJECTEDNot sentNothing was applied.REJECTED (source reason)
COMPLETEDCOMPLETEDOriginal response was lost after commit.COMPLETED
COMPLETED404 not foundRe-send CREDIT once with same Idempotency-Key (RETRY_CREDIT).Re-evaluate
COMPLETEDREJECTEDIssue reversal credit to source (REVERSE_DEBIT).REJECTED (after reversal)
COMPLETEDACCEPTEDDestination is still processing.Stays UNKNOWN
Query times outAnyCannot decide without evidence.Stays UNKNOWN

Reversals and needsManualReview

A debit reversal is a new CREDIT leg sent to the source institution with transaction ID <transactionId>-rev, derived idempotency key <transactionId>-rev (staying within the 128-character key limit), and reversalOf. If the source institution rejects the reversal itself, FinSim keeps the transfer in UNKNOWN and flags needsManualReview: true rather than silently accepting an inconsistent state.