payroll_run.approved
A payroll run was approved: its payslips are locked.
Agoo sends this as a signed POST to every enabled endpoint subscribed to payroll_run.approved (or *).
Verify the signature, return any 2xx within 15 seconds, and de-duplicate on webhook-id.
webhook-id*stringThe event's ID. It is the same on every attempt and redelivery, so use it to de-duplicate.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"webhook-timestamp*stringWhen this attempt was signed, in Unix seconds. Reject the request if it is more than 5 minutes from your clock.
^[0-9]+$webhook-signature*stringOne or more space-separated signatures, each v1,<base64>: the base64 HMAC-SHA256 of
{webhook-id}.{webhook-timestamp}.{raw body}, keyed with the base64-decoded part of your whsec_ secret.
During a secret rotation there are two. Accept the request if any one matches.
application/json- body
An event about a payroll run. It carries IDs, states and dates, never money or names: read the run with payroll:read.
id*EventIdThe event's ID. Webhook deliveries send it as webhook-id.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"created_at*stringWhen the event happened.
date-timeorganisation_id*OrganisationIdAn organisation ID (TypeID with the org prefix).
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$"org_01kjpsrza0etzb0a4vf72x8ang"livemode*booleanfalse for events in test mode.
schema_version?integerThe layout of data.object for this type. It changes only with a new major version; new fields can arrive at any time.
1 <= valueoccurred_at?stringWhen it happened. Usually the same as created_at; earlier for something recorded after the fact.
date-timerecorded_at?stringWhen Agoo recorded it.
date-timeresource_version?integerThe object's version after this event. When events arrive out of order, keep the higher one.
int64legal_entity_id?stringThe legal entity the object belongs to, for the books.
correlation_id?stringThe request that caused it, to match your logs with Agoo support.
type*string"payroll_run.calculated""payroll_run.approved""payroll_run.paid""payroll_run.reversed""payroll_run.published"data*Any 2xx acknowledges it.
Example Requests
/payroll_run.approvedpayroll_run.calculated Webhook
A payroll run was calculated, or calculated again after its inputs changed. Agoo sends this as a signed `POST` to every enabled endpoint subscribed to `payroll_run.calculated` (or `*`). Verify the signature, return any `2xx` within 15 seconds, and de-duplicate on `webhook-id`.
payroll_run.paid Webhook
Every payslip in a payroll run is paid (or had nothing to pay). Agoo sends this as a signed `POST` to every enabled endpoint subscribed to `payroll_run.paid` (or `*`). Verify the signature, return any `2xx` within 15 seconds, and de-duplicate on `webhook-id`.