{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-app-api-v1-agency-order-in-schema.json",
  "title": "OrderIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-agency-api-openapi.yml#/components/schemas/app__api__v1__agency__OrderIn",
  "properties": {
    "token": {
      "type": "string",
      "maxLength": 64,
      "minLength": 16,
      "title": "Token"
    },
    "draft_id": {
      "type": "string",
      "maxLength": 36,
      "minLength": 36,
      "title": "Draft Id"
    },
    "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
    },
    "email": {
      "type": "string",
      "maxLength": 320,
      "title": "Email"
    },
    "phone": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 60
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone"
    },
    "address": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 400
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "property_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 36
        },
        {
          "type": "null"
        }
      ],
      "title": "Property Id"
    },
    "address_label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Address Label"
    },
    "neighbour_property_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 12
        },
        {
          "type": "null"
        }
      ],
      "title": "Neighbour Property Ids"
    },
    "context": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8000
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "po_number": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 60
        },
        {
          "type": "null"
        }
      ],
      "title": "Po Number"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(listing|appraisal)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose"
    },
    "report_type": {
      "type": "string",
      "pattern": "^(preliminary_planning|site_possibilities)$",
      "title": "Report Type",
      "default": "preliminary_planning"
    }
  },
  "type": "object",
  "required": [
    "token",
    "draft_id",
    "name",
    "email"
  ]
}