Webhooks overview
When a payment hits CONFIRMED, HelaMesh sends a signed HTTP POST to the webhook URL on your client. Your backend should:
- Verify the signature
- Look up the invoice by ID in your own database
- Mark the order as paid
- Return
200 OKwithin 10 seconds
If you return any non-2xx status (or time out), HelaMesh retries with exponential backoff.
The big pictureโ
Chain confirms payment
โ
โผ
HelaMesh poller detects โ marks invoice CONFIRMED
โ
โผ
Webhook enqueued โ dispatcher claims โ POST to your URL
โ โ โ
โ โโโโโ retry โโโโโโโโโโโโค
โ (on non-2xx) โ
โผ โผ
Invoice stays CONFIRMED Your backend verifies
until 2xx received signature + updates DB
โ โ
โโโโโ 2xx received โโโ COMPLETED โโโโโโ
Key principle: CONFIRMED โ COMPLETED is gated on successful webhook delivery. An invoice stays CONFIRMED until your backend ack's the webhook. This ensures your backend and HelaMesh agree on the payment status.
Read next: Webhook payload, Verifying signatures, Retries.