{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financegenius-ai/json-schema/financegenius-ai-ticket-in-schema.json",
  "title": "TicketIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financegenius-ai-crm-console-tickets-api-openapi.yml#/components/schemas/TicketIn",
  "properties": {
    "customer_ref": {
      "type": "string",
      "format": "uuid",
      "title": "Customer Ref"
    },
    "category": {
      "type": "string",
      "maxLength": 20,
      "title": "Category"
    },
    "origin": {
      "type": "string",
      "enum": [
        "inbox",
        "call",
        "lead",
        "manual"
      ],
      "title": "Origin",
      "default": "manual"
    },
    "priority": {
      "type": "integer",
      "maximum": 3.0,
      "minimum": 1.0,
      "title": "Priority",
      "default": 2
    },
    "conversation_ref": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Conversation Ref"
    },
    "lead_ref": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lead Ref"
    },
    "application_ref": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Application Ref"
    },
    "assign_to_me": {
      "type": "boolean",
      "title": "Assign To Me",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "customer_ref",
    "category"
  ]
}