Notification

Properties

PropertyTypeDescription
notification_idstringThe identifier of the notification.
organization_idstringThe identifier of the organization.
notification_typestringIndicates the type of notification (e.g., policy_issued).
linked_entitiesobjectIndicates which entities the notification is linked to.
channelstringThe channel used for the notification. Channels available include email, sms or other.
providerstringIndicates how the notification was generated. Whether it was external, root_standard or root_webhooks.
created_atstringTime at which the notification was created.
created_byobjectAn object indicating the user or API key that created the notification. See Authentication.
statusstringThe current status of the notification.
status_updatesarrayAn array of status update information for the notification.
dataobjectAn object containing additional data depending on whether the notification channel is email, sms, or other.

Example

{
  "notification_id": "43c13dc8-2c19-402c-bb70-a7deb56b9f38",
  "organization_id": "4ce6ad99-9576-4d28-84ba-c30d2d536cbe",
  "channel": "sms",
  "notification_type": "policy_issued",
  "provider": "root_clickatell",
  "created_at": "2022-06-23T07:59:53.261Z",
  "created_by": {
    "type": "user",
    "id": "6f852057-b381-4ab0-a53d-93a6c2ec6f26"
  },
  "status": "delivered",
  "status_updates": [
    {
      "status": "queued",
      "createdAt": "2022-06-23T07:59:53.261Z"
    },
    {
      "status": "sent",
      "createdAt": "2022-06-23T07:59:54.000Z",
      "description": "Delivered to gateway (003)"
    },
    {
      "status": "delivered",
      "createdAt": "2022-06-23T07:59:57.000Z",
      "description": "Received by recipient (004)"
    }
  ],
  "linked_entities": {
    "policy_id": "b338a75b-207e-4b6c-8649-4c0ebfe39d8b",
    "policyholder_id": "b5b10383-0b50-4965-8bff-addb2001c5d1"
  },
  "data": {
    "to": [
      "+27811231234"
    ],
    "content": "Congratulations! Your  Cover has been activated from 01/06/2022."
  }
}