# rentroll.reconcile

Reconcile a property rent roll of up to 500 units against one T12 statement. Accepts CSV, XLSX or JSON and returns occupancy, lease expirations, and discrepancies with source rows.

- REST: `POST https://api.kanagu.dev/v1/rentroll/reconcile`
- MCP tool: `rentroll.reconcile` at https://api.kanagu.dev/mcp
- Price: $0.50 USD per reconciliation, on successful calls only. Trial: 10 calls per IP per UTC day without a key, shared by REST and MCP.
- Auth: `Authorization: Bearer <key>` for billed calls. Retries: reuse `Idempotency-Key`.

## Request body

- `asOf` (string (date), required): Rent roll snapshot date for this property.
- `rentBasis` ("monthly" | "annual"): Declare the basis of the rent roll amounts. A confirmed reconciliation requires monthly amounts.
- `rentRoll` (object, required)
- `t12` (object, required): One trailing twelve-month statement. Declare statementType and columnsAreMonthlyActuals to confirm a reconciliation. File headers use a GL label (and optional code) and 12 dated or numbered month columns.
- `gprBasis` ("market" | "other"): Market indicates reported GPR is before loss to lease. Use other for blended or unknown GPR definitions.
- `deductionSign` ("negative" | "positive"): Declare the sign of T12 deductions when known. Opposite signs then indicate reversals or gains. If omitted, infer the sign separately for each contra-revenue GL line.

## Response

