Skip to content
HALOWERK

Finopswerk

debt modification ten percent ledger

Reconstructs a borrower debt-modification quantitative ten-percent test from complete original and new remaining fixed outflow schedules, the original periodic effective rate, lender fees paid/received and third-party costs. Returns both cash-flow PVs, lender net fee, new test PV, signed PV change and ratio, the margin to 1/10 and an inclusive >= 10% indicator (0 or 1). Third-party fees never enter the test; the indicator covers only the quantitative limb.

POST https://finops.halowerk.com/v1/debt-modification-ten-percent-ledger

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
old_cashflowsarrayYes
new_cashflowsarrayYes
original_eir_domain_bpsarrayYes
lender_fees_paidintegerYes
lender_fees_receivedintegerYes
thirdparty_costsintegerYes
reportobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "old_cashflows": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000
      },
      "minItems": 1,
      "maxItems": 3
    },
    "new_cashflows": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000
      },
      "minItems": 1,
      "maxItems": 3
    },
    "original_eir_domain_bps": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000
      },
      "minItems": 1,
      "maxItems": 2,
      "uniqueItems": true
    },
    "lender_fees_paid": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "lender_fees_received": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "thirdparty_costs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "report": {
      "type": "object",
      "minProperties": 12,
      "maxProperties": 12,
      "propertyNames": {
        "enum": [
          "old_pv",
          "new_pv",
          "lender_net_fees",
          "test_new_pv",
          "signed_pv_change",
          "signed_change_ratio",
          "absolute_change_ratio",
          "threshold_margin",
          "at_least_ten_percent",
          "excluded_thirdparty_costs",
          "total_net_cash_fees",
          "fee_gap"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "n",
          "d"
        ],
        "properties": {
          "n": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "d": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          }
        }
      }
    }
  },
  "required": [
    "old_cashflows",
    "new_cashflows",
    "original_eir_domain_bps",
    "lender_fees_paid",
    "lender_fees_received",
    "thirdparty_costs",
    "report"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "old_cashflows": [
    1100
  ],
  "new_cashflows": [
    1210
  ],
  "original_eir_domain_bps": [
    1000
  ],
  "lender_fees_paid": 0,
  "lender_fees_received": 0,
  "thirdparty_costs": 0,
  "report": {
    "old_pv": {
      "n": "1000",
      "d": "1"
    },
    "new_pv": {
      "n": "1100",
      "d": "1"
    },
    "lender_net_fees": {
      "n": "0",
      "d": "1"
    },
    "test_new_pv": {
      "n": "1100",
      "d": "1"
    },
    "signed_pv_change": {
      "n": "100",
      "d": "1"
    },
    "signed_change_ratio": {
      "n": "1",
      "d": "10"
    },
    "absolute_change_ratio": {
      "n": "1",
      "d": "10"
    },
    "threshold_margin": {
      "n": "0",
      "d": "1"
    },
    "at_least_ten_percent": {
      "n": "1",
      "d": "1"
    },
    "excluded_thirdparty_costs": {
      "n": "0",
      "d": "1"
    },
    "total_net_cash_fees": {
      "n": "0",
      "d": "1"
    },
    "fee_gap": {
      "n": "0",
      "d": "1"
    }
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’