{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-pricing-assessment-response-schema.json",
  "title": "PricingAssessmentResponse",
  "description": "Lightweight pricing assessment — comparable-sales + suburb-\nfacets blend, NO Gemini Vision (saves cost so it's safe to expose\npublicly with X-API-Key gating only).\n\nSame shape as Casa Daily's PricingAssessmentPayload so the\nextension can render the assessment with the same component\nwhether the user is signed in or not.",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-openapi.json#/components/schemas/PricingAssessmentResponse",
  "properties": {
    "property_id": {
      "type": "string",
      "title": "Property Id"
    },
    "address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "zone_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Zone Code"
    },
    "bedrooms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bedrooms"
    },
    "asking_price": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asking Price"
    },
    "asking_price_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asking Price Source"
    },
    "fair_value_low": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fair Value Low"
    },
    "fair_value_mid": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fair Value Mid"
    },
    "fair_value_high": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fair Value High"
    },
    "delta_pct_vs_mid": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Delta Pct Vs Mid"
    },
    "verdict": {
      "type": "string",
      "title": "Verdict",
      "default": "unknown"
    },
    "bargaining_room_aud": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bargaining Room Aud"
    },
    "recommended_offer_low": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recommended Offer Low"
    },
    "recommended_offer_high": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recommended Offer High"
    },
    "comparables_used": {
      "type": "integer",
      "title": "Comparables Used",
      "default": 0
    },
    "zone_facet_median": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Zone Facet Median"
    },
    "bedroom_facet_median": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bedroom Facet Median"
    },
    "suburb_median": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Suburb Median"
    },
    "bathrooms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bathrooms"
    },
    "year_built": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Year Built"
    },
    "days_on_market": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Days On Market"
    },
    "rationale": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Rationale",
      "default": []
    },
    "top_comparables": {
      "items": {
        "$ref": "#/$defs/PricingComparable"
      },
      "type": "array",
      "title": "Top Comparables",
      "default": []
    },
    "tier": {
      "type": "string",
      "title": "Tier",
      "default": "lite"
    }
  },
  "type": "object",
  "required": [
    "property_id"
  ],
  "$defs": {
    "PricingComparable": {
      "properties": {
        "address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address"
        },
        "sale_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sale Date"
        },
        "sale_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sale Price"
        },
        "distance_m": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Distance M"
        },
        "land_area_m2": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Land Area M2"
        },
        "bedrooms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bedrooms"
        },
        "similarity_pct": {
          "type": "integer",
          "title": "Similarity Pct",
          "default": 0
        }
      },
      "type": "object",
      "title": "PricingComparable",
      "description": "A single comparable sale, similarity-weighted."
    }
  }
}