Webhooks
Get signed events for transfers, wallet activity and new wallets, with automatic retries
Instead of polling, let us tell you when something happens. We send an
HTTPS POST with a JSON body to your webhook URL for each event, signed so
you can prove it came from us.
Set up
Register your URLs in the dashboard under Settings → Webhooks. There are two, one per environment:
- A live URL receives events caused by
sk_live_…keys. - A sandbox URL receives events caused by
sk_sandbox_…keys.
Live and sandbox events never go to each other's URL.
The first time you save a URL for an environment, a signing secret is generated and shown once — copy it then. If you lose it, rotate it from the same page; the old secret stops working immediately.
There is no API for registering a webhook URL yet — it is set in the dashboard. Once a URL is saved it can be changed but not cleared.
What we send
Every delivery is a POST with Content-Type: application/json and these
headers:
| Header | Meaning |
|---|---|
X-Uverus-Signature | Hex HMAC-SHA256 signature of the request. |
X-Uverus-Timestamp | Unix time in seconds when this attempt was signed. |
X-Uverus-Event | The event name, e.g. transfer.successful. |
X-Uverus-Delivery-Id | Stable id of this event. Identical on every retry. |
Reply with any 2xx status within 10 seconds to acknowledge. Anything else
— another status code, a timeout, a connection error — counts as a failure
and is retried.
Verify the signature
The signature is an HMAC-SHA256, keyed with your signing secret, of the timestamp and the raw request body joined by a dot:
HMAC_SHA256(secret, "<X-Uverus-Timestamp>.<raw body>")Verify against the raw bytes, before parsing the JSON — re-serialising the body can change it.
import crypto from "node:crypto";
function isValid(rawBody, headers, secret) {
const timestamp = headers["x-uverus-timestamp"];
const expected = crypto
.createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const given = Buffer.from(headers["x-uverus-signature"] ?? "");
const wanted = Buffer.from(expected);
const sameSignature =
given.length === wanted.length && crypto.timingSafeEqual(given, wanted);
// Reject old timestamps so a captured request can't be replayed later.
const fresh = Math.abs(Date.now() / 1000 - Number(timestamp)) < 300;
return sameSignature && fresh;
}The timestamp is refreshed on every attempt, so a retry hours later still passes the freshness check.
Retries and the delivery log
Delivery is at-least-once. If your endpoint fails, we retry with doubling delays:
| Attempt | Sent |
|---|---|
| 1 | Immediately |
| 2 | 30 seconds after attempt 1 fails |
| 3 | 1 minute later |
| 4 | 2 minutes later |
| 5 | 4 minutes later |
| 6 | 8 minutes later |
| 7 | 16 minutes later |
| 8 | 32 minutes later |
That survives roughly an hour of downtime. If the eighth attempt also
fails, the delivery is marked FAILED and we stop — it stays in the log so
you can replay it.
Because a retry or a replay sends the same event again, de-duplicate on
X-Uverus-Delivery-Id rather than assuming each event arrives once.
List and inspect deliveries
curl "https://api.uverusbanking.com/api/v1/webhook-deliveries?status=FAILED" \
-H "x-api-key: sk_sandbox_..."{
"status": "success",
"message": "Webhook deliveries retrieved",
"data": [
{
"id": "5b7c6f0e-8d41-4a8e-9a53-0d6f2b1c9e77",
"event": "transfer.failed",
"status": "FAILED",
"attempts": 8,
"url": "https://example.com/webhooks/sandbox",
"last_status_code": 503,
"last_error": "HTTP 503",
"last_response": "Service Unavailable",
"last_attempt_at": "2026-10-25T10:42:11.000Z",
"payload": { "event": "transfer.failed", "environment": "SANDBOX" }
}
],
"meta": { "pagination": { "total": 1, "page": 1, "per_page": 20, "total_pages": 1 } }
}status is PENDING (still being retried), DELIVERED or FAILED. You
can filter the list by status and event, and page with page and
limit (up to 100). The list shows only your key's environment.
Replay a delivery
curl -X POST https://api.uverusbanking.com/api/v1/webhook-deliveries/5b7c6f0e-8d41-4a8e-9a53-0d6f2b1c9e77/replay \
-H "x-api-key: sk_sandbox_..."This re-sends the original payload to your current URL with a fresh
retry schedule — useful after you fix an outage, or to recover an event you
lost. It works on FAILED and DELIVERED deliveries; one that is still
PENDING is already being retried and is left alone.
Events
Every body includes event and environment (LIVE or SANDBOX).
| Event | When |
|---|---|
transfer.pending | A transfer was accepted but has not settled yet. |
transfer.successful | A transfer settled. |
transfer.failed | A transfer failed and the customer was refunded. |
customer.wallet_created | A customer's wallet is ready. |
wallet.credit | Money was credited to a customer's wallet. |
wallet.debit | Money was debited from a customer's wallet. |
wallet.transfer | Money moved between two customer wallets. |
Transfer events
Each transfer produces transfer.pending (only if it did not settle
immediately) and then exactly one of transfer.successful or
transfer.failed.
{
"event": "transfer.failed",
"transaction_id": "e2b1f6a4-9c3d-4f1e-8a77-5d0c4b2a1f90",
"reference": "TRX-1759312800000-ab12cd34e",
"customer_id": "c6b6b7b0-1a2b-4c3d-9e4f-5a6b7c8d9e0f",
"amount": 5000,
"currency": "NGN",
"bank_code": "058",
"bank_name": "Guaranty Trust Bank",
"account_number": "0123456789",
"account_name": "Jane Doe",
"narration": "Invoice #4521",
"status": "failed",
"failure_reason": "Account not found",
"environment": "LIVE"
}reference matches the reference returned when you created the transfer.
failure_reason appears only on transfer.failed.
customer.wallet_created
Fires once, when the wallet actually exists — either right after
POST /customers, or after a retry.
{
"event": "customer.wallet_created",
"customer_id": "c6b6b7b0-1a2b-4c3d-9e4f-5a6b7c8d9e0f",
"wallet": {
"id": "9f8e7d6c-5b4a-3928-1716-0f0e0d0c0b0a",
"account_number": "9012345678",
"account_name": "Lex Luthor",
"bank_name": "Budpay MFB",
"currency": "NGN"
},
"environment": "LIVE"
}Wallet events
wallet.credit and wallet.debit carry the balance change:
{
"event": "wallet.credit",
"transaction_id": "e2b1f6a4-9c3d-4f1e-8a77-5d0c4b2a1f90",
"reference": "SIM-1759312800000-ab12cd34",
"customer_id": "c6b6b7b0-1a2b-4c3d-9e4f-5a6b7c8d9e0f",
"amount": 50000,
"currency": "NGN",
"type": "credit",
"balance_before": "0",
"balance_after": "50000",
"description": "Simulated sandbox deposit",
"environment": "SANDBOX"
}wallet.transfer has the same shape and is sent once for each side of a
move between two wallets, with type set to debit or credit.
Endpoints
| Method | Path | Permission needed |
|---|---|---|
GET | /webhook-deliveries | manage webhook |
GET | /webhook-deliveries/:id | manage webhook |
POST | /webhook-deliveries/:id/replay | manage webhook |
Full request/response schemas: API Reference.