- `asOf` (string (date), required)
- `units` (array of object, required)
- `units[].unit` (string (max 240 chars), required): Unique unit key within the property. Include the building in this key for repeated unit numbers.
- `units[].tenant` (string (max 240 chars) | null)
- `units[].status` ("occupied" | "vacant" | "model" | "down" | "unknown", required)
- `units[].futureLease` (boolean): A future lease record. Keep a separate row for the unit’s current status.
- `units[].monthToMonth` (boolean): Verified month-to-month lease. The lease end may be omitted.
- `units[].squareFeet` (number (≤ 1000000000) | null)
- `units[].moveIn` (string (date) | null): Actual move-in date, separate from the lease start.
- `units[].leaseStart` (string (date) | null)
- `units[].leaseEnd` (string (date) | null)
- `units[].marketRent` (number (0 to 1000000000) | null)
- `units[].contractRent` (number (0 to 1000000000) | null)
- `units[].concessions` (number (-1000000000 to 1000000000) | null): Monthly concession with the source sign. Use a consistent sign across units. Enter zero when verified.
- `units[].charges` (object): Monthly charges keyed by source charge code.
- `units[].balance` (number (-1000000000 to 1000000000) | null): Balance with the source sign convention.
- `units[].row` (integer (≤ 9007199254740991), required)
- `units[].chargeRows` (array of integer (≤ 9007199254740991))
- `units[].rentChargeCodes` (array of string (max 240 chars)): Source charge codes summed into the monthly contract rent.
- `occupancy` (object, required)
- `occupancy.totalUnits` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.occupied` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.vacant` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.model` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.down` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.unresolved` (integer (-9007199254740991 to 9007199254740991), required)
- `occupancy.physicalRate` (number | null, required): Occupied units divided by all listed units, including model and down units. Null when current occupancy cannot be established for all units.
- `occupancy.economic` (array of object, required)
- `occupancy.economic[].month` (string, required)
- `occupancy.economic[].rate` (number | null, required): Cash rent collected divided by reported GPR.
- `occupancy.economic[].rentCollected` (number | null, required)
- `occupancy.economic[].grossPotentialRent` (number | null, required)
- `occupancy.economic[].lineRefs` (array of object, required)
- `occupancy.economic[].lineRefs[].row` (integer (≤ 9007199254740991), required)
- `occupancy.economic[].lineRefs[].label` (string (max 240 chars), required)
- `occupancy.economic[].lineRefs[].code` (string (max 240 chars))
- `rents` (object, required)
- `rents.totalMarketRent` (number | null, required)
- `rents.occupiedMarketRent` (number | null, required)
- `rents.inPlaceRent` (number | null, required)
- `rents.lossToLease` (number | null, required): Occupied market rent minus occupied monthly contract rent.
- `rents.vacancyAtMarketRent` (number | null, required)
- `rents.concessions` (number | null, required): Total monthly occupied-unit concessions as a positive deduction. Null when the source signs are mixed or amounts are incomplete.
- `leaseExpirations` (array of object, required)
- `leaseExpirations[].month` (string, required)
- `leaseExpirations[].unitRefs` (array of object, required)
- `leaseExpirations[].unitRefs[].row` (integer (≤ 9007199254740991), required)
- `leaseExpirations[].unitRefs[].unit` (string, required)
- `t12` (object, required)
- `t12.months` (array of string, required)
- `t12.lines` (array of object, required)
- `t12.lines[].label` (string (max 240 chars), required)
- `t12.lines[].code` (string (max 240 chars))
- `t12.lines[].category` ("grossPotentialRent" | "lossToLease" | "vacancy" | "concessions" | "badDebt" | "rentCollected" | … (10 values), required)
- `t12.lines[].amounts` (array of number (-1000000000 to 1000000000) | null, required): Monthly amounts in the same currency as the rent roll. Null means unavailable.
- `t12.lines[].row` (integer (≤ 9007199254740991), required)
- `t12.lines[].deduction` (object)
- `t12.lines[].deduction.signConvention` ("negative" | "positive" | "zero" | "ambiguous" | "unavailable", required)
- `t12.lines[].deduction.amounts` (array of number | null, required): Monthly contra-revenue amounts as positive deductions. A declared sign preserves opposite-sign reversals and gains.
- `comparisons` (array of object, required)
- `comparisons[].month` (string, required)
- `comparisons[].field` ("grossPotentialRent" | "lossToLease" | "vacancy" | "concessions" | "rentCollected", required)
- `comparisons[].status` ("match" | "discrepancy" | "needs_review", required)
- `comparisons[].expected` (number | null, required)
- `comparisons[].actual` (number | null, required)
- `comparisons[].difference` (number | null, required): T12 actual less rent roll. Present for a comparable month with both amounts, complete caller declarations and no detected contradiction.
- `comparisons[].reason` (string, required)
- `comparisons[].unitRefs` (array of object, required)
- `comparisons[].unitRefs[].row` (integer (≤ 9007199254740991), required)
- `comparisons[].unitRefs[].unit` (string, required)
- `comparisons[].lineRefs` (array of object, required)
- `comparisons[].lineRefs[].row` (integer (≤ 9007199254740991), required)
- `comparisons[].lineRefs[].label` (string (max 240 chars), required)
- `comparisons[].lineRefs[].code` (string (max 240 chars))
- `comparisons[].source` (string (uri), required)
- `columnMapping` (object, required)
- `columnMapping.rentRoll` (object)
- `columnMapping.rentRoll.headerRow` (integer (≤ 9007199254740991), required)
- `columnMapping.rentRoll.sheet` (string)
- `columnMapping.rentRoll.mapped` (array of object, required)
- `columnMapping.rentRoll.mapped[].column` (integer (≤ 9007199254740991), required)
- `columnMapping.rentRoll.mapped[].header` (string, required)
- `columnMapping.rentRoll.mapped[].field` (string, required)
- `columnMapping.rentRoll.unmapped` (array of object, required)
- `columnMapping.rentRoll.unmapped[].column` (integer (≤ 9007199254740991), required)
- `columnMapping.rentRoll.unmapped[].header` (string, required)
- `columnMapping.t12` (object)
- `columnMapping.t12.headerRow` (integer (≤ 9007199254740991), required)
- `columnMapping.t12.sheet` (string)
- `columnMapping.t12.mapped` (array of object, required)
- `columnMapping.t12.mapped[].column` (integer (≤ 9007199254740991), required)
- `columnMapping.t12.mapped[].header` (string, required)
- `columnMapping.t12.mapped[].field` (string, required)
- `columnMapping.t12.unmapped` (array of object, required)
- `columnMapping.t12.unmapped[].column` (integer (≤ 9007199254740991), required)
- `columnMapping.t12.unmapped[].header` (string, required)
- `findings` (array of object, required)
- `findings[].rule` (string, required)
- `findings[].expected` (string, required)
- `findings[].actual` (string, required)
- `findings[].source` (string (uri), required)
- `findings[].unitRefs` (array of object)
- `findings[].unitRefs[].row` (integer (≤ 9007199254740991), required)
- `findings[].unitRefs[].unit` (string, required)
- `findings[].rows` (array of integer (≤ 9007199254740991))
- `missingDeclarations` (array of "rentRoll.asOf" | "rentRoll.property" | "t12.property" | "t12.statementType" | "t12.columnsAreMonthlyActuals" | "rentBasis", required): Request fields that must be declared to confirm the comparison.
- `needs_review` (boolean, required)
- `sources` (array of object, required)
- `sources[].url` (string (uri), required)
- `sources[].version` (string, required)

## Example

```sh
curl https://api.kanagu.dev/v1/rentroll/reconcile \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asOf":"2026-10-31","rentBasis":"monthly","rentRoll":{"format":"csv","asOf":"2026-10-31","property":"Oak Terrace","text":"Rent Roll as of 2026-10-31\nUnit,Tenant,Status,Lease Start,Lease End,Monthly Market Rent,Monthly Rent,Monthly Concessions\n101,,Vacant,,,1500,,\n102,Lee,Occupied,2026-04-01,2027-03-31,1600,1550,0"},"t12":{"format":"json","property":"Oak Terrace","statementType":"actual","columnsAreMonthlyActuals":true,"months":["2025-11","2025-12","2026-01","2026-02","2026-03","2026-04","2026-05","2026-06","2026-07","2026-08","2026-09","2026-10"],"lines":[{"label":"Gross Potential Rent","amounts":[3100,3100,3100,3100,3100,3100,3100,3100,3100,3100,3100,3100]},{"label":"Loss to Lease","amounts":[-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50]},{"label":"Vacancy Loss","amounts":[-1500,-1500,-1500,-1500,-1500,-1500,-1500,-1500,-1500,-1500,-1500,-1500]},{"label":"Concessions","amounts":[0,0,0,0,0,0,0,0,0,0,0,0]},{"label":"Rent Collected","amounts":[1550,1550,1550,1550,1550,1550,1550,1550,1550,1550,1550,1550]}]}}'
```

```ts
const res = await fetch("https://api.kanagu.dev/v1/rentroll/reconcile", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "asOf": "2026-10-31",
    "rentBasis": "monthly",
    "rentRoll": {
      "format": "csv",
      "asOf": "2026-10-31",
      "property": "Oak Terrace",
      "text": "Rent Roll as of 2026-10-31\nUnit,Tenant,Status,Lease Start,Lease End,Monthly Market Rent,Monthly Rent,Monthly Concessions\n101,,Vacant,,,1500,,\n102,Lee,Occupied,2026-04-01,2027-03-31,1600,1550,0"
    },
    "t12": {
      "format": "json",
      "property": "Oak Terrace",
      "statementType": "actual",
      "columnsAreMonthlyActuals": true,
      "months": [
        "2025-11",
        "2025-12",
        "2026-01",
        "2026-02",
        "2026-03",
        "2026-04",
        "2026-05",
        "2026-06",
        "2026-07",
        "2026-08",
        "2026-09",
        "2026-10"
      ],
      "lines": [
        {
          "label": "Gross Potential Rent",
          "amounts": [
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100,
            3100
          ]
        },
        {
          "label": "Loss to Lease",
          "amounts": [
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50,
            -50
          ]
        },
        {
          "label": "Vacancy Loss",
          "amounts": [
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500,
            -1500
          ]
        },
        {
          "label": "Concessions",
          "amounts": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        },
        {
          "label": "Rent Collected",
          "amounts": [
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550,
            1550
          ]
        }
      ]
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
```

## Errors

JSON `{"error":{"code","message"}}`.

- 400 `invalid_input`: The body does not match the request schema. The message names each field.
- 400 `invalid_json`: The body is missing or is not valid JSON.
- 400 `invalid_idempotency_key`: Idempotency-Key must be 1–128 visible ASCII characters.
- 401 `invalid_api_key`: The Bearer key is missing, malformed, invalid or inactive.
- 402 `free_allowance_exhausted`: This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.
- 404 `not_found`: No operation at this path.
- 409 `idempotency_conflict`: The Idempotency-Key was already used with a different body.
- 413 `payload_too_large`: JSON bodies may be at most 64 KiB.
- 429 `trial_limit`: The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.
- 500 `internal_error`: The call failed on our side. It is not billed; retry with the same Idempotency-Key.

## JSON Schema

Request:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "asOf": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "description": "Rent roll snapshot date for this property."
    },
    "rentBasis": {
      "description": "Declare the basis of the rent roll amounts. A confirmed reconciliation requires monthly amounts.",
      "type": "string",
      "enum": [
        "monthly",
        "annual"
      ]
    },
    "rentRoll": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "json"
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "subsidized": {
              "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.",
              "type": "boolean"
            },
            "units": {
              "minItems": 1,
              "maxItems": 3000,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240,
                    "description": "Unique unit key within the property. Include the building in this key for repeated unit numbers."
                  },
                  "tenant": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 240
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "occupied",
                      "vacant",
                      "model",
                      "down",
                      "unknown"
                    ]
                  },
                  "futureLease": {
                    "description": "A future lease record. Keep a separate row for the unit’s current status.",
                    "type": "boolean"
                  },
                  "monthToMonth": {
                    "description": "Verified month-to-month lease. The lease end may be omitted.",
                    "type": "boolean"
                  },
                  "squareFeet": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "moveIn": {
                    "description": "Actual move-in date, separate from the lease start.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "leaseStart": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "leaseEnd": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "marketRent": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000000000,
                        "multipleOf": 0.01
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "contractRent": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000000000,
                        "multipleOf": 0.01
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "concessions": {
                    "description": "Monthly concession with the source sign. Use a consistent sign across units. Enter zero when verified.",
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": -1000000000,
                        "maximum": 1000000000,
                        "multipleOf": 0.01
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "charges": {
                    "description": "Monthly charges keyed by source charge code.",
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 240
                    },
                    "additionalProperties": {
                      "type": "number",
                      "minimum": -1000000000,
                      "maximum": 1000000000,
                      "multipleOf": 0.01
                    }
                  },
                  "balance": {
                    "description": "Balance with the source sign convention.",
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": -1000000000,
                        "maximum": 1000000000,
                        "multipleOf": 0.01
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "unit",
                  "status"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "format",
            "units"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "csv"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2097152,
              "description": "UTF-8, comma-delimited CSV."
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "subsidized": {
              "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.",
              "type": "boolean"
            },
            "columns": {
              "description": "Exact header overrides. Map charge columns to charges:<code>.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "unit",
                      "tenant",
                      "status",
                      "squareFeet",
                      "moveIn",
                      "leaseStart",
                      "leaseEnd",
                      "marketRent",
                      "contractRent",
                      "concessions",
                      "balance"
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^charges:[^\\s].{0,99}$"
                  },
                  {
                    "type": "string",
                    "const": "ignore"
                  }
                ]
              }
            }
          },
          "required": [
            "format",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "xlsx"
            },
            "base64": {
              "type": "string",
              "minLength": 4,
              "maxLength": 2796204,
              "format": "base64",
              "contentEncoding": "base64",
              "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$"
            },
            "sheet": {
              "description": "Worksheet name. Defaults to the first worksheet.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "Declared date of the source rent roll. Must agree with the requested snapshot date and any date printed on the export.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "subsidized": {
              "description": "Whether the property has subsidized units. Provide explicit Contract Rent or both Tenant Portion and Subsidy (HAP) amounts. Declare false only if no units receive rent subsidies.",
              "type": "boolean"
            },
            "columns": {
              "description": "Exact header overrides. Map charge columns to charges:<code>.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "unit",
                      "tenant",
                      "status",
                      "squareFeet",
                      "moveIn",
                      "leaseStart",
                      "leaseEnd",
                      "marketRent",
                      "contractRent",
                      "concessions",
                      "balance"
                    ]
                  },
                  {
                    "type": "string",
                    "pattern": "^charges:[^\\s].{0,99}$"
                  },
                  {
                    "type": "string",
                    "const": "ignore"
                  }
                ]
              }
            }
          },
          "required": [
            "format",
            "base64"
          ],
          "additionalProperties": false
        }
      ]
    },
    "t12": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "json"
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "End date of the final T12 period.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "columnsAreMonthlyActuals": {
              "description": "Declare true only when the month columns contain standalone monthly actuals for this property.",
              "type": "boolean"
            },
            "months": {
              "minItems": 12,
              "maxItems": 12,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
              },
              "description": "Consecutive calendar months in ascending YYYY-MM order."
            },
            "lines": {
              "minItems": 1,
              "maxItems": 3000,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "grossPotentialRent",
                      "lossToLease",
                      "vacancy",
                      "concessions",
                      "badDebt",
                      "rentCollected",
                      "otherIncome",
                      "expenses",
                      "noi",
                      "unmapped"
                    ]
                  },
                  "amounts": {
                    "minItems": 12,
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000,
                          "multipleOf": 0.01
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": "Monthly amounts in the same currency as the rent roll. Null means unavailable."
                  }
                },
                "required": [
                  "label",
                  "amounts"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "format",
            "months",
            "lines"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "csv"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2097152,
              "description": "UTF-8, comma-delimited CSV."
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "End date of the final T12 period.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "columnsAreMonthlyActuals": {
              "description": "Declare true only when the month columns contain standalone monthly actuals for this property.",
              "type": "boolean"
            },
            "categories": {
              "description": "GL account code or exact line label to category.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "grossPotentialRent",
                  "lossToLease",
                  "vacancy",
                  "concessions",
                  "badDebt",
                  "rentCollected",
                  "otherIncome",
                  "expenses",
                  "noi",
                  "unmapped"
                ]
              }
            },
            "columns": {
              "description": "Exact header overrides for the line-item label, optional account code, and ignored columns.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "label",
                  "code",
                  "ignore"
                ]
              }
            },
            "periodEnd": {
              "description": "End date of Month 12 for Month 1 through Month 12 headers. Defaults to the period ending date in the preamble when present.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          "required": [
            "format",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "xlsx"
            },
            "base64": {
              "type": "string",
              "minLength": 4,
              "maxLength": 2796204,
              "format": "base64",
              "contentEncoding": "base64",
              "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$"
            },
            "sheet": {
              "description": "Worksheet name. Defaults to the first worksheet.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "property": {
              "description": "Property name or ID. Declare the same identifier for both documents, as written in the exports when present.",
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "unitCount": {
              "description": "Total units in the property, including vacant, model and down units. A different count in the rent roll requires review.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "statementType": {
              "description": "Declare the report type. A confirmed reconciliation requires actuals.",
              "type": "string",
              "enum": [
                "actual",
                "budget",
                "forecast"
              ]
            },
            "scale": {
              "description": "Multiply source monetary amounts by this factor. Use 1 for amounts in full currency units.",
              "anyOf": [
                {
                  "type": "number",
                  "const": 1
                },
                {
                  "type": "number",
                  "const": 1000
                },
                {
                  "type": "number",
                  "const": 1000000
                }
              ]
            },
            "asOf": {
              "description": "End date of the final T12 period.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "columnsAreMonthlyActuals": {
              "description": "Declare true only when the month columns contain standalone monthly actuals for this property.",
              "type": "boolean"
            },
            "categories": {
              "description": "GL account code or exact line label to category.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "grossPotentialRent",
                  "lossToLease",
                  "vacancy",
                  "concessions",
                  "badDebt",
                  "rentCollected",
                  "otherIncome",
                  "expenses",
                  "noi",
                  "unmapped"
                ]
              }
            },
            "columns": {
              "description": "Exact header overrides for the line-item label, optional account code, and ignored columns.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "additionalProperties": {
                "type": "string",
                "enum": [
                  "label",
                  "code",
                  "ignore"
                ]
              }
            },
            "periodEnd": {
              "description": "End date of Month 12 for Month 1 through Month 12 headers. Defaults to the period ending date in the preamble when present.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          "required": [
            "format",
            "base64"
          ],
          "additionalProperties": false
        }
      ],
      "description": "One trailing twelve-month statement. Declare statementType and columnsAreMonthlyActuals to confirm a reconciliation. File headers use a GL label (and optional code) and 12 dated or numbered month columns."
    },
    "gprBasis": {
      "default": "market",
      "description": "Market indicates reported GPR is before loss to lease. Use other for blended or unknown GPR definitions.",
      "type": "string",
      "enum": [
        "market",
        "other"
      ]
    },
    "deductionSign": {
      "description": "Declare the sign of T12 deductions when known. Opposite signs then indicate reversals or gains. If omitted, infer the sign separately for each contra-revenue GL line.",
      "type": "string",
      "enum": [
        "negative",
        "positive"
      ]
    }
  },
  "required": [
    "asOf",
    "rentRoll",
    "t12"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "asOf": "2026-10-31",
      "rentBasis": "monthly",
      "rentRoll": {
        "format": "csv",
        "asOf": "2026-10-31",
        "property": "Oak Terrace",
        "text": "Rent Roll as of 2026-10-31\nUnit,Tenant,Status,Lease Start,Lease End,Monthly Market Rent,Monthly Rent,Monthly Concessions\n101,,Vacant,,,1500,,\n102,Lee,Occupied,2026-04-01,2027-03-31,1600,1550,0"
      },
      "t12": {
        "format": "json",
        "property": "Oak Terrace",
        "statementType": "actual",
        "columnsAreMonthlyActuals": true,
        "months": [
          "2025-11",
          "2025-12",
          "2026-01",
          "2026-02",
          "2026-03",
          "2026-04",
          "2026-05",
          "2026-06",
          "2026-07",
          "2026-08",
          "2026-09",
          "2026-10"
        ],
        "lines": [
          {
            "label": "Gross Potential Rent",
            "amounts": [
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100,
              3100
            ]
          },
          {
            "label": "Loss to Lease",
            "amounts": [
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50,
              -50
            ]
          },
          {
            "label": "Vacancy Loss",
            "amounts": [
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500,
              -1500
            ]
          },
          {
            "label": "Concessions",
            "amounts": [
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0
            ]
          },
          {
            "label": "Rent Collected",
            "amounts": [
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550,
              1550
            ]
          }
        ]
      }
    }
  ]
}
```

Response:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "asOf": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "unit": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240,
            "description": "Unique unit key within the property. Include the building in this key for repeated unit numbers."
          },
          "tenant": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "occupied",
              "vacant",
              "model",
              "down",
              "unknown"
            ]
          },
          "futureLease": {
            "description": "A future lease record. Keep a separate row for the unit’s current status.",
            "type": "boolean"
          },
          "monthToMonth": {
            "description": "Verified month-to-month lease. The lease end may be omitted.",
            "type": "boolean"
          },
          "squareFeet": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "moveIn": {
            "description": "Actual move-in date, separate from the lease start.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "leaseStart": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "leaseEnd": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketRent": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000,
                "multipleOf": 0.01
              },
              {
                "type": "null"
              }
            ]
          },
          "contractRent": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000,
                "multipleOf": 0.01
              },
              {
                "type": "null"
              }
            ]
          },
          "concessions": {
            "description": "Monthly concession with the source sign. Use a consistent sign across units. Enter zero when verified.",
            "anyOf": [
              {
                "type": "number",
                "minimum": -1000000000,
                "maximum": 1000000000,
                "multipleOf": 0.01
              },
              {
                "type": "null"
              }
            ]
          },
          "charges": {
            "description": "Monthly charges keyed by source charge code.",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            },
            "additionalProperties": {
              "type": "number",
              "minimum": -1000000000,
              "maximum": 1000000000,
              "multipleOf": 0.01
            }
          },
          "balance": {
            "description": "Balance with the source sign convention.",
            "anyOf": [
              {
                "type": "number",
                "minimum": -1000000000,
                "maximum": 1000000000,
                "multipleOf": 0.01
              },
              {
                "type": "null"
              }
            ]
          },
          "row": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "chargeRows": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "rentChargeCodes": {
            "description": "Source charge codes summed into the monthly contract rent.",
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 240
            }
          }
        },
        "required": [
          "unit",
          "status",
          "row"
        ],
        "additionalProperties": false
      }
    },
    "occupancy": {
      "type": "object",
      "properties": {
        "totalUnits": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "occupied": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "vacant": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "model": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "down": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "unresolved": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "physicalRate": {
          "description": "Occupied units divided by all listed units, including model and down units. Null when current occupancy cannot be established for all units.",
          "type": [
            "number",
            "null"
          ]
        },
        "economic": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "month": {
                "type": "string",
                "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
              },
              "rate": {
                "description": "Cash rent collected divided by reported GPR.",
                "type": [
                  "number",
                  "null"
                ]
              },
              "rentCollected": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "grossPotentialRent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "lineRefs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "row": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 240
                    },
                    "code": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 240
                    }
                  },
                  "required": [
                    "row",
                    "label"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "month",
              "rate",
              "rentCollected",
              "grossPotentialRent",
              "lineRefs"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "totalUnits",
        "occupied",
        "vacant",
        "model",
        "down",
        "unresolved",
        "physicalRate",
        "economic"
      ],
      "additionalProperties": false
    },
    "rents": {
      "type": "object",
      "properties": {
        "totalMarketRent": {
          "type": [
            "number",
            "null"
          ]
        },
        "occupiedMarketRent": {
          "type": [
            "number",
            "null"
          ]
        },
        "inPlaceRent": {
          "type": [
            "number",
            "null"
          ]
        },
        "lossToLease": {
          "description": "Occupied market rent minus occupied monthly contract rent.",
          "type": [
            "number",
            "null"
          ]
        },
        "vacancyAtMarketRent": {
          "type": [
            "number",
            "null"
          ]
        },
        "concessions": {
          "description": "Total monthly occupied-unit concessions as a positive deduction. Null when the source signs are mixed or amounts are incomplete.",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "totalMarketRent",
        "occupiedMarketRent",
        "inPlaceRent",
        "lossToLease",
        "vacancyAtMarketRent",
        "concessions"
      ],
      "additionalProperties": false
    },
    "leaseExpirations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
          },
          "unitRefs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "unit": {
                  "type": "string"
                }
              },
              "required": [
                "row",
                "unit"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "month",
          "unitRefs"
        ],
        "additionalProperties": false
      }
    },
    "t12": {
      "type": "object",
      "properties": {
        "months": {
          "minItems": 12,
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
          }
        },
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "category": {
                "type": "string",
                "enum": [
                  "grossPotentialRent",
                  "lossToLease",
                  "vacancy",
                  "concessions",
                  "badDebt",
                  "rentCollected",
                  "otherIncome",
                  "expenses",
                  "noi",
                  "unmapped"
                ]
              },
              "amounts": {
                "minItems": 12,
                "maxItems": 12,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": -1000000000,
                      "maximum": 1000000000,
                      "multipleOf": 0.01
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": "Monthly amounts in the same currency as the rent roll. Null means unavailable."
              },
              "row": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "deduction": {
                "type": "object",
                "properties": {
                  "signConvention": {
                    "type": "string",
                    "enum": [
                      "negative",
                      "positive",
                      "zero",
                      "ambiguous",
                      "unavailable"
                    ]
                  },
                  "amounts": {
                    "minItems": 12,
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "description": "Monthly contra-revenue amounts as positive deductions. A declared sign preserves opposite-sign reversals and gains."
                  }
                },
                "required": [
                  "signConvention",
                  "amounts"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "label",
              "category",
              "amounts",
              "row"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "months",
        "lines"
      ],
      "additionalProperties": false
    },
    "comparisons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
          },
          "field": {
            "type": "string",
            "enum": [
              "grossPotentialRent",
              "lossToLease",
              "vacancy",
              "concessions",
              "rentCollected"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "match",
              "discrepancy",
              "needs_review"
            ]
          },
          "expected": {
            "type": [
              "number",
              "null"
            ]
          },
          "actual": {
            "type": [
              "number",
              "null"
            ]
          },
          "difference": {
            "description": "T12 actual less rent roll. Present for a comparable month with both amounts, complete caller declarations and no detected contradiction.",
            "type": [
              "number",
              "null"
            ]
          },
          "reason": {
            "type": "string"
          },
          "unitRefs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "unit": {
                  "type": "string"
                }
              },
              "required": [
                "row",
                "unit"
              ],
              "additionalProperties": false
            }
          },
          "lineRefs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 240
                },
                "code": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 240
                }
              },
              "required": [
                "row",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "source": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "month",
          "field",
          "status",
          "expected",
          "actual",
          "difference",
          "reason",
          "unitRefs",
          "lineRefs",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "columnMapping": {
      "type": "object",
      "properties": {
        "rentRoll": {
          "type": "object",
          "properties": {
            "headerRow": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "sheet": {
              "type": "string"
            },
            "mapped": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "header": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  }
                },
                "required": [
                  "column",
                  "header",
                  "field"
                ],
                "additionalProperties": false
              }
            },
            "unmapped": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "header": {
                    "type": "string"
                  }
                },
                "required": [
                  "column",
                  "header"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "headerRow",
            "mapped",
            "unmapped"
          ],
          "additionalProperties": false
        },
        "t12": {
          "type": "object",
          "properties": {
            "headerRow": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "sheet": {
              "type": "string"
            },
            "mapped": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "header": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  }
                },
                "required": [
                  "column",
                  "header",
                  "field"
                ],
                "additionalProperties": false
              }
            },
            "unmapped": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "header": {
                    "type": "string"
                  }
                },
                "required": [
                  "column",
                  "header"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "headerRow",
            "mapped",
            "unmapped"
          ],
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "unitRefs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "unit": {
                  "type": "string"
                }
              },
              "required": [
                "row",
                "unit"
              ],
              "additionalProperties": false
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          }
        },
        "required": [
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "missingDeclarations": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "rentRoll.asOf",
          "rentRoll.property",
          "t12.property",
          "t12.statementType",
          "t12.columnsAreMonthlyActuals",
          "rentBasis"
        ]
      },
      "description": "Request fields that must be declared to confirm the comparison."
    },
    "needs_review": {
      "type": "boolean"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "version"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "asOf",
    "units",
    "occupancy",
    "rents",
    "leaseExpirations",
    "t12",
    "comparisons",
    "columnMapping",
    "findings",
    "missingDeclarations",
    "needs_review",
    "sources"
  ],
  "additionalProperties": false
}
```
