{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-webhook-update-request-schema.json",
  "title": "WebhookUpdateRequest",
  "description": "Webhook update parameters",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-webhooks-api-openapi.yml#/components/schemas/WebhookUpdateRequest",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The webhook's URL to which event notifications will be sent.\nMust be a valid HTTP or HTTPS URL, capable of receiving POST requests."
    },
    "events": {
      "type": "array",
      "description": "The list of event types that the webhook is configured to listen to.",
      "items": {
        "$ref": "#/$defs/EventType"
      }
    }
  },
  "$defs": {
    "EventType": {
      "type": "string",
      "description": "Webhook event type",
      "enum": [
        "ORDER_CREATED",
        "ORDER_PROCESSING",
        "ORDER_COMPLETED",
        "ORDER_FAILED"
      ]
    }
  }
}