{
  "tool_id": "medical_bill_payment_path",
  "slug": "medical-bill-payment-path-calculator",
  "path": "/medical-bill-payment-path-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/medical-bill-payment-path-calculator/?<params>",
  "sample_input": {
    "tool": "medical_bill_payment_path",
    "bill_amount": 4800,
    "cash_discount_percent": 12,
    "provider_plan_months": 12,
    "provider_plan_fees": 120,
    "card_or_loan_apr": 24,
    "card_or_loan_term_months": 18,
    "monthly_budget_available": 450,
    "emergency_cash_buffer": 3500
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "bill_amount": {
        "type": "integer"
      },
      "cash_discount_percent": {
        "type": "integer"
      },
      "provider_plan_months": {
        "type": "integer"
      },
      "provider_plan_fees": {
        "type": "integer"
      },
      "card_or_loan_apr": {
        "type": "integer"
      },
      "card_or_loan_term_months": {
        "type": "integer"
      },
      "monthly_budget_available": {
        "type": "integer"
      },
      "emergency_cash_buffer": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "bill_amount",
      "cash_discount_percent",
      "provider_plan_months",
      "provider_plan_fees",
      "card_or_loan_apr",
      "card_or_loan_term_months",
      "monthly_budget_available",
      "emergency_cash_buffer"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "rankedPaths": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "totalCost": {
              "type": "number"
            },
            "monthlyPayment": {
              "type": "number"
            },
            "payoffMonths": {
              "type": "number"
            },
            "stressScore": {
              "type": "number"
            }
          }
        }
      },
      "totalCostByPath": {
        "type": "object",
        "properties": {
          "cash_discount": {
            "type": "number"
          },
          "provider_plan": {
            "type": "number"
          },
          "card_financing": {
            "type": "number"
          }
        }
      },
      "monthlyCashflowByPath": {
        "type": "object",
        "properties": {
          "cash_discount": {
            "type": "number"
          },
          "provider_plan": {
            "type": "number"
          },
          "card_financing": {
            "type": "number"
          }
        }
      },
      "payoffTimelineByPath": {
        "type": "object",
        "properties": {
          "cash_discount": {
            "type": "number"
          },
          "provider_plan": {
            "type": "number"
          },
          "card_financing": {
            "type": "number"
          }
        }
      },
      "stressFlags": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  }
}
