{
  "tool_id": "credit_card_payoff",
  "slug": "credit-card-payoff-calculator",
  "path": "/credit-card-payoff-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/credit-card-payoff-calculator/?<params>",
  "sample_input": {
    "tool": "credit_card_payoff",
    "balance": 8500,
    "apr_percent": 22.99,
    "monthly_payment": 250
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "balance": {
        "type": "integer"
      },
      "apr_percent": {
        "type": "number"
      },
      "monthly_payment": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "balance",
      "apr_percent",
      "monthly_payment"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "balance": {
        "type": "number"
      },
      "apr": {
        "type": "number"
      },
      "monthsToPayoff": {
        "type": "number"
      },
      "totalInterestPaid": {
        "type": "number"
      },
      "totalAmountPaid": {
        "type": "number"
      },
      "schedule": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "month": {
              "type": "number"
            },
            "payment": {
              "type": "number"
            },
            "principal": {
              "type": "number"
            },
            "interest": {
              "type": "number"
            },
            "balance": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}
