This page covers webhook payload responses for Bank Account endpoints.
Bank account created
This is a sample webhook payload for bank-accounts-created
.
{
"webhook_id":"3cc6a3e58cbe4b71bbbe8b821d2242b8",
"task_id":"c32fb957ec7246828da56be7516da765",
"link_id":"9915c50cc047413bb810767f218390f8",
"product":"employment",
"data_source":"payroll",
"tracking_info":null,
"event_type":"bank-accounts-created",
"event_created_at":"2022-08-23T17:32:19.269355Z",
"objects_count":2,
"employment_id":"427abebd8590457e8332fdff77fc412f",
"user_id": "88fef4cea64c40b5ad6727cc9b0b9fdc",
"template_id": null
}
The bank-accounts-created
events occurs when any non-refresh Task is successful and complete with new objects. For multiple shifts or bank accounts, Truv responds with a webhook for each object created.
Bank account updated
The sample below is for the bank-accounts-updated
webhook payload.
{
"webhook_id":"3cc6a3e58cbe4b71bbbe8b821d2242b8",
"task_id":"c32fb957ec7246828da56be7516da765",
"link_id":"9915c50cc047413bb810767f218390f8",
"product":"employment",
"data_source":"payroll",
"tracking_info":null,
"event_type":"bank-accounts-updated",
"event_created_at":"2022-08-23T17:32:19.269355Z",
"objects_count":2,
"employment_id":"427abebd8590457e8332fdff77fc412f",
"user_id": "88fef4cea64c40b5ad6727cc9b0b9fdc",
"template_id": null
}
The bank-accounts-updated
events occur when any refresh Task is successful and complete. This applies when a user has a different number bank accounts from a previous Task. For example, the webhook response would apply for if a person had 3 bank accounts and now has 4.