Documentation

Documentation/API reference/Webhooks/

POST decisionStatusChanged

A payment decision changed status

Sent to the institution's webhook URL (set on the API and webhooks screen) on every status change of a payment decision after it was received: decision.screening, decision.released, decision.hold, decision.ai_investigation, decision.human_review, decision.blocked, decision.escalated, decision.expired, decision.failed; and decision.freeze_lifted when a rejected payment's freeze is lifted (below). A card's status change has a webhook of its own (cardStatusChanged).

A freeze lifted. A payment rejected with rejection_action FREEZE stays rejected. When every sanctions alert of the payment is later cleared as a false positive, its rejection_action becomes REJECT and decision.freeze_lifted is sent once, with status BLOCKED and rejection_action REJECT: the funds may now be handled as for any rejected payment (money that came in goes back under your own procedure). It is sent only for a payment that was rejected with FREEZE, never twice, and never while another of its sanctions alerts is confirmed or still awaiting a decision. The decision's freeze_lifted_at says when.

Verify every delivery. X-Underlayer-Signature is sha256= and the hexadecimal HMAC-SHA256, keyed with the webhook secret, of <X-Underlayer-Timestamp>.<raw body> (the timestamp in Unix seconds, a dot, the body exactly as received). Refuse a delivery whose signature does not match or whose timestamp is too old. Nothing is sent unsigned: without a secret the delivery is skipped.

Delivery. The webhook URL's host name must resolve to public internet addresses only: a delivery is not sent to a name that resolves to a private, loopback, link-local or other reserved address, and the connection goes to the address that was checked. A redirect is not followed. Answer any 2xx within 10 seconds. Otherwise (a 3xx included) the delivery is retried after 1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, 12 hours and 24 hours, and marked failed after 8 attempts. A delivery can arrive more than once and out of order: de-duplicate by X-Underlayer-Idempotency-Key and order by occurred_at; when in doubt, read the decision.

Parameters

NameInDescription
X-Underlayer-Event requiredheader

decision.<status in lower case>, or decision.freeze_lifted

X-Underlayer-Delivery requiredheader

The delivery's id (the same on every attempt).

X-Underlayer-Idempotency-Key requiredheader

<decision_ref>:<sequence of the status change>, the same on every attempt.

X-Underlayer-Timestamp requiredheader

Unix seconds when this attempt was signed.

X-Underlayer-Signature requiredheader

sha256=<hex HMAC-SHA256(secret, timestamp + '.' + raw body)>

Request body

DecisionWebhookEvent

Responses

StatusBodyDescription
2XX

Received. Any other answer, or none within 10 seconds, is retried.

© 2026 Underlayer, Lithuania. info@underlayer.eu System status Privacy notice