{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lazyads-ai/json-schema/lazyads-ai-conversion-event-schema.json",
  "title": "ConversionEvent",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/lazyads-ai-v1-openapi.json#/components/schemas/ConversionEvent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "sourceId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pixel / tag / conversion-action id."
    },
    "sourceName": {
      "type": [
        "string",
        "null"
      ]
    },
    "eventName": {
      "type": "string"
    },
    "standardEvent": {
      "type": [
        "string",
        "null"
      ]
    },
    "stage": {
      "type": "string",
      "enum": [
        "purchase",
        "checkout",
        "payment_info",
        "add_to_cart",
        "lead",
        "registration",
        "trial",
        "subscribe",
        "contact",
        "schedule",
        "application",
        "search",
        "view_content",
        "page_view",
        "app_install",
        "custom"
      ],
      "description": "Funnel stage of the event."
    },
    "count7d": {
      "type": [
        "integer",
        "null"
      ]
    },
    "count30d": {
      "type": [
        "integer",
        "null"
      ]
    },
    "weeklyVolume": {
      "type": [
        "number",
        "null"
      ]
    },
    "value7d": {
      "type": [
        "number",
        "null"
      ]
    },
    "isCustomConversion": {
      "type": "boolean"
    },
    "lastFiredAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}