{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-webhook-input-schema.json",
  "title": "WebhookInput",
  "description": "Input for creating or updating a webhook.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-webhooks-api-openapi.yml#/components/schemas/WebhookInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Friendly webhook name."
    },
    "status": {
      "type": "string",
      "description": "Webhook status.",
      "enum": [
        "active",
        "paused",
        "disabled"
      ]
    },
    "topic": {
      "type": "string",
      "description": "Event topic that triggers the webhook (e.g. order.created)."
    },
    "delivery_url": {
      "type": "string",
      "format": "uri",
      "description": "URL to receive POST notifications."
    },
    "secret": {
      "type": "string",
      "description": "Secret key used to generate the HMAC-SHA256 payload signature included in the X-WC-Webhook-Signature header."
    }
  }
}