{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financegenius-ai/json-schema/financegenius-ai-stitch-in-schema.json",
  "title": "StitchIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financegenius-ai-crm-attribution-api-openapi.yml#/components/schemas/StitchIn",
  "properties": {
    "visitor_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Visitor Id"
    },
    "visitor_token": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Visitor Token"
    },
    "pending": {
      "anyOf": [
        {
          "$ref": "#/$defs/PendingIn"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "type": "object",
  "$defs": {
    "PendingIn": {
      "properties": {
        "utm": {
          "additionalProperties": {
            "type": "string"
          },
          "propertyNames": {
            "enum": [
              "utm_source",
              "utm_medium",
              "utm_campaign",
              "utm_content",
              "utm_term"
            ]
          },
          "type": "object",
          "title": "Utm"
        },
        "landing_path": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300
            },
            {
              "type": "null"
            }
          ],
          "title": "Landing Path"
        },
        "referrer": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300
            },
            {
              "type": "null"
            }
          ],
          "title": "Referrer"
        },
        "go_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 20
            },
            {
              "type": "null"
            }
          ],
          "title": "Go Code"
        },
        "referral_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 24
            },
            {
              "type": "null"
            }
          ],
          "title": "Referral Code"
        },
        "surface": {
          "type": "string",
          "enum": [
            "web",
            "app"
          ],
          "title": "Surface",
          "default": "web"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PendingIn"
    }
  }
}