{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-event-list-schema.json",
  "title": "Event List",
  "description": "A list of webhooks events.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-webhooks-events-api-openapi.yml#/components/schemas/EventList",
  "type": "object",
  "properties": {
    "events": {
      "$ref": "#/$defs/event_list"
    },
    "count": {
      "type": "integer",
      "description": "The number of items in each range of results. Note that the response might have fewer items than the requested `page_size` value."
    },
    "links": {
      "$ref": "#/$defs/link_description_list"
    }
  },
  "$defs": {
    "event": {
      "type": "object",
      "title": "Event",
      "description": "A webhook event notification.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the webhook event notification.",
          "readOnly": true
        },
        "create_time": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the webhook event notification was created, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).",
          "readOnly": true
        },
        "resource_type": {
          "type": "string",
          "description": "The name of the resource related to the webhook notification event.",
          "readOnly": true
        },
        "event_version": {
          "$ref": "#/$defs/event_version"
        },
        "event_type": {
          "type": "string",
          "description": "The event that triggered the webhook event notification.",
          "readOnly": true
        },
        "summary": {
          "type": "string",
          "description": "A summary description for the event notification.",
          "readOnly": true
        },
        "resource_version": {
          "$ref": "#/$defs/resource_version"
        },
        "resource": {
          "$ref": "#/$defs/resource"
        },
        "links": {
          "$ref": "#/$defs/link_description_list"
        }
      }
    },
    "event_list": {
      "type": "array",
      "description": "An array of webhooks events.",
      "items": {
        "$ref": "#/$defs/event"
      }
    },
    "event_version": {
      "type": "string",
      "title": "Event Version",
      "description": "The event version in the webhook notification.",
      "deprecated": true,
      "pattern": "^([0-9]+.[0-9]+)$"
    },
    "link_description": {
      "type": "object",
      "title": "Link Description",
      "description": "The request-related [HATEOAS link](/docs/api/reference/api-responses/#hateoas-links) information.",
      "required": [
        "href",
        "rel"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call."
        },
        "rel": {
          "type": "string",
          "description": "The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml)."
        },
        "method": {
          "type": "string",
          "description": "The HTTP method required to make the related call.",
          "enum": [
            "GET",
            "POST",
            "PUT",
            "DELETE",
            "HEAD",
            "CONNECT",
            "OPTIONS",
            "PATCH"
          ]
        }
      }
    },
    "link_description_list": {
      "type": "array",
      "description": "An array of request-related [HATEOAS links](/docs/api/reference/api-responses/#hateoas-links).",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/link_description"
      }
    },
    "resource": {
      "type": "object",
      "title": "Resource",
      "description": "The resource that triggered the webhook event notification.",
      "readOnly": true,
      "additionalProperties": true
    },
    "resource_version": {
      "title": "Resource Version",
      "description": "The resource version in the webhook notification.",
      "type": "string",
      "pattern": "^([0-9]+.[0-9]+)$"
    }
  }
}