Payroll Documents Webhooks
Sent when payroll document events occur.
#Added
The payroll_documents.added
webhook is sent when a new payroll document is retrieved from a connected account.
- #eventsarray of stringsrequired
payroll_documents.added
- #namestringrequired
Your name for the webhook subscription.
- #urlstringrequired
Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.
- #secretstringoptional
Optional secret used to verify webhooks.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["payroll_documents.added"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "payroll_documents.added",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "payroll_document": "0176dc14-bb37-402a-7be1-f5261759fae7"
8 }
9}
#Updated
The payroll_documents.updated
webhook is sent when there is any change to a property value of a payroll document object during a data refresh.
- #eventsarray of stringsrequired
payroll_documents.updated
- #namestringrequired
Your name for the webhook subscription.
- #urlstringrequired
Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.
- #secretstringoptional
Optional secret used to verify webhooks.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["payroll_documents.updated"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "payroll_documents.updated",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "payroll_document": "0176dc14-bb37-402a-7be1-f5261759fae7"
8 }
9}
#Removed
The payroll_documents.removed
webhook is sent when an individual payroll document is deleted from an account or otherwise not found during a data refresh.
This webhook is not sent when an account is deleted via the API, or a user revokes access to their account.
- #eventsarray of stringsrequired
payroll_documents.removed
- #namestringrequired
Your name for the webhook subscription.
- #urlstringrequired
Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.
- #secretstringoptional
Optional secret used to verify webhooks.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["payroll_documents.removed"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "payroll_documents.removed",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "payroll_document": "0176dc14-bb37-402a-7be1-f5261759fae7"
8 }
9}
#OCR completed
The payroll_documents.ocr_completed
webhook is sent when Argyle has finished scanning a 1099 or W-2 document retrieved from a connected payroll account. The scanned information can be found within the ocr_data
object when retrieving a payroll document.
- #eventsarray of stringsrequired
payroll_documents.ocr_completed
- #namestringrequired
Your name for the webhook subscription.
- #urlstringrequired
Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.
- #secretstringoptional
Optional secret used to verify webhooks.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["payroll_documents.ocr_completed"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "payroll_documents.ocr_completed",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "payroll_document": "0176dc14-bb37-402a-7be1-f5261759fae7"
8 }
9}
#OCR failed
The payroll_documents.ocr_failed
webhook is sent when Argyle encounters an error while scanning a 1099 or W-2 document retrieved from a connected payroll account. The error that occurred will be returned within the ocr_data
object of the payroll document.
- #eventsarray of stringsrequired
payroll_documents.ocr_failed
- #namestringrequired
Your name for the webhook subscription.
- #urlstringrequired
Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.
- #secretstringoptional
Optional secret used to verify webhooks.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["payroll_documents.ocr_failed"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "payroll_documents.ocr_failed",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "payroll_document": "0176dc14-bb37-402a-7be1-f5261759fae7"
8 }
9}