{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-campaign/refs/heads/main/json-schema/adobe-campaign-classic-subscription-request-schema.json",
  "title": "SubscriptionRequest",
  "description": "SOAP envelope containing the service name and recipient DOM element for subscribe/unsubscribe operations.",
  "type": "object",
  "properties": {
    "serviceName": {
      "type": "string",
      "description": "Internal name of the information service.",
      "example": "Example Campaign"
    },
    "recipient": {
      "type": "object",
      "description": "Recipient DOM element identifying the subscriber.",
      "properties": {
        "email": {
          "type": "string",
          "description": "Email address of the recipient."
        },
        "id": {
          "type": "integer",
          "description": "Internal ID of the recipient."
        }
      }
    },
    "create": {
      "type": "boolean",
      "description": "Whether to create the recipient if not found (subscribe only).",
      "example": true
    }
  }
}