{
  "openapi": "3.1.0",
  "info": {
    "title": "VeteranHomeMatch.com Benefits Checkup API",
    "version": "1.0.0",
    "summary": "VA disability pay, state disabled-veteran property-tax rules and the VA funding-fee waiver, by rating and state.",
    "description": "Marketing / lead-referral service. Not a lender, broker, or affiliate of the U.S. Department of Veterans Affairs. Educational estimates with a source on every figure. Method: https://veteranhomematch.com/checkup/method. Rules for agents: https://veteranhomematch.com/agents.md.",
    "contact": {
      "name": "VeteranHomeMatch.com",
      "email": "support@veteranhomematch.com",
      "url": "https://veteranhomematch.com/contact"
    }
  },
  "externalDocs": {
    "description": "How each figure is computed",
    "url": "https://veteranhomematch.com/checkup/method"
  },
  "servers": [
    {
      "url": "https://veteranhomematch.com"
    }
  ],
  "paths": {
    "/api/checkup": {
      "get": {
        "operationId": "benefitsCheckup",
        "summary": "VA Benefits Checkup: VA pay, state property-tax rule and funding-fee waiver for a rating and state",
        "description": "Read-only. No auth, no personal data. Returns the official VA compensation for the rating and household, the state's disabled-veteran property-tax rule at that rating (verified states only; others say \"not-verified\"), state income-tax treatment, and what the rating means for a VA loan, each figure with unit, period, source and date. Estimates only: quote the sources. VeteranHomeMatch.com is not a lender and not the VA. Never submit the loan intake or any contact details for a person without showing them every field and getting explicit approval. 60 requests per minute per IP. Markdown with format=md or Accept: text/markdown.",
        "parameters": [
          {
            "name": "rating",
            "in": "query",
            "required": true,
            "description": "VA combined disability rating.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                10,
                20,
                30,
                40,
                50,
                60,
                70,
                80,
                90,
                100
              ]
            },
            "example": 70
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "description": "USPS code of the 50 states or DC; a state name or slug (texas, new-jersey) is also accepted.",
            "schema": {
              "type": "string",
              "examples": [
                "TX"
              ]
            },
            "example": "TX"
          },
          {
            "name": "home",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "own",
                "rent"
              ]
            }
          },
          {
            "name": "married",
            "in": "query",
            "required": false,
            "description": "1 = married, 0 = not. Changes pay from 30%.",
            "schema": {
              "type": "string",
              "enum": [
                "1",
                "0",
                "true",
                "false"
              ]
            }
          },
          {
            "name": "kids",
            "in": "query",
            "required": false,
            "description": "Children under 18. Changes pay from 30%.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10
            }
          },
          {
            "name": "price",
            "in": "query",
            "required": false,
            "description": "Example home price for the funding-fee example (USD).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5000000,
              "default": 350000
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json (default) or md.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "md"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The report. With no rating and state, a short description of the parameters instead.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "inputs": {
                      "type": "object",
                      "properties": {
                        "rating": {
                          "type": "integer"
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "AL",
                            "AK",
                            "AZ",
                            "AR",
                            "CA",
                            "CO",
                            "CT",
                            "DE",
                            "DC",
                            "FL",
                            "GA",
                            "HI",
                            "ID",
                            "IL",
                            "IN",
                            "IA",
                            "KS",
                            "KY",
                            "LA",
                            "ME",
                            "MD",
                            "MA",
                            "MI",
                            "MN",
                            "MS",
                            "MO",
                            "MT",
                            "NE",
                            "NV",
                            "NH",
                            "NJ",
                            "NM",
                            "NY",
                            "NC",
                            "ND",
                            "OH",
                            "OK",
                            "OR",
                            "PA",
                            "PR",
                            "RI",
                            "SC",
                            "SD",
                            "TN",
                            "TX",
                            "UT",
                            "VT",
                            "VA",
                            "WA",
                            "WV",
                            "WI",
                            "WY"
                          ]
                        },
                        "stateName": {
                          "type": "string"
                        },
                        "home": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "married": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "kids": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "price": {
                          "type": "integer"
                        }
                      }
                    },
                    "compensationYear": {
                      "type": "integer"
                    },
                    "figures": {
                      "type": "object",
                      "description": "compensationMonthly, compensationAnnual, fundingFeeRate, fundingFeeOnExample, fundingFeeYouPay, and propertyTaxValueExempt when the state rule is a fixed amount off value.",
                      "additionalProperties": {
                        "type": "object",
                        "required": [
                          "value",
                          "unit",
                          "period",
                          "label",
                          "sourceUrl",
                          "sourceName",
                          "asOf",
                          "status"
                        ],
                        "properties": {
                          "value": {
                            "type": "number"
                          },
                          "unit": {
                            "type": "string",
                            "enum": [
                              "USD",
                              "percent"
                            ]
                          },
                          "period": {
                            "type": "string",
                            "enum": [
                              "month",
                              "year",
                              "one-time",
                              "per-property"
                            ]
                          },
                          "label": {
                            "type": "string"
                          },
                          "sourceUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "sourceName": {
                            "type": "string"
                          },
                          "asOf": {
                            "type": "string",
                            "description": "Date the figure takes effect, or the date the rule was last verified (YYYY-MM-DD)."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "official",
                              "estimate"
                            ]
                          }
                        }
                      }
                    },
                    "propertyTax": {
                      "type": "object",
                      "properties": {
                        "verified": {
                          "type": "boolean"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "rule",
                            "none-at-rating",
                            "not-verified"
                          ]
                        },
                        "headline": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "rule": {
                          "type": "object",
                          "properties": {
                            "ratingRange": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "integer"
                                },
                                "max": {
                                  "type": "integer"
                                }
                              }
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "full",
                                "fixed_value",
                                "fixed_tax",
                                "percent_value",
                                "other"
                              ]
                            },
                            "summary": {
                              "type": "string"
                            },
                            "conditions": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "requiresPermanentAndTotal": {
                              "type": "boolean"
                            },
                            "individualUnemployabilityQualifies": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "sourceUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          }
                        },
                        "nextRule": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "ratingRange": {
                                  "type": "object",
                                  "properties": {
                                    "min": {
                                      "type": "integer"
                                    },
                                    "max": {
                                      "type": "integer"
                                    }
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "full",
                                    "fixed_value",
                                    "fixed_tax",
                                    "percent_value",
                                    "other"
                                  ]
                                },
                                "summary": {
                                  "type": "string"
                                },
                                "conditions": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "requiresPermanentAndTotal": {
                                  "type": "boolean"
                                },
                                "individualUnemployabilityQualifies": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "sourceUrl": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "sourceName": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "asOf": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "incomeTax": {
                      "type": "object",
                      "properties": {
                        "vaCompensation": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string"
                            },
                            "sourceUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          }
                        },
                        "state": {
                          "type": "object",
                          "properties": {
                            "verified": {
                              "type": "boolean"
                            },
                            "text": {
                              "type": "string"
                            },
                            "sourceUrl": {
                              "type": "string"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "vaLoan": {
                      "type": "object",
                      "properties": {
                        "fundingFee": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "incomeCounts": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string"
                            },
                            "sourceUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          }
                        },
                        "loanLimit": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string"
                            },
                            "sourceUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "notCovered": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "disclaimers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "examples": [
                        [
                          "VeteranHomeMatch is not affiliated with the U.S. Department of Veterans Affairs.",
                          "VeteranHomeMatch.com is not a lender, mortgage broker or government agency. It does not make loans, quote interest rates or decide eligibility.",
                          "Figures are educational estimates from published VA rates and state rules, not a benefits decision, tax advice or a loan offer.",
                          "VA decides your rating and pay; your county or state decides property-tax exemptions; a licensed lender decides any loan."
                        ]
                      ]
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "reportUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "markdownUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "statePageUrl": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "ratingPageUrl": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "stateGuideUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "methodUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "intakeUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "intakeNote": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; each error names the parameter and lists the allowed values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "invalid_parameters",
                        "rate_limited"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "param": {
                            "type": "string"
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "allowed": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60 per minute per IP).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "invalid_parameters",
                        "rate_limited"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "param": {
                            "type": "string"
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "allowed": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}