{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-whats-app-business-solution-schema.json",
  "title": "WhatsAppBusinessSolution",
  "description": "Multi-Partner Solution details and configuration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-multi-partner-solutions-api-openapi.yml#/components/schemas/WhatsAppBusinessSolution",
  "type": "object",
  "required": [
    "id",
    "name",
    "status",
    "status_for_pending_request"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the Multi-Partner Solution"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name of the Multi-Partner Solution",
      "minLength": 2,
      "maxLength": 75
    },
    "status": {
      "$ref": "#/$defs/WhatsAppBusinessSolutionStatus"
    },
    "status_for_pending_request": {
      "$ref": "#/$defs/WhatsAppBusinessSolutionPendingStatus"
    },
    "owner_app": {
      "$ref": "#/$defs/ApplicationNode"
    },
    "owner_permissions": {
      "type": "array",
      "description": "List of WhatsApp Business Account permissions granted to the solution owner",
      "items": {
        "$ref": "#/$defs/WhatsAppBusinessAccountPermissionTask"
      }
    }
  },
  "$defs": {
    "ApplicationNode": {
      "type": "object",
      "description": "Meta application that owns the Multi-Partner Solution",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the Meta application"
        },
        "name": {
          "type": "string",
          "description": "Name of the Meta application"
        }
      }
    },
    "WhatsAppBusinessAccountPermissionTask": {
      "type": "string",
      "description": "Granular permission tasks for WhatsApp Business Account access",
      "enum": [
        "MANAGE",
        "DEVELOP",
        "MANAGE_TEMPLATES",
        "MANAGE_PHONE",
        "VIEW_COST",
        "MANAGE_EXTENSIONS",
        "VIEW_PHONE_ASSETS",
        "MANAGE_PHONE_ASSETS",
        "VIEW_TEMPLATES",
        "VIEW_INSIGHTS",
        "RECEIVE_INCOMING_MESSAGES",
        "MANAGE_BILLING",
        "MANAGE_USERS",
        "MESSAGING",
        "FULL_CONTROL"
      ]
    },
    "WhatsAppBusinessSolutionPendingStatus": {
      "type": "string",
      "description": "Status of any pending solution status transition requests",
      "enum": [
        "PENDING_ACTIVATION",
        "PENDING_DEACTIVATION",
        "NONE"
      ]
    },
    "WhatsAppBusinessSolutionStatus": {
      "type": "string",
      "description": "Current effective status of the Multi-Partner Solution",
      "enum": [
        "DRAFT",
        "INITIATED",
        "ACTIVE",
        "REJECTED",
        "DEACTIVATED"
      ]
    }
  }
}