Attendance Clock Out

When?

When the user clocks out and stops the timer, this event is triggered.

Click on "Clock out" to trigger the eventClick on "Clock out" to trigger the event

Click on "Clock out" 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_clockout",
     "target_url": "https://foo.com/webhooks/attendance_clockout"
}
'

What?

What does this webhooks send in the payload.

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

Why?

Why would I subscribe to this event?

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

Did this page help you?