Employee Terminated

When?

When terminating an employee, after submitting the form, this event gets triggered.

On the 3 dots dropdown button, click on Terminate employee.On the 3 dots dropdown button, click on Terminate employee.

On the 3 dots dropdown button, click on Terminate employee.

After submitting the form, the webhook will get triggered.After submitting the form, the webhook will get triggered.

After submitting the form, the webhook will get triggered.

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": "employee_terminated",
     "target_url": "https://foo.com/webhooks/employee_terminated"
}
'

What?

What does this webhooks send in the payload.

{
  "id": 52,
  "first_name": "Bob",
  "last_name": "Macri",
  "email": "[email protected]",
  "invited_on": "2021-10-22"
}

Why?

Why would I subscribe to this event?

  • Send an email from another platform to users that get terminated in Factorial.
  • Create a Zapier.com automation with employees.
  • Delete a user in another platform or application.
  • Stop/delete access info for a user in an external access platform or device.

Did this page help you?