Zum Inhalt
HALOWERK

Finopswerk

assumed debt installment gain ledger

Original selling price, adjusted basis, selling expenses, assumed mortgage and principal/interest receipt prefix determine installment basis, contract price, gross-profit ratio, debt basis recovery, excess-debt deemed payment, per-receipt gain/basis and remaining deferred gain/basis. Own conditional arithmetic inspired by IRS Publication537(2025), not tax eligibility, election, filing, actual tax amount, capital-character or legal advice. Assumes one eligible nondealer sale of nondepreciable.

POST https://finops.halowerk.com/v1/assumed-debt-installment-gain-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
selling_priceintegerJa
adjusted_basisintegerJa
selling_expensesintegerJa
mortgage_domainarrayJa
receiptsarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "selling_price": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000000
    },
    "adjusted_basis": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "selling_expenses": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "mortgage_domain": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "minItems": 1,
      "maxItems": 2
    },
    "receipts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "principal",
          "interest"
        ],
        "additionalProperties": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000000
        },
        "propertyNames": {
          "enum": [
            "principal",
            "interest"
          ]
        }
      },
      "minItems": 1,
      "maxItems": 6
    },
    "report": {
      "type": "object",
      "required": [
        "principal_received",
        "interest_received",
        "gain",
        "basis_recovered",
        "remaining_cash",
        "cumulative_gain",
        "installment_basis",
        "gross_profit",
        "contract_price",
        "profit_ratio",
        "debt_basis_recovery",
        "deemed_payment",
        "deemed_gain",
        "cash_principal_total",
        "interest_total",
        "recognized_gain_total",
        "basis_recovered_total",
        "remaining_gain",
        "remaining_basis",
        "gain_conservation_gap"
      ],
      "additionalProperties": {
        "type": "object",
        "properties": {
          "n": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^(0|[1-9][0-9]{0,63})$",
            "maxLength": 64
          },
          "d": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[1-9][0-9]{0,63}$",
            "maxLength": 64
          }
        },
        "required": [
          "n",
          "d"
        ],
        "additionalProperties": false
      },
      "propertyNames": {
        "enum": [
          "principal_received",
          "interest_received",
          "gain",
          "basis_recovered",
          "remaining_cash",
          "cumulative_gain",
          "installment_basis",
          "gross_profit",
          "contract_price",
          "profit_ratio",
          "debt_basis_recovery",
          "deemed_payment",
          "deemed_gain",
          "cash_principal_total",
          "interest_total",
          "recognized_gain_total",
          "basis_recovered_total",
          "remaining_gain",
          "remaining_basis",
          "gain_conservation_gap"
        ]
      },
      "patternProperties": {
        "^(principal_received|interest_received|gain|basis_recovered|remaining_cash|cumulative_gain)$": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "n": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^(0|[1-9][0-9]{0,63})$",
                "maxLength": 64
              },
              "d": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[1-9][0-9]{0,63}$",
                "maxLength": 64
              }
            },
            "required": [
              "n",
              "d"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 6
        }
      }
    }
  },
  "required": [
    "selling_price",
    "adjusted_basis",
    "selling_expenses",
    "mortgage_domain",
    "receipts",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "selling_price": 1000,
  "adjusted_basis": 250,
  "selling_expenses": 50,
  "mortgage_domain": [
    400
  ],
  "receipts": [
    {
      "principal": 0,
      "interest": 0
    }
  ],
  "report": {
    "principal_received": [
      {
        "n": "0",
        "d": "1"
      }
    ],
    "interest_received": [
      {
        "n": "0",
        "d": "1"
      }
    ],
    "gain": [
      {
        "n": "0",
        "d": "1"
      }
    ],
    "basis_recovered": [
      {
        "n": "0",
        "d": "1"
      }
    ],
    "remaining_cash": [
      {
        "n": "600",
        "d": "1"
      }
    ],
    "cumulative_gain": [
      {
        "n": "100",
        "d": "1"
      }
    ],
    "installment_basis": {
      "n": "300",
      "d": "1"
    },
    "gross_profit": {
      "n": "700",
      "d": "1"
    },
    "contract_price": {
      "n": "700",
      "d": "1"
    },
    "profit_ratio": {
      "n": "1",
      "d": "1"
    },
    "debt_basis_recovery": {
      "n": "300",
      "d": "1"
    },
    "deemed_payment": {
      "n": "100",
      "d": "1"
    },
    "deemed_gain": {
      "n": "100",
      "d": "1"
    },
    "cash_principal_total": {
      "n": "0",
      "d": "1"
    },
    "interest_total": {
      "n": "0",
      "d": "1"
    },
    "recognized_gain_total": {
      "n": "100",
      "d": "1"
    },
    "basis_recovered_total": {
      "n": "300",
      "d": "1"
    },
    "remaining_gain": {
      "n": "600",
      "d": "1"
    },
    "remaining_basis": {
      "n": "0",
      "d": "1"
    },
    "gain_conservation_gap": {
      "n": "0",
      "d": "1"
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →