Guest communication opted in

When a guest opts in to receive communications (transactional or marketing) via SMS, Email, or WhatsApp, a Guest.OptedIn event will be triggered. This webhook delivers a payload containing the guest's updated communication preferences.

{
  "id": "<guid>",
  "_id": "<bigint>",
  "timestamp": "2023-11-15T14:30:45Z",
  "details": {
    "first_name": "John",
    "last_name": "Doe",
    "email": "[email protected]",
    "phone": [
      {
        "type": "Mobile",
        "country_code": "<country_code>",
        "number": "<number>"
      },
      {
        "type": "Home",
        "country_code": "<country_code>",
        "number": "<number>"
      },
      {
        "type": "Work",
        "country_code": "<country_code>",
        "number": "<number>"
      }
    ]
  },
  "preference_update": {
    "category": "marketing",
    "channel": "email"
  },
  "current_preferences": {
    "marketing": {
      "email": "opted-in",
      "sms": "opted-out",
      "whatsapp": "opted-out"
    },
    "transactional": {
      "email": "opted-in",
      "sms": "opted-in",
      "whatsapp": "opted-in"
    }
  }
}