{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-daproject-checkout-request-schema.json",
  "title": "DAProjectCheckoutRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-da-project-api-openapi.yml#/components/schemas/DAProjectCheckoutRequest",
  "properties": {
    "org_id": {
      "type": "string",
      "title": "Org Id",
      "description": "Applicant's personal org (ci_organizations.id)"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "property_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Property Id"
    },
    "address": {
      "type": "string",
      "maxLength": 400,
      "minLength": 3,
      "title": "Address"
    },
    "dev_type": {
      "type": "string",
      "title": "Dev Type",
      "default": "kdr_single"
    },
    "unit_count": {
      "type": "integer",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Unit Count",
      "default": 1
    },
    "works_intent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Works Intent"
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id"
    },
    "lga": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lga"
    },
    "zone_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Zone Code"
    },
    "source_report_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Report Id",
      "description": "Preliminary report this was started from"
    },
    "success_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Success Url"
    },
    "cancel_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancel Url"
    },
    "utm": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Utm",
      "description": "Marketing attribution pairs (utm_source/utm_medium/utm_campaign/utm_term/utm_content/referrer). Sanitized server-side."
    }
  },
  "type": "object",
  "required": [
    "org_id",
    "email",
    "address"
  ]
}