Attendance Clock In

When?

When the user clocks in and starts the timer, this event is triggered.

2054

Click on "Clock in" to trigger the event

How?

Example curl to subscribe.

curl --request POST \
     --url https://api.factorialhr.com/api/v1/webhooks \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer TOKEN' \
     --header 'Content-Type: application/json' \
     --data '
{
     "type": "attendance_clockin",
     "target_url": "https://foo.com/webhooks/attendance_clockin"
}
'

What?

What does this webhooks send in the payload.

{
  "id": 18,
  "day": 29,
  "month": 10,
  "year": 2021,
  "clock_in": "10:55",
  "clock_out": null,
  "employee_id": 36,
  "observations": null
}

Why?

Why would I subscribe to this event?

  • Do an action on an external application immediately when user clocks in.
  • Sync shifts with external application.