The descriptions on this page cover webhooks for employment notifications.
Employment created
These webhooks occur when successfully creating an employment. It occurs once per Link for each non-refresh Task completion. Multiple responses are available when finding additional employments. See the section below for the event type and example response.
employment-created
{
"webhook_id":"984e2cf9b69e4bc29acea714f1d5a554",
"task_id":"c32fb957ec7246828da56be7516da765",
"link_id":"9915c50cc047413bb810767f218390f8",
"product":"employment",
"data_source":"payroll",
"tracking_info":null,
"event_type":"employment-created",
"event_created_at":"2022-08-23T17:32:19.307951Z",
"object_id":"427abebd8590457e8332fdff77fc412f",
"template_id": null
}
Employment updated
Truv responds with this webhook for employment after completing refresh Tasks. View the event type and sample below.
employment-updated
{
"webhook_id":"984e2cf9b69e4bc29acea714f1d5a554",
"task_id":"c32fb957ec7246828da56be7516da765",
"link_id":"9915c50cc047413bb810767f218390f8",
"product":"employment",
"data_source":"payroll",
"tracking_info":null,
"event_type":"employment-updated",
"event_created_at":"2022-08-23T17:32:19.307951Z",
"object_id":"427abebd8590457e8332fdff77fc412f",
"template_id": null
}