{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keyshortcuts-net/json-schema/keyshortcuts-net-conversion-summary-schema.json",
  "title": "ConversionSummary",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keyshortcuts-net-openapi.json#/components/schemas/ConversionSummary",
  "type": "object",
  "required": [
    "days",
    "timezone",
    "startDate",
    "endDate",
    "visitorMonths",
    "rawPageviews",
    "qualifiedPageviews",
    "shopViews",
    "qualifiedShopViews",
    "productRows",
    "topLandingPages",
    "measurementNote"
  ],
  "properties": {
    "days": {
      "type": "integer",
      "enum": [
        7,
        14,
        28
      ]
    },
    "timezone": {
      "type": "string"
    },
    "startDate": {
      "type": "string"
    },
    "endDate": {
      "type": "string"
    },
    "visitorMonths": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConversionVisitorMonth"
      }
    },
    "rawPageviews": {
      "type": "integer"
    },
    "qualifiedPageviews": {
      "type": "integer"
    },
    "shopViews": {
      "type": "integer"
    },
    "qualifiedShopViews": {
      "type": "integer"
    },
    "productRows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConversionProduct"
      }
    },
    "topLandingPages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConversionLanding"
      }
    },
    "measurementNote": {
      "type": "string"
    }
  },
  "$defs": {
    "ConversionLanding": {
      "type": "object",
      "required": [
        "path",
        "currency",
        "clicks",
        "checkoutCreated",
        "purchases",
        "grossMinor"
      ],
      "properties": {
        "path": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "clicks": {
          "type": "integer"
        },
        "checkoutCreated": {
          "type": "integer"
        },
        "purchases": {
          "type": "integer"
        },
        "grossMinor": {
          "type": "string"
        }
      }
    },
    "ConversionProduct": {
      "type": "object",
      "required": [
        "product",
        "currency",
        "clicks",
        "selections",
        "checkoutRequests",
        "checkoutCreated",
        "checkoutErrors",
        "checkoutReturns",
        "checkoutCancels",
        "purchases",
        "grossMinor"
      ],
      "properties": {
        "product": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "clicks": {
          "type": "integer"
        },
        "selections": {
          "type": "integer"
        },
        "checkoutRequests": {
          "type": "integer"
        },
        "checkoutCreated": {
          "type": "integer"
        },
        "checkoutErrors": {
          "type": "integer"
        },
        "checkoutReturns": {
          "type": "integer"
        },
        "checkoutCancels": {
          "type": "integer"
        },
        "purchases": {
          "type": "integer"
        },
        "grossMinor": {
          "type": "string"
        }
      }
    },
    "ConversionVisitorMonth": {
      "type": "object",
      "required": [
        "month",
        "visitors"
      ],
      "properties": {
        "month": {
          "type": "string"
        },
        "visitors": {
          "type": "integer"
        }
      }
    }
  }
}