Factuarea webhooks
Invoicing webhooks. Your business responds to change
A paid invoice, an approved quote or a received payment can start your next process. Connect your ERP, CRM or application with signed Factuarea events.
- HMAC-SHA256 signatures
- Automatic retries
- Query and replay through the API
Compatible integrations and formats

WhatsApp

Something happens in your account, like an invoice being paid, and an event with its own identifier is born.
{ "id": "0199a4c1-7f3e-7c2a-9d16-2b8f0e5a4d31", "object": "event", "type": "invoice.paid", "api_version": "2026-05-22", "livemode": true, "data": { "invoice": { "id": "inv_01hq…" } }}Event-driven automation
From a change in Factuarea to a workflow in your business
Subscribe an HTTPS URL to the events you need. Factuarea sends a signed POST with the event and its data; your application uses it to run the next step.
Delivery under control
When your server fails, you can follow the trail
Inspect the HTTP response, attempt and next retry. After resolving the issue, you can replay a delivery through the API.
- 8×
Up to eight attempts per delivery
Network failures, 5xx, 408, 425 and 429 responses retry with backoff. Other 4xx responses stop that delivery so you can fix the receiver.
- ID
One event, even if it arrives more than once
The event ID stays stable. Store it to deduplicate; a manual replay creates another delivery for that same event.
- 30 d
Recover context through the API
The event log lets you query the last 30 days. If an endpoint is degraded, a ping with a 2xx response lets you recover it.
invoice.paid- First attempt · Retry scheduled in ~1 min
503 - Retry · Next in ~5 min
503 - Retry · Delivery completed
200 OK
1 min5 min30 min2 h12 h1 d3 d
A receiver that verifies before acting
Verified signatures. Secrets you can rotate
Use the raw body, the Factuarea-Signature header and the endpoint secret. The SDKs check HMAC-SHA256 and a default timestamp tolerance of five minutes.
import { verifyWebhook } from "@factuarea/sdk";// Request / Web APIconst rawBody = await request.text();const signature = request.headers.get("Factuarea-Signature") ?? "";const event = verifyWebhook( rawBody, signature, process.env.FACTUAREA_WEBHOOK_SECRET!,);console.log(event.id, event.type);HMAC-SHA256 verification in four steps
- 01
Sign over the raw body
The HMAC is computed over the bytes that arrived, not over the JSON your framework already parsed and serialised again.
- 02
Compare in constant time
timingSafeEqual, hash_equals or whatever your language brings to compare without leaking where it fails.
- 03
Look at the clock
The header carries t with the UNIX moment of the delivery. Reject it if more than 300 seconds have gone by.
- 04
Accept either v1
For the 24 hours after a rotation the header carries two signatures. It is enough for one of them to match.
Before going live
Common webhook questions
Still have a question?
A person on the team answers, on any plan. Write to us the way you would to a colleague.
Monday to Friday, 9:00 to 18:00
Verify the Factuarea-Signature header with HMAC-SHA256, the unmodified body and a five-minute tolerance. The official SDKs include the verifier to avoid serialisation differences.
A more connected business
Make every change reach your system
Prepare your receiver, choose events and verify the connection with a ping. The documentation covers everything from signatures to recovering deliveries.
No card requiredA real person helps you