Simulate repayment waterfall API

Allocate available cash across caller-supplied debt facilities by contractual priority and bucket order (fees, arrears, interest, principal). Returns step-by-step intermediate calculations. No bank account is accessed.

The Simulate repayment waterfall operation is part of the Financial Schedule & Credit Calculations API on BRAINIAC.software. Allocate available cash across caller-supplied debt facilities by contractual priority and bucket order (fees, arrears, interest, principal). Returns step-by-step intermediate calculations. No bank account is accessed. It is exposed as POST /api/v1/fintech/repayment-waterfall-simulate and priced at $0.04 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied payment schedules, facilities, metrics, covenants, receivables, and dilution events processed locally Limitations: Schedule stress delays inflows while contractual outflows stay on their dates. It is not a credit-agency default probability. Waterfall and dilution math stay inside one currency. No FX conversion is applied. Covenant headroom uses only supplied metric values and thresholds. No bank account, bureau, or market feed is contacted. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Audit financial schedule stress, Calculate covenant headroom, Analyze receivables dilution. Open the group documentation for the full request schema, field notes, and response examples before integrating.

POST$0.04 USDC
/api/v1/fintech/repayment-waterfall-simulate

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/fintech/repayment-waterfall-simulate" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "available_cash": 15000,
  "currency": "USD",
  "facilities": [
    {
      "id": "senior",
      "currency": "USD",
      "priority": 1,
      "principal": 10000,
      "accrued_interest": 500,
      "fees": 200,
      "arrears": 0
    },
    {
      "id": "mezz",
      "currency": "USD",
      "priority": 2,
      "principal": 8000,
      "accrued_interest": 300,
      "fees": 100,
      "payment_order": [
        "interest",
        "principal",
        "fees",
        "arrears"
      ]
    }
  ]
}
JSON

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Financial Schedule & Credit Calculations APIFull docsHow it works