Skip to main content

GET Customer Events

Returns a list of all events associated with the specified customer.

Overview​

This endpoint retrieves access control events for a specific customer. Events include door access attempts, system alerts, and other security-related activities. This is essential for monitoring and auditing access control activities.

Resource URL​

https://api.volo-access.com/v1/business/customer/{CustomerGuid}/event

Authentication​

This endpoint requires both application and user authentication:

  • x-nonce-token: Required
  • x-app-token: Required
  • x-user-credential: Required

Path Parameters​

ParameterTypeRequiredDescription
CustomerGuidStringYesThe unique identifier for the customer

Query Parameters​

ParameterTypeRequiredDescription
fromDateDateTimeNoFilter events from this date (ISO 8601 format)
toDateDateTimeNoFilter events to this date (ISO 8601 format)
eventTypeIntegerNoFilter by specific event type

Example URL with Filters​

https://api.volo-access.com/v1/business/customer/550e8400-e29b-41d4-a716-446655440000/event?fromDate=2024-01-01T00:00:00.000Z&toDate=2024-01-31T23:59:59.000Z&eventType=1

Response​

Success Response (200 OK)​

Returns a ListEventDetailsResponse object containing an array of events:

ParameterTypeDescription
eventDetailsResponseListArrayArray of event objects

Each event object contains:

ParameterTypeDescription
eventIdIntegerThe event ID
displayNameStringThe event display name
priorityDescriptionStringThe priority description
customerGuidStringThe customer unique identifier
eventDateDateTimeThe event date (ISO 8601 format)
receivedDateDateTimeThe received date (ISO 8601 format)
deviceSerialNumberStringThe device serial number
deviceNameStringThe device name
deviceGuidStringThe device GUID
doorGuidStringThe door unique identifier
tokenDataStringThe token data
tokenGuidStringThe token unique identifier
tokenDescriptionStringThe token description
tokenLostBooleanWhether the token is lost
userGuidStringThe user unique identifier
userFirstNameStringThe user first name
userLastNameStringThe user last name
userBarredBooleanWhether the user is barred
userDeletedBooleanWhether the user is deleted
siteGuidStringThe site unique identifier
siteNameStringThe site name
siteCodeStringThe site code
doorNameStringThe door name
doorDeletedBooleanWhether the door is deleted
deviceDeletedBooleanWhether the device is deleted
siteDeletedBooleanWhether the site is deleted
timezoneDescriptionStringThe timezone description
installerCodeStringThe installer code
customerNameStringThe customer name
eventTypeIntegerThe event type
localDoorIdIntegerThe local door ID
tzIntegerThe controller timezone
deviceIdIntegerThe device ID
doorIdIntegerThe door ID
tokenIdIntegerThe token ID
customerIdIntegerThe customer ID
siteIdIntegerThe site ID
userIdIntegerThe user ID
tokenTypeIntegerThe token type
tokenIfTypeIntegerThe token interface type

Example Success Response​

