Clock Events

Authentication: All endpoints require an Authorization: Bearer <access token> header.

Most endpoints require an X-Company-ID: <company_id> header to scope requests to a specific company. This is the recommended header for most API operations.

Some endpoints require an X-Location-ID: <location_id> header when the query doesn't accept a locationId parameter.

See Authentication for details on how to obtain and use these headers.

Add Clock Event

GraphQL Mutation

mutation AddClockEvent($input: AddClockEventInput!) {
  addClockEvent(input: $input) {
    id
  }
}

Example Variables - Clock In

{
  "input": {
    "deviceId": "SANDBOX_CLOCKING_DEVICE",
    "timeLocal": "2024-03-25 08:31:00",
    "timeServer": "2024-03-25 08:31:00",
    "status": 100,
    "employeeId": "72909"
  }
}

Example Response

{
  "data": {
    "addClockEvent": {
      "id": "3088"
    }
  }
}