After payment
Webhooks
PayInvert POSTs JSON when a payment changes state so you do not have to poll.
Bank transfer, USSD, and 3DS can finish after the HTTP call. Register a public HTTPS URL under Settings → API Keys & Webhooks. Live webhooks need an https URL.
Wallet events are signed differently
Payment notifications use x-api-key. Funding and transfer events use HMAC-SHA512. See Wallet webhooks.
- Accept
POSTwithContent-Type: application/json. - The request includes an
x-api-keyheader. Check it before you trust the body. - Return HTTP 200 immediately, then process asynchronously.
- Key fulfilment on
reference. The same event can arrive twice.
This is a completed card payment, as posted to the webhook URL.
{
"reference": "NLM-MT1C291B422423B90",
"status": "Successful",
"amount": 18500,
"accountNumber": "6497493507",
"currency": "NGN",
"channel": "CARD",
"processor": "CARD",
"transactionDate": "2026-08-20T11:56:54.300Z"
}| Field | Notes |
|---|---|
reference | Order reference from Create order. |
status | Successful when the payment has landed. Fulfil only on this value, after you match amount and currency. |
amount | Major units, same scale as Create order. 18500 is 18500 NGN, not kobo. |
currency | e.g. NGN. |
channel | How it was paid. Card posts CARD. |
processor | Who captured it. Card posts CARD. |
accountNumber | Account or PAN fragment returned with the event. Not the card number you sent on Pay. |
transactionDate | ISO-8601 UTC timestamp. |
app.post("/webhooks/payinvert", async (req, res) => {
res.status(200).send("ok");
const { reference, status, amount, currency } = req.body;
const order = await db.orders.findByReference(reference);
if (!order) return;
if (status === "Successful" && Number(amount) === Number(order.amount) && currency === order.currency) {
await fulfil(order);
}
});