{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lili/main/json-schema/lili-webhook-request-schema.json",
  "title": "WebhookRequest",
  "description": "Contains the information to create/update a specific webhook",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lili-lili-api-openapi.yml#/components/schemas/WebhookRequest",
  "type": "object",
  "properties": {
    "serverUrl": {
      "type": "string",
      "description": "URL that will receive the webhook call",
      "format": "uri"
    },
    "status": {
      "enum": [
        "ACTIVE",
        "DISABLED"
      ],
      "description": "The status of the webhook"
    },
    "version": {
      "type": "string",
      "description": "The version of the webhook",
      "enum": [
        "V1_0",
        "V2_0"
      ],
      "default": "V1_0"
    },
    "type": {
      "type": "string",
      "description": "The type of the webhook",
      "enum": [
        "ONBOARDING",
        "PAYMENT",
        "ALL"
      ],
      "default": "ALL"
    }
  },
  "required": [
    "serverUrl",
    "status"
  ]
}