{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-list-webhook-event-response-schema.json",
  "title": "ListWebhookEventResponse",
  "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/ListWebhookEventResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "error code"
    },
    "message": {
      "type": "string",
      "description": "error message"
    },
    "data": {
      "$ref": "#/$defs/ListWebhookEventResponse_Data"
    }
  },
  "$defs": {
    "ListWebhookEventResponse_Data": {
      "type": "object",
      "properties": {
        "has_more": {
          "type": "boolean",
          "description": "Whether there is more data"
        },
        "list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WebhookEvent"
          },
          "description": "Webhook event list"
        }
      }
    },
    "WebhookEvent": {
      "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\n- invoice.payment_failed: Triggered when invoice payment fails\n- invoice.paid: Triggered when invoice payment succeeds\n- subscription.trial_period_expiring: Triggered when subscription trial period is about to expire\n- subscription.first: Triggered when subscription first payment succeeds\n- subscription.canceled: Triggered when subscription is canceled\n- subscription.price_changed: Triggered when subscription price is changed\n- trades.succeeded: Triggered when trade payment succeeds\n- trades.payment_failed: Triggered when trade payment fails\n- refunds.succeeded: Triggered when refund succeeds\n- refunds.failed: Triggered when refund fails"
        },
        "event_status": {
          "type": "string",
          "description": "Event delivery status\n- pending: Event is pending delivery\n- success: Event delivered successfully\n- failed: Event delivery failed"
        },
        "url": {
          "type": "string",
          "description": "Webhook callback URL"
        },
        "content": {
          "type": "string",
          "description": "Event payload content, JSON-encoded string containing event-specific data"
        }
      }
    }
  }
}