To enable webhooks, contact the Palomma team and provide the URL where you
want to receive events.
When we notify
We only send webhooks on final status. Each invoice and settlement triggers a single notification. You will not receive multiple webhooks as a resource moves through intermediate states.Response requirements
Your endpoint must return HTTP 200 within 5 seconds. If we don’t get a response in time, the delivery is considered failed and will be retried. We recommend acknowledging receipt immediately and processing the payload asynchronously.Request structure
Every webhook is aPOST request with a JSON body containing these top-level fields:
Unique identifier for this notification. The same
webhookId is reused across
retries so you can deduplicate.Event payloads
- Invoice
- Settlement
Sent when an invoice reaches its final status (
type: "invoice").Verifying signatures
Every webhook includes anX-Signature header so you can confirm the request came from Palomma. The signature is an HMAC-SHA256 of the raw request body, using the integrityKey we assigned to your account.
To verify:
- Read the raw request body as a string.
- Compute an HMAC-SHA256 of that string using your
integrityKey. - Compare the result to the
X-Signatureheader. If they match, the request is authentic.
Example (Node.js)
Retries
If a delivery fails, Palomma will retry up to 4 times. The wait between retries increases each time:
The exact timing varies slightly so that retries don’t all hit your server at the same instant.
Handling duplicates
On retries, thewebhookId stays the same but the timestamp is updated. Store the webhookId after you successfully process an event. If you receive the same webhookId again, skip it.
