FinSim

finsim/v1 Participant Contract

Language-independent HTTP/JSON specification for connecting external banks and financial services to a FinSim network.

Four required participant endpoints

Method & PathPurpose
GET /finsim/v1/institution/healthReports liveness and synthetic institution metadata.
GET /finsim/v1/institution/capabilitiesDeclares supported participant capabilities (such as ACCOUNT_DEBIT, ACCOUNT_CREDIT, and STATUS_QUERY).
POST /finsim/v1/paymentsApplies a DEBIT or CREDIT leg (or reversal credit with reversalOf) idempotently using Idempotency-Key.
GET /finsim/v1/payments/{transactionId}?leg=DEBIT|CREDITReports the participant's definitive status for a leg (or 404 if never seen) during ADR 0001 reconciliation.

Core contract invariants

  • Idempotency-Key: Re-sending the same key with the same body must return the original outcome without applying a second ledger effect.
  • Exact decimal money: Monetary amounts are serialized as exact decimal strings (never floating-point numbers).
  • ReasonCode vs. ApiErrorCode: Domain payment rejections use standardized ISO 20022 reason codes (such as AC01, AC04, AM02, AM04, DUPL, MS03, plus FINSIM_TIMEOUT), separate from transport-level API error codes.
  • Synthetic provenance: Every simulated institution, account, and balance carries "provenance": "SYNTHETIC".

Verify conformance with the CLI

Run the 8-phase conformance suite against your participant URL. The authoritative schema remains contract/finsim-v1.openapi.yaml.

finsim verify --url http://localhost:9001