{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-partner-webhook-schema.json",
  "title": "PartnerWebhook",
  "description": "A webhook configured for a sub-merchant account via the Partners API. Maximum 30 webhooks per account.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-partner-webhooks-api-openapi.yml#/components/schemas/PartnerWebhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Webhook ID, max 14 characters"
    },
    "entity": {
      "type": "string",
      "enum": [
        "webhook"
      ]
    },
    "owner_id": {
      "type": "string"
    },
    "owner_type": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "HTTPS URL to receive webhook events"
    },
    "alert_email": {
      "type": "string"
    },
    "secret": {
      "type": "string",
      "description": "Shared secret for HMAC verification (write-only)"
    },
    "secret_exists": {
      "type": "boolean"
    },
    "active": {
      "type": "boolean"
    },
    "events": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      },
      "description": "Map of event names to boolean"
    },
    "service": {
      "type": "string"
    },
    "context": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "disabled_at": {
      "type": "integer"
    },
    "created_at": {
      "type": "integer"
    },
    "updated_at": {
      "type": "integer"
    }
  }
}