p_form_bulk_send.completed
A bulk P45/P60 send job finished. Names up to 100 employees who were not sent theirs, each with a reason, and counts every failure by reason.
{
"id": "evt_01KS2E3A50R38MY33HC5MW3RKV",
"type": "p_form_bulk_send.completed",
"timestamp": "2026-05-20T10:15:00.000Z",
"apiVersion": "2026-10-01",
"organisationId": "org-test-1",
"customerId": "customer-test-1",
"livemode": true,
"data": {
"eventType": "p_form_bulk_send.completed",
"jobId": "job-001",
"organisationId": "org-test-1",
"pFormType": "P60",
"taxYear": 2025,
"totalCount": 24,
"succeededCount": 23,
"failedCount": 1,
"startedAt": "2026-05-20T09:15:00.000Z",
"completedAt": "2026-05-20T10:15:00.000Z",
"failures": [
{
"employeeId": "employee-001",
"reason": "EmployeeEmailMissing"
}
],
"failuresTruncated": false,
"failureCountsByReason": {
"EmployeeEmailMissing": 1
},
"jobUrl": "https://api.flowpayroll.ai/v1/hmrc-p-forms/pforms/send-notification/jobs/job-001"
},
"metadata": {
"resourceUrl": "https://api.flowpayroll.ai/v1/hmrc-p-forms/pforms/send-notification/jobs/job-001",
"correlationId": "01K6B3N8Z4Q2W7X5Y9T1V3M6RA",
"documentUrl": null,
"payloadStyle": "Full",
"payloadDowngraded": false,
"dateFormat": "yyyy-MM-dd",
"dateTimeFormat": "yyyy-MM-ddTHH:mm:ss.fffZ"
}
}Headers
Space-delimited signatures over {id}.{timestamp}.{body}: every v1,{base64} HMAC-SHA256 entry, then every v1a,{base64} ed25519 entry. Verify v1a with the endpoint's public key, which we recommend because a receiver holding only a public key cannot sign events, or v1 with the signing secret, comparing in constant time. More than one of each appears during a secret rotation; accepting any match rotates with no downtime.
Body
The signed event envelope. The body is byte-identical across every delivery attempt; verify the signature against these raw bytes.
Response
Any 2xx acknowledges receipt. Respond quickly and do the work asynchronously: an attempt that has not finished within 15 seconds counts as failed.
Was this page helpful?
{
"id": "evt_01KS2E3A50R38MY33HC5MW3RKV",
"type": "p_form_bulk_send.completed",
"timestamp": "2026-05-20T10:15:00.000Z",
"apiVersion": "2026-10-01",
"organisationId": "org-test-1",
"customerId": "customer-test-1",
"livemode": true,
"data": {
"eventType": "p_form_bulk_send.completed",
"jobId": "job-001",
"organisationId": "org-test-1",
"pFormType": "P60",
"taxYear": 2025,
"totalCount": 24,
"succeededCount": 23,
"failedCount": 1,
"startedAt": "2026-05-20T09:15:00.000Z",
"completedAt": "2026-05-20T10:15:00.000Z",
"failures": [
{
"employeeId": "employee-001",
"reason": "EmployeeEmailMissing"
}
],
"failuresTruncated": false,
"failureCountsByReason": {
"EmployeeEmailMissing": 1
},
"jobUrl": "https://api.flowpayroll.ai/v1/hmrc-p-forms/pforms/send-notification/jobs/job-001"
},
"metadata": {
"resourceUrl": "https://api.flowpayroll.ai/v1/hmrc-p-forms/pforms/send-notification/jobs/job-001",
"correlationId": "01K6B3N8Z4Q2W7X5Y9T1V3M6RA",
"documentUrl": null,
"payloadStyle": "Full",
"payloadDowngraded": false,
"dateFormat": "yyyy-MM-dd",
"dateTimeFormat": "yyyy-MM-ddTHH:mm:ss.fffZ"
}
}