post https://api.factorialhr.com/api/v2/core/webhooks
Creates a subscription for a determined webhook type. If webhook already exists, it just changes the target_url.
Webhooks Types
Subscription Type | Information |
---|---|
Authentication::Events::AccessInvited | When creating a new employee, optionally you can send an invitation to create an account in Factorial. If you send an invitation, this event gets triggered. |
Employees::Events::EmployeeCreated | When creating a new employee, after submitting the form, this event gets triggered. |
Employees::Events::EmployeeUpdated | When updating personal protected employee information such has birthday, this event gets triggered. |
Employees::Events::EmployeeTerminated | When terminating an employee, after submitting the form, this event gets triggered |
Employees::Events::EmployeeUnterminated | When un terminating an employee, after submitting the form, this event gets triggered |
Attendance::Events::ClockIn | When the user clocks in and starts the timer, this event is triggered. |
Attendance::Events::ClockOut | When the user clocks out and stops the timer, this event is triggered |
Attendance::Events::AttendanceShiftCreated | When the user creates a shift, this event is triggered |
Attendance::Events::AttendanceShiftUpdated | When the user edits a shift, this event is triggered |
Attendance::Events::AttendanceShiftDeleted | When the user deletes a shift, this event is triggered |
Ats::Events::ApplicationCreated | When a candidate applies for a posting. |
Ats::Events::ApplicationUpdated | When a candidates application for a posting suffers changes. |
Ats::Events::JobPostingCreated | When a job posting is created. |
Ats::Events::JobPostingUpdated | When a job posting is updated. |
Ats::Events::JobPostingDeleted | When a job posting is deleted. |
Timeoff::Events::LeaveCreated | When a Timeoff Leave is created. |
Timeoff::Events::LeaveDestroyed | When a Timeoff Leave is destroyed. |
Timeoff::Events::LeaveUpdated | When a Timeoff Leave suffers any changes. |
Timeoff::Events::LeaveApproved | When a Timeoff Leave is explicitly approved. |
Timeoff::Events::LeaveRejected | When a Timeoff Leave is rejected. |
Documents::Events::Created | When a document is created. |
Tasks::Events::Created | When a task is created. |
Contracts::Events::ContractVersionCreated | When a contract version is created. |
Contracts::Events::ContractVersionUpdated | When a contract version is updated. |
Payroll::Events::SupplementCreated | When a payroll supplement is created. |
Payroll::Events::SupplementUpdated | When a payroll supplement is updated. |
Payroll::Events::SupplementDeleted | When a payroll supplement is deleted. |
Payroll::Events::PolicyPeriodStatusUpdated | When a payroll policy period's status is updated. Statuses include preparation, supplements_definition, under_review, payroll_calculation, and paid |
BookkeepersManagement::Events::IncidenceStatusCreated | When an employee update is validated. |