API Hub
  • Learn
  • Build
  • Help

Versions

Overview

  • Introduction
  • Authentication
  • Error Codes
  • Rate-Limits
  • Upgrades

    Metadata

    • Overview

      Core Resources

      • Devices
      • Alerts

        Webhooks

        • Introduction
        • Defining a Webhook
        • Event Types
        • Alert Types
        • Webhook invocation, retries and logs
        • Event Handling

          On this page

            • Alert Descriptions
            • Webhook Attributes
            • Sample Response

          Event Types

          The Webhook endpoint pushes the newly generated external alert(open ands closed) to the customer webhook(API’s providedby customer from where they can listen to).

          New external alert will be broadcasted to the customer by the customer provided webhook.

          Alert Descriptions#

          alert_typedevice_type impactedDescriptionRecommended Action
          jam_faulttowel
          soap
          sanitizer
          Dispenser will not be able to dispense product. This could be caused by tear bar issues, motor stalls or refills are incorrectly loaded.Remove refill and all excess material or debris. Reinstall refill to clear jam.
          sensor_faulttowel
          soap
          sanitizer
          Sensor out of range, communications fault or handwave sensor issue.Check for obstructions near handwave sensor, then wipe down hand-wave lens and wipe down sensor lens if it is a towel dispenser.
          system_faulttissue
          towel
          soap
          sanitizer
          Device has an internal issue. Device is not functional.Contact GP/KOLO rep for next steps and device replacement.
          battery_outtissue
          towel
          soap
          sanitizer
          Batteries are at critically low level. For automated dispensers (towel, sanitizer and soap) this will result in device not being able to dispense. For non-automated dispensers (tissue) this will result in eventual device_off alert.Replace the existing batteries with fully charged batteries.
          consumable_outtissue
          towel
          soap
          sanitizer
          Refill/consumable is near out or completely out.Replace the depleted refill with a full refill.
          incorrectly_loaded
          sensor_fault
          toto_leak
          toto_safety_check
          tissue
          towel
          soap
          sanitizer
          toto
          Other types of external alertsOther types of external alerts

          Webhook Attributes#

          AttributeTypeDescription
          event_typestringUnique event type of the alert(alert.resolved, alert.created)
          alert_idstringUnique identifier for this specific alert.
          account_idstringAccount Id for which alert is generated
          tagsstringsroom, floor and building formatted as tags
          idstringUnique identifier for the room, floor, or building
          namestringName of the room, floor, or building
          descriptionstringAttribute type can be room, floor, or building
          device_location_idstringUnique identifier for the device’s location within the room.
          device_macid[]stringString array identifier for the device’s macid for the alert
          alert_statusstringCurrent status of the alert (e.g., OPEN, CLOSED)
          refill_countintegerrefill_count limited to Consumable out and Battery out. For other alerts, it would be 0

          Consumable Out : Count would be initialised on the product low or product out. Alert raised on alert preference either low or out
          - Quad Tissue device type having 4 rolls consumable out or low: Count would be 4
          - Quad Tissue device type having 2 rolls consumable out or low: Count would be 2
          - Quad Tissue device type having 1 rolls consumable out or low: Count would be 1

          Battery Out : Count would be initialised on the depletion state of battery set
          - Quad Tissue device type having both battery set depleted: Count would be 2
          - Vertical Tissue, Towel or any other device type having battery set depleted : Count would be 1
          alert_typestringType of alert (e.g., DEVICE_OFF)
          created_datestringTimestamp of when the alert was created (in milliseconds)
          resolved_datestringTimestamp of when the alert was resolved (in milliseconds), or null if still open
          resolution_typestringDescribes how the alert was resolved:
          resolved: By a device event
          resolved_by_offline: Auto-resolved due to device going offline
          resolved_by_user: Manually resolved by user

          Sample Response#

          {
              "event_type": "alert.resolved",
              "data": {
                  "alert_id": "927486726" ,
                  "account_id": "445952",
                  "tags": [
                    {
                      "id": "65568971",
                      "name": "High Rise",
                      "description": "building"
                    },
                    {
                      "id": "65568973",
                      "name": "Floor-3",
                      "description": "floor"
                    },
                    {
                      "id": "65569018",
                      "name": "Women's Restroom",
                      "description": "room"
                    }
                  ],
                  "refill_count": 2,
                  "device_location_id" : "66048308",
                  "device_macid": ["87jshj86728","57jshj86730"],
                  "alert_status": "RESOLVED",
                  "alert_type": "BATTERY_OUT",
                  "created_date": "2021-12- 14T10:10:20Z",
                  "resolved_date": "2021-04-22T10:24:39Z",
                  "resolution_type": "RESOLVED_BY_USER"
              }
          }