.. include:: /atkeywords.rst .. _Contract_Module: ########### Module Api ########### .. _Contract_Module_Events: Module Events ************* Connection State Changed Event ============================== A webhook message is sent when the module connection state changes. **Authorization level** * :red:`12 (ManagementModuleNotification)` * :red:`22 (DeviceModuleNotification)` * :red:`32 (RestApiModuleNotification)` * :red:`42 (ZoneCountingModuleNotification)` * :red:`52 (NapelsPaymentKioskModuleNotification)` **Properties** * **event.isConnected** (boolean): true if the asset is connected; otherwise false. * **event.base64SequenceNumber** (string): base64 encoding of a 64-character hexadecimal string that can be used to determine the exact chronological order of connection state changes for a specific module * **event.$type**: See :ref:`webhook specific webhook message properties `. * **moduleId**: See :ref:`webhook common webhook message properties `. * **$type**: See :ref:`webhook common webhook message properties `. * **version**: See :ref:`webhook common webhook message properties `. * **createdUtc**: See :ref:`webhook common webhook message properties `. * **reportedUtc**: See :ref:`webhook common webhook message properties `. * **id**: See :ref:`webhook common webhook message properties `. * **assetId**: See :ref:`webhook common webhook message properties `. :: { "event": { "isConnected": true, "base64SequenceNumber": "AQIAAAAAAAAAAAAAXwMAANVL5+lwMd0B", "$type": 1 }, "moduleId": "RestApiModule1", "$type": 2, "version": 1, "createdUtc": "2026-11-20T13:33:40.3297589Z", "reportedUtc": "2026-11-20T13:33:13", "id": "98c5bb86-1f7a-4892-af29-aaae9f5189e0", "assetId": "10401990013-123004002" }