Events
Event reference
These are all the events RadiPay sends today. Every one arrives in the same envelope, described on the Webhooks page; only data differs. New event types and new fields are added over time, so ignore what you do not recognise.
| Event | Sent when |
|---|---|
payment.succeeded | A payment is confirmed by the bank or by Safaricom. |
payment.failed | An attempt to pay failed or was cancelled by the payer. |
payment.refunded | All or part of a payment was refunded. |
invoice.issued | An invoice was created. |
invoice.paid | Nothing more is owed on an invoice. |
ping | Someone pressed Send test in the app. |
Fields every payment event has
intentIduuid- The payment.
referencestring- The payment reference printed on the receipt.
subjectTypestring- What was being paid for:
payment_link,invoice,shop_orderorwallet_load. Other values may be added; ignore the ones you do not use. subjectIdstring- Which one. For
invoiceandshop_orderit is that record'sid. Forpayment_linkandwallet_loadit is the id, a colon, then twelve characters for this particular payment; take the part before the colon. amountMinorinteger- The amount that was asked for.
currencystring- Its currency.
providerstring- A short name for the payment system that carried it. For your records only: new values appear as systems are added, so do not build logic on it.
payment.succeeded
The money has been confirmed. This is the event to act on: release the goods, mark the order paid, top up the account.
Also in data
paidMinorinteger- What was actually paid. It can be more than
amountMinorif the payer sent extra. receiptstring | null- The bank or M-Pesa transaction code, when there is one.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "payment.succeeded",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T09:15:02.418Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"intentId": "0b3e7c52-91aa-4f0e-8a44-1c2d3e4f5a6b",
"reference": "RT-261203-4F9A1C2B",
"subjectType": "payment_link",
"subjectId": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11:9f1c2ab34d5e",
"amountMinor": 150000,
"currency": "KES",
"provider": "kcb",
"paidMinor": 150000,
"receipt": "TKL4QZ8X1P"
}
}payment.failed
One attempt to pay did not go through: the payer cancelled the prompt, entered a wrong PIN, or had too little money. It is sent once for each failed attempt. The same link or invoice can still be paid afterwards, so do not cancel the order on this event alone. It is not sent when a payment is simply never attempted, or when a link expires.
Also in data
reasonstring- Why, in the words of the payment system. Show it to a person; do not match on it.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "payment.failed",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T09:16:40.120Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"intentId": "0b3e7c52-91aa-4f0e-8a44-1c2d3e4f5a6b",
"reference": "RT-261203-4F9A1C2B",
"subjectType": "payment_link",
"subjectId": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11:9f1c2ab34d5e",
"amountMinor": 150000,
"currency": "KES",
"provider": "kcb",
"reason": "Request cancelled by user"
}
}payment.refunded
Also in data
refundedMinorinteger- The amount of this refund, not the running total.
fullboolean- true when the whole payment has now been refunded.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "payment.refunded",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T11:02:11.007Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"intentId": "0b3e7c52-91aa-4f0e-8a44-1c2d3e4f5a6b",
"reference": "RT-261203-4F9A1C2B",
"subjectType": "payment_link",
"subjectId": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11:9f1c2ab34d5e",
"amountMinor": 150000,
"currency": "KES",
"provider": "kcb",
"refundedMinor": 50000,
"full": false
}
}invoice.issued
Sent when an invoice is created, from the app or the API.
data
iduuid- The invoice.
numberstring- Its number, such as
INV-00042. customerName, customerEmail, customerPhonestring | null- Who it was issued to.
currency, totalMinorstring, integer- The invoice total, VAT included.
statusstringISSUED,PAIDorVOID, as it is when the event is sent.itemsarray- The lines:
description,quantity,unitMinorand, when set,taxType. paymentIntentIduuid | null- The payment that settled it, once paid.
paidAt, createdAtdatetime- When it was paid (or null) and when it was created.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "invoice.issued",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T09:00:01.120Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"id": "7d0c4f3a-9a51-4d0b-b0d5-2f3f6c1c8e21",
"number": "INV-00042",
"customerName": "Amina Wanjiru",
"customerEmail": "amina@example.com",
"customerPhone": "+254712345678",
"currency": "KES",
"totalMinor": 485000,
"status": "ISSUED",
"items": [
{
"description": "Consultation",
"quantity": 1,
"unitMinor": 150000,
"taxType": "B"
},
{
"description": "Lab tests",
"quantity": 2,
"unitMinor": 167500
}
],
"paymentIntentId": null,
"paidAt": null,
"createdAt": "2026-12-03T09:00:00.000Z"
}
}invoice.paid
Sent when nothing more is owed on an invoice. A part payment does not send it; each part payment sends its own payment.succeeded with subjectType invoice. The fields are the same as invoice.issued. paymentIntentId is null in the rare case that a credit note, not a payment, cleared the last of the balance.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "invoice.paid",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T09:15:02.480Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"id": "7d0c4f3a-9a51-4d0b-b0d5-2f3f6c1c8e21",
"number": "INV-00042",
"customerName": "Amina Wanjiru",
"customerEmail": "amina@example.com",
"customerPhone": "+254712345678",
"currency": "KES",
"totalMinor": 485000,
"status": "PAID",
"items": [
{
"description": "Consultation",
"quantity": 1,
"unitMinor": 150000,
"taxType": "B"
},
{
"description": "Lab tests",
"quantity": 2,
"unitMinor": 167500
}
],
"paymentIntentId": "0b3e9c55-1d2f-4c7a-9f0e-3a4b5c6d7e8f",
"paidAt": "2026-12-03T09:15:00.000Z",
"createdAt": "2026-12-03T09:00:00.000Z"
}
}ping
Sent only when someone presses Send test. Verify it and answer 2xx like any other event.
{
"id": "evt_5f0c2a9e-3b1d-4c6e-9a77-2d1f8e4b6c01",
"type": "ping",
"apiVersion": "2026-11-24",
"createdAt": "2026-12-03T08:00:00.000Z",
"tenantId": "0d6e1c1e-7a52-4a0b-9d3c-6f1f0f0f2a11",
"data": {
"message": "Hello from Rading"
}
}What has no event yet
There is no event today for a payment link expiring or being cancelled, an invoice being cancelled or credited, or money leaving your wallet. Read the record when you need to know.