{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-list-webhook-event-v2-response-schema.json",
  "title": "ListWebhookEventV2Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subotiz-com-webhook-api-openapi.yml#/components/schemas/ListWebhookEventV2Response",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "error code"
    },
    "message": {
      "type": "string",
      "description": "error message"
    },
    "data": {
      "$ref": "#/$defs/ListWebhookEventV2Response_Data"
    }
  },
  "$defs": {
    "EndpointEvent": {
      "type": "object",
      "properties": {
        "endpoint_id": {
          "type": "string",
          "description": "Unique identifier for the webhook endpoint"
        },
        "url": {
          "type": "string",
          "description": "Webhook callback URL"
        },
        "event_status": {
          "type": "string",
          "description": "Event delivery status\n- pending: Event is pending delivery\n- success: Event delivered successfully\n- failed: Event delivery failed"
        }
      }
    },
    "ListWebhookEventV2Response_Data": {
      "type": "object",
      "properties": {
        "has_more": {
          "type": "boolean",
          "description": "Whether there is more data"
        },
        "list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WebhookEventV2"
          },
          "description": "Webhook event list"
        }
      }
    },
    "WebhookEventV2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the webhook event"
        },
        "business_id": {
          "type": "string",
          "description": "Business identifier associated with the event"
        },
        "event_type": {
          "type": "string",
          "description": "Event type"
        },
        "content": {
          "type": "string",
          "description": "Event payload content, JSON-encoded string containing event-specific data"
        },
        "endpoint_events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EndpointEvent"
          },
          "description": "Delivery status for each endpoint"
        }
      }
    }
  }
}