{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/switchwize-com/json-schema/switchwize-com-post-tax-yield-request-schema.json",
  "title": "PostTaxYieldRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/switchwize-com-openapi.json#/components/schemas/PostTaxYieldRequest",
  "type": "object",
  "required": [
    "balance",
    "apy",
    "grossIncome",
    "filingStatus"
  ],
  "properties": {
    "balance": {
      "type": "number",
      "minimum": 0,
      "description": "Cash balance in dollars."
    },
    "apy": {
      "type": "number",
      "minimum": 0,
      "description": "Headline APY as a decimal, 0.05 for 5%."
    },
    "grossIncome": {
      "type": "number",
      "minimum": 0
    },
    "filingStatus": {
      "enum": [
        "single",
        "married",
        "hoh"
      ]
    },
    "stateCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Two-letter state code, or null for federal only."
    },
    "usTreasuryPct": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "0 for a bank account, 1 for a T-bill."
    },
    "localTaxRate": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "otherNetInvestmentIncome": {
      "type": "number",
      "minimum": 0
    },
    "compareBankApy": {
      "type": "number",
      "minimum": 0,
      "description": "With usTreasuryPct, also returns the fund yield needed to match a bank paying this APY after tax."
    }
  }
}