Events and signing
Merrin can tell your systems when things happen. Add an endpoint in Settings › Integrations (or through POST /v1/webhooks), choose its events and keep the signing secret, which is shown once.
Events
| Event | When |
|---|---|
firm.stage_changed |
a firm in onboarding moves to another stage |
firm.activated |
a firm becomes active |
submission.rejected |
a submission you sent was rejected |
feed.late |
a firm's data has not arrived when it was due |
person.approved |
the FCA approves a person |
Delivery
Each delivery is a POST of JSON with these headers:
| Header | Value |
|---|---|
Merrin-Event |
The event, like firm.activated |
Merrin-Delivery |
The delivery's id |
Merrin-Signature |
t= timestamp and v1= signature |
{
"id": "6f1c3b0e-5a0e-4c39-9d9f-1d0e8f1b2a77",
"event": "firm.activated",
"created_at": "2026-11-18T11:42:00+00:00",
"data": {
"firm": {
"id": "9d4f2c1e-7b3a-4e8f-a6d2-5c1b0e9f3a71",
"name": "Brightwater Cars Ltd",
"reference": "BW-031",
"frn": "912345",
"status": "active",
"stage": null
}
}
}Merrin-Event: firm.activated
Merrin-Delivery: 6f1c3b0e-5a0e-4c39-9d9f-1d0e8f1b2a77
Merrin-Signature: t=1795089720,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdVerifying a delivery
- Take
tfromMerrin-Signatureand the raw request body. - Compute the HMAC SHA-256 of
{t}.{body}with your signing secret. - Compare it with
v1in constant time. - Reject a delivery whose
tis more than five minutes old.
import { createHmac, timingSafeEqual } from 'node:crypto'
const [t, v1] = header
.split(',')
.map((part) => part.split('=')[1])
const expected = createHmac('sha256', secret)
.update(`${t}.${rawBody}`)
.digest('hex')
const fresh = Date.now() / 1000 - Number(t) <= 300
const valid = fresh && timingSafeEqual(
Buffer.from(expected),
Buffer.from(v1),
)Retries
Answer with any 2xx status within ten seconds. Anything else is retried after 1, 5, 30, 120 and 720 minutes; after six attempts the delivery is marked failed, and your team can send it again from Merrin.