{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-create-collateral-valuation-request-schema.json",
  "title": "CreateCollateralValuationRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-collateral-valuations-api-openapi.yml#/components/schemas/CreateCollateralValuationRequest",
  "properties": {
    "eligible_value_cents": {
      "type": "integer",
      "title": "Eligible Value Cents",
      "description": "The eligible value of the collateral, in cents.",
      "hidden": false
    },
    "advance_rate_percent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ],
      "title": "Advance Rate Percent",
      "description": "The advance rate of the collateral, as a whole number (e.g., 5.75 for 5.75%).",
      "hidden": false
    },
    "valuation_type": {
      "$ref": "#/$defs/ValuationType",
      "description": "The type of valuation used to determine the eligible value.",
      "hidden": false
    },
    "source": {
      "type": "string",
      "title": "Source",
      "description": "The source of the valuation.",
      "hidden": false
    },
    "effective_at": {
      "type": "string",
      "title": "Effective At",
      "description": "The date and time in which collateral valuation is effective"
    }
  },
  "type": "object",
  "required": [
    "eligible_value_cents",
    "advance_rate_percent",
    "valuation_type",
    "source"
  ],
  "$defs": {
    "ValuationType": {
      "type": "string",
      "enum": [
        "FULL_APPRAISAL",
        "DESKTOP_APPRAISAL",
        "MARKET_VALUE",
        "LENDER_ANALYSIS",
        "BORROWER_PROVIDED"
      ],
      "title": "ValuationType"
    }
  }
}