{
"eventDetailsResponseList": [
{
"eventId": 12345,
"displayName": "Access Granted",
"priorityDescription": "Normal",
"customerGuid": "550e8400-e29b-41d4-a716-446655440000",
"eventDate": "2024-01-15T09:30:15.000Z",
"receivedDate": "2024-01-15T09:30:16.000Z",
"deviceSerialNumber": "VOLO001234",
"deviceName": "Main Entrance Controller",
"deviceGuid": "789e0123-e89b-12d3-a456-426614174002",
"doorGuid": "456e7890-e89b-12d3-a456-426614174001",
"tokenData": "1234567890",
"tokenGuid": "234e5678-e89b-12d3-a456-426614174004",
"tokenDescription": "Proximity Card",
"tokenLost": false,
"userGuid": "123e4567-e89b-12d3-a456-426614174000",
"userFirstName": "John",
"userLastName": "Doe",
"userBarred": false,
"userDeleted": false,
"siteGuid": "567e8901-e89b-12d3-a456-426614174005",
"siteName": "Main Office",
"siteCode": "MAIN",
"doorName": "Main Entrance",
"doorDeleted": false,
"deviceDeleted": false,
"siteDeleted": false,
"timezoneDescription": "Europe/London",
"installerCode": "INST001",
"customerName": "Acme Corporation",
"eventType": 1,
"localDoorId": 1,
"tz": 0,
"deviceId": 1001,
"doorId": 2001,
"tokenId": 3001,
"customerId": 12345,
"siteId": 4001,
"userId": 1001,
"tokenType": 1,
"tokenIfType": 1
},
{
"eventId": 12346,
"displayName": "Access Denied",
"priorityDescription": "High",
"customerGuid": "550e8400-e29b-41d4-a716-446655440000",
"eventDate": "2024-01-15T09:35:22.000Z",
"receivedDate": "2024-01-15T09:35:23.000Z",
"deviceSerialNumber": "VOLO001234",
"deviceName": "Main Entrance Controller",
"deviceGuid": "789e0123-e89b-12d3-a456-426614174002",
"doorGuid": "456e7890-e89b-12d3-a456-426614174001",
"tokenData": "9876543210",
"tokenGuid": "345e6789-e89b-12d3-a456-426614174006",
"tokenDescription": "Unknown Token",
"tokenLost": false,
"userGuid": null,
"userFirstName": null,
"userLastName": null,
"userBarred": false,
"userDeleted": false,
"siteGuid": "567e8901-e89b-12d3-a456-426614174005",
"siteName": "Main Office",
"siteCode": "MAIN",
"doorName": "Main Entrance",
"doorDeleted": false,
"deviceDeleted": false,
"siteDeleted": false,
"timezoneDescription": "Europe/London",
"installerCode": "INST001",
"customerName": "Acme Corporation",
"eventType": 2,
"localDoorId": 1,
"tz": 0,
"deviceId": 1001,
"doorId": 2001,
"tokenId": null,
"customerId": 12345,
"siteId": 4001,
"userId": null,
"tokenType": null,
"tokenIfType": null
}
]
}

Error Responses​

400 Bad Request​

Returned for invalid customer GUID format or invalid date parameters:

{
"applicationMessage": "Invalid GUID format provided",
"consumerMessage": "The customer identifier format is invalid"
}

401 Unauthorized​

Returned when authentication is missing or invalid:

{
"applicationMessage": "Missing or invalid authentication headers",
"consumerMessage": "Authentication required"
}

403 Forbidden​

Returned when user lacks permission to view the customer's events:

{
"applicationMessage": "User does not have permission to access customer event data",
"consumerMessage": "You do not have permission to view this information"
}

404 Not Found​

Returned when the customer doesn't exist:

{
"applicationMessage": "Customer with GUID 550e8400-e29b-41d4-a716-446655440000 not found",
"consumerMessage": "Customer not found"
}

500 Internal Server Error​

Returned for server-side errors:

{
"applicationMessage": "Database connection failed",
"consumerMessage": "An error occurred while retrieving event data"
}

Example Request​

GET https://api.volo-access.com/v1/business/customer/550e8400-e29b-41d4-a716-446655440000/event?fromDate=2024-01-01T00:00:00.000Z&toDate=2024-01-31T23:59:59.000Z
x-nonce-token: MDU4ZmQ5Y2EtNTExNi00N2E0LWI0Y2EtNjM1YWRjZTZjYmNi
x-app-token: d1d0ecac-3cca-48ef-a4c3-83005c6376ca
x-user-credential: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Usage Notes​

  • Large Datasets: Event data can be very large. Always use date filters to limit the response size
  • Performance: For large date ranges, consider breaking requests into smaller time periods
  • Event Types: Common event types include access granted (1), access denied (2), system alerts, etc.
  • Real-time Data: Events are typically available within seconds of occurrence
  • Deleted Entities: Events may reference deleted users, devices, or doors
  • Timezone: Events include timezone information for proper interpretation
  • Pagination: Consider implementing client-side pagination for large result sets
  • Filtering: Use the query parameters to filter events by date range and type