Webhooks and events

The events Abazi emits, how webhook deliveries are signed and retried, and how to verify, replay and debug them.

View as .mdUpdated
Every state change in Abazi is an event. Organizations and merchants receive the events they subscribe to as signed webhooks, retried on a fixed schedule and replayable on demand.

Events you can subscribe to

Each event has its own page with when it fires and an example payload.

Event typeData fields
mandate.activatedmandate_id, version, hash
payment.confirmedintent_id, receipt_id, settlement_ref, amount, asset, network, rail, merchant_id, payee
delivery.deliveredintent_id, http_status, receipt_id
delivery.failedintent_id, http_status, receipt_id
payment.deniedintent_id, reason_code
approval.requestedapproval_id, intent_id, approval_url, expires_at
mandate.revokedmandate_id, agent_ids, revocation_receipt_id
merchant.tier_changedmerchant_id, from, to, cause
card.authorization.decided—
plan.activated—
installment.paidplan_id, plan_payment_id, seq, amount, receipt_id
installment.failedplan_id, plan_payment_id, seq, amount, error
plan.cancelledplan_id, cancelled_by, pulls_done, released_base_units
plan.completed—
dispute.openeddispute_id, receipt_id, reason
refund.settledrefund_id, amount, refund_receipt_id
payout.settled—
test.event—

Envelope: id, type, created_at, api_version, org_id | merchant_id, data. Signing: Standard Webhooks: webhook-id, webhook-timestamp, webhook-signature (v1,<base64 HMAC-SHA256 of id.timestamp.body>).

Signing

Deliveries follow the Standard Webhooks scheme. Each request carries three headers:

HeaderContent
webhook-idThe event id; the same on every retry of that event, so you can de-duplicate.
webhook-timestampUnix seconds when the attempt was sent. Reject old timestamps to stop replays by a third party.
webhook-signaturev1,<base64 HMAC-SHA256> over id.timestamp.body, keyed with your endpoint's signing secret.

The signing secret starts with whsec_ and is shown once when you create the endpoint. You can rotate it at any time.

Verify every delivery before you act on it. In Python:

Verify a delivery
import base64, hashlib, hmac

def verify(secret: str, msg_id: str, timestamp: str, body: bytes, header: str) -> bool:
    key = base64.b64decode(secret.removeprefix("whsec_"))
    signed = f"{msg_id}.{timestamp}.".encode() + body
    expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()
    return any(hmac.compare_digest(expected, part.split(",", 1)[1])
               for part in header.split() if part.startswith("v1,"))

Retries

A delivery that does not get a 2xx answer is retried up to seven more times: after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours. After the last attempt it is marked dead. Each attempt, with its response code, is kept and visible in the Console.

FromCan move to
pendingdelivered, retrying
retryingdelivered, dead, retrying

Replay and test

  • Replay any event to one endpoint or to all, for example after fixing a handler.
  • Send a test event to a new endpoint to check your signature verification before real events arrive.
  • Request logs keep API and MCP calls for seven days, redacted.
Events list
Events and replay.Captured 2026-11-16

Next steps

On this page