{
  "tool_id": "debt_consolidation",
  "slug": "debt-consolidation-calculator",
  "path": "/debt-consolidation-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/debt-consolidation-calculator/?<params>",
  "sample_input": {
    "tool": "debt_consolidation",
    "debt_balance": 18000,
    "weighted_apr_percent": 22,
    "current_monthly_payment": 650,
    "new_apr_percent": 11.5,
    "origination_fee_percent": 3,
    "new_term_months": 48
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "debt_balance": {
        "type": "integer"
      },
      "weighted_apr_percent": {
        "type": "integer"
      },
      "current_monthly_payment": {
        "type": "integer"
      },
      "new_apr_percent": {
        "type": "number"
      },
      "origination_fee_percent": {
        "type": "integer"
      },
      "new_term_months": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "debt_balance",
      "weighted_apr_percent",
      "current_monthly_payment",
      "new_apr_percent",
      "origination_fee_percent",
      "new_term_months"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "primaryLabel": {
        "type": "string"
      },
      "primaryValue": {
        "type": "number"
      },
      "primaryFormat": {
        "type": "string"
      },
      "summary": {
        "type": "string"
      },
      "metrics": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "value": {
              "type": "number"
            },
            "format": {
              "type": "string"
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "debt_balance": {
            "type": "number"
          },
          "weighted_apr_percent": {
            "type": "number"
          },
          "current_monthly_payment": {
            "type": "number"
          },
          "new_apr_percent": {
            "type": "number"
          },
          "origination_fee_percent": {
            "type": "number"
          },
          "new_term_months": {
            "type": "number"
          }
        }
      }
    }
  }
}
