Event reference
Every event Radok sends, with its exact payload.
Contents
The envelope
Every event has the same four top-level fields. Only data varies, and this page documents each shape exactly as it is sent.
{
"id": "evt_7c1f3a9d2b8e4506",
"type": "collection.success",
"createdAt": "2026-08-23T11:42:10.000Z",
"data": { }
}Treat unknown types as a no-op
Event catalogue
All events
| Field | Type | Description |
|---|---|---|
| collection.success | money in | A collection was paid and your balance credited. |
| collection.failed | money in | A naira collection expired or failed. |
| collection.underpaid | money in | A crypto checkout closed short. The amount received was credited. |
| collection.expired | money in | A crypto checkout window ended with nothing confirmed. |
| collection.late_payment | money in | Crypto arrived after the window. Credited, and the order is not reopened. |
| crypto.payment.confirming | money in | A USDT or USDC transfer was seen and is waiting for confirmations. |
| crypto.payment.confirmed | money in | A seen transfer reached the confirmation threshold. |
| crypto.unsolicited | money in | Crypto arrived after the collection had already settled. |
| yard.unallocated | yards | Money reached a yard that cannot follow its split. Held until someone allocates it. |
| purse.settlement.succeeded | yards | A purse's bank accepted its next-business-day transfer. |
| purse.settlement.failed | yards | A purse transfer failed. The money stays in flight and is retried automatically. |
| payout.success | money out | A payout reached the destination account. |
| payout.failed | money out | A payout failed and was reversed. |
| wallet.funding.success | money in | A deposit landed in your wallet funding account. |
| kyc.succeeded | identity | A BVN or NIN verification matched. |
| kyc.failed | identity | A BVN or NIN verification did not match. |
| webhook.test | diagnostic | Sent only by Send test event. Never emitted by real activity. |
Collection events
collection.success
Money arrived and settled. This is the event to fulfil an order on. Credit your customer against netAmount if you reconcile balances — amount is what they paid, but netAmount is what reached you.
{
"id": "evt_7c1f3a9d2b8e4506",
"type": "collection.success",
"createdAt": "2026-08-23T11:42:10.000Z",
"data": {
"reference": "col_3a7d5e1f9b2c4d68",
"amount": { "value": 500000, "currency": "NGN" },
"netAmount": { "value": 495500, "currency": "NGN" },
"paidAt": "2026-08-23T11:42:10.000Z"
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The collection reference. Match this against your order. |
| amount | money | What the customer paid. |
| netAmount | money | What was credited to your balance, after the platform fee. |
| paidAt | string | ISO 8601 settlement time. |
| paymentLinkId | string | Present only when the payment came from a payment link. Absent for a directly minted virtual account. |
| yardId | string | Present only for a split (yard) account. The yard the payment belongs to. |
| settlementDueAt | string | Split accounts only. ISO 8601 start of the Lagos business day the purse shares are due to settle. |
| split | array | Split accounts only. One line per purse — purseId, purseName, gross, fee, net, status — now in_flight. |
{
"id": "evt_2b9e4d1a7f3c8065",
"type": "collection.success",
"createdAt": "2026-08-23T14:05:31.000Z",
"data": {
"reference": "col_9c2f7b4e1a8d3502",
"amount": { "value": 25000000, "currency": "NGN" },
"netAmount": { "value": 24980000, "currency": "NGN" },
"paymentLinkId": "652f1a9c4d7b3e0812345678",
"paidAt": "2026-08-23T14:05:31.000Z"
}
}For a split (yard) account the same event also carries the priced total, what arrived, the shortfall, and how the fee layer was split. A handler that ignores the extra fields keeps working. netAmount is the purse total, paid in full, not a credit to your balance.fees.merchant.credited is what reached the main wallet. amount is the portion booked to this collection; anything above the priced total arrives separately as yard.unallocated. Here it means the resident has paid — not that the purse banks have the money. That is purse.settlement.succeeded.
{
"id": "evt_4a8d2f6c1e9b3075",
"type": "collection.success",
"createdAt": "2026-10-22T09:00:00.000Z",
"data": {
"reference": "col_8b3e1f7a2c9d4065",
"amount": { "value": 10050000, "currency": "NGN" },
"netAmount": { "value": 10000000, "currency": "NGN" },
"expectedAmount": { "value": 10120000, "currency": "NGN" },
"receivedAmount": { "value": 10050000, "currency": "NGN" },
"shortfall": { "value": 70000, "currency": "NGN" },
"paidAt": "2026-10-22T09:00:00.000Z",
"yardId": "yard_4c9e2a7b1f3d8056",
"settlementDueAt": "2026-10-22T23:00:00.000Z",
"fees": {
"platform": { "expected": { "value": 20000, "currency": "NGN" }, "taken": { "value": 20000, "currency": "NGN" } },
"settlement": { "expected": { "value": 8063, "currency": "NGN" }, "taken": { "value": 8063, "currency": "NGN" } },
"merchant": { "expected": { "value": 100000, "currency": "NGN" }, "credited": { "value": 21937, "currency": "NGN" } }
},
"split": [
{
"purseId": "purse_7a1d3e9c5b2f4068",
"purseName": "Security",
"gross": { "value": 4000000, "currency": "NGN" },
"fee": { "value": 0, "currency": "NGN" },
"settlementFee": { "value": 2500, "currency": "NGN" },
"settlementVat": { "value": 188, "currency": "NGN" },
"net": { "value": 4000000, "currency": "NGN" },
"status": "in_flight"
},
{
"purseId": "purse_2e8b6f1a9c4d7053",
"purseName": "Levy",
"gross": { "value": 6000000, "currency": "NGN" },
"fee": { "value": 0, "currency": "NGN" },
"settlementFee": { "value": 5000, "currency": "NGN" },
"settlementVat": { "value": 375, "currency": "NGN" },
"net": { "value": 6000000, "currency": "NGN" },
"status": "in_flight"
}
]
}
}collection.failed
The collection will not be paid. In practice this almost always means the window lapsed. Handle it, or unpaid orders sit pending indefinitely.
{
"id": "evt_5d8a2c6f0b9e1743",
"type": "collection.failed",
"createdAt": "2026-08-23T12:30:00.000Z",
"data": {
"reference": "col_3a7d5e1f9b2c4d68",
"reason": "expired"
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The collection reference. |
| reason | string | Why it failed. expired is the common case. Log unknown values rather than branching exhaustively. |
Yard events
Sent for yards. You can subscribe to each one like any other event; webhook endpoints that existed before yards launched were subscribed to all three automatically.
Purse settlement is not a payout
payout.success or payout.failed. Those are withdrawals from your main wallet; yard money never passes through it.yard.unallocated
Money reached a yard account that cannot follow its split: less than the dues, more than the priced total (only the extra is held, with no second fee), or after the account expired. A transfer that covers the dues but not the fees is not this event — the purses are funded and collection.success carries the shortfall. Held money waits until someone allocates it.
{
"id": "evt_9e2b7d4a1c6f8053",
"type": "yard.unallocated",
"createdAt": "2026-10-22T10:14:00.000Z",
"data": {
"yardId": "yard_4c9e2a7b1f3d8056",
"reference": "col_5f1c8a3e7b2d9064",
"amount": { "value": 7500000, "currency": "NGN" },
"paidAt": "2026-10-22T10:14:00.000Z"
}
}data
| Field | Type | Description |
|---|---|---|
| yardId | string | The yard holding the money. |
| reference | string | The collection reference the money arrived on. Pass it to allocate. |
| amount | money | The gross amount held — for an overpayment, only the excess. |
| paidAt | string | ISO 8601. When the money arrived. |
purse.settlement.succeeded
A purse’s bank accepted a transfer. One transfer carries every share due to that purse’s account that day, so mark each payment in lines settled.
{
"id": "evt_2c7f1a9e4b8d6031",
"type": "purse.settlement.succeeded",
"createdAt": "2026-10-22T23:16:05.000Z",
"data": {
"reference": "pst_6f2c9a4e1b7d3058",
"yardId": "yard_4c9e2a7b1f3d8056",
"purseId": "purse_7a1d3e9c5b2f4068",
"purseName": "Security",
"amount": { "value": 7978624, "currency": "NGN" },
"destination": {
"bankName": "Guaranty Trust Bank",
"accountNumber": "0123456789",
"accountName": "PALM GROVE SECURITY SERVICES"
},
"lines": [
{ "collectionReference": "col_8b3e1f7a2c9d4065", "net": { "value": 3989312, "currency": "NGN" } },
{ "collectionReference": "col_1d6a9f3c8e2b7045", "net": { "value": 3989312, "currency": "NGN" } }
],
"settledAt": "2026-10-22T23:16:05.000Z"
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The settlement, prefixed pst_. A retried transfer keeps its reference. |
| yardId | string | The yard. |
| purseId | string | The purse paid. |
| purseName | string | The purse's name. |
| amount | money | The transfer total: the sum of every lines[].net. |
| destination | object | The bank account the money was sent to — the one each line was funded with. |
| lines | array | Each payment this transfer covered: collection reference and that purse's net share of it. |
| settledAt | string | ISO 8601. When the bank accepted it. |
purse.settlement.failed
A transfer to a purse bank failed. Show the failure to whoever manages the purse. The money stays in flight and Radok retries on its own — after 15 minutes, 1 hour, and 4 hours, then at 09:00 on following business days. Nobody can retry or redirect it by hand. Do not issue the resident a new account: they have already paid.
{
"id": "evt_7b3e9c1f5a2d8046",
"type": "purse.settlement.failed",
"createdAt": "2026-10-22T23:16:05.000Z",
"data": {
"reference": "pst_6f2c9a4e1b7d3058",
"yardId": "yard_4c9e2a7b1f3d8056",
"purseId": "purse_7a1d3e9c5b2f4068",
"purseName": "Security",
"amount": { "value": 7978624, "currency": "NGN" },
"destination": {
"bankName": "Guaranty Trust Bank",
"accountNumber": "0123456789",
"accountName": "PALM GROVE SECURITY SERVICES"
},
"lines": [
{ "collectionReference": "col_8b3e1f7a2c9d4065", "net": { "value": 3989312, "currency": "NGN" } },
{ "collectionReference": "col_1d6a9f3c8e2b7045", "net": { "value": 3989312, "currency": "NGN" } }
],
"failureReason": "payment_gateway_error",
"nextAttemptAt": "2026-10-22T23:31:05.000Z"
}
}data
| Field | Type | Description |
|---|---|---|
| reference … lines | as above | Every field of purse.settlement.succeeded except settledAt, with the same meaning. |
| failureReason | string | A short code such as payment_gateway_error. Log unknown values rather than branching exhaustively. |
| nextAttemptAt | string | null | ISO 8601. When the next automatic retry runs. |
A later success for the same reference arrives as purse.settlement.succeeded, so key your state on the reference.
Payout events
payout.success
The money reached the destination account. Safe to tell the recipient it has landed.
{
"id": "evt_1f7b3e9c5a2d8064",
"type": "payout.success",
"createdAt": "2026-08-23T11:31:12.000Z",
"data": {
"reference": "pyt_4e8a1c6b3f0d2957",
"amount": { "value": 250000, "currency": "NGN" },
"fee": { "value": 1000, "currency": "NGN" },
"vat": { "value": 75, "currency": "NGN" }
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The payout reference. |
| amount | money | What the recipient received. The fee is not included. |
| fee | money | Radok's fee for the payout. |
| vat | money | VAT charged on the fee. Your balance was debited amount + fee + vat. |
payout.failed
The transfer did not complete. By the time this event is sent the reservation has already been reversed and the full debit — amount plus fee — credited back to your balance. Do not issue your own refund on top of it.
{
"id": "evt_6a0d4f2b8c1e5739",
"type": "payout.failed",
"createdAt": "2026-08-23T11:33:48.000Z",
"data": {
"reference": "pyt_4e8a1c6b3f0d2957",
"reason": "destination account is dormant",
"refunded": { "value": 251075, "currency": "NGN" }
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The payout reference. |
| reason | string | Free text from the bank or gateway. Show it to whoever will act on it. |
| refunded | money | What was credited back to your balance: amount, fee and VAT. |
Wallet events
wallet.funding.success
A deposit landed in your permanent wallet funding account — money you sent yourself to top up your payout balance, rather than a customer payment. Unlike a collection account, the funding account stays open and reusable.
{
"id": "evt_8e3c1a7d5b9f0246",
"type": "wallet.funding.success",
"createdAt": "2026-08-23T09:15:02.000Z",
"data": {
"virtualAccountReference": "va_2c8f1b7e4a3d9605",
"amount": { "value": 10000000, "currency": "NGN" },
"paidAt": "2026-08-23T09:15:02.000Z"
}
}data
| Field | Type | Description |
|---|---|---|
| virtualAccountReference | string | Your funding account's reference. |
| amount | money | Credited in full — funding deposits carry no platform fee. |
| paidAt | string | ISO 8601. |
Identity events
kyc.succeeded and kyc.failed
Emitted after a BVN or NIN verification resolves. Both carry the same shape; verified tells them apart within the payload as well as by type.
{
"id": "evt_3b7f9d1c6e2a4850",
"type": "kyc.succeeded",
"createdAt": "2026-08-23T10:02:19.000Z",
"data": {
"reference": "kyc_7d2a9f4c1b8e3506",
"type": "bvn",
"verified": true,
"name": "ADA LOVELACE"
}
}data
| Field | Type | Description |
|---|---|---|
| reference | string | The verification request reference. |
| type | string | bvn or nin. |
| verified | boolean | Whether the identity matched. |
| name | string | The name on record when the provider returned one. Prefer verified (and the event type) over assuming name is present or absent. |
webhook.test
Sent only when you press Send test event in the dashboard. It is delivered regardless of your subscriptions — it is a connectivity check, not something to opt into — and it is never produced by real activity, so it is safe to ignore in your handler.
{
"id": "evt_test_1755948123456",
"type": "webhook.test",
"createdAt": "2026-08-23T11:22:03.456Z",
"data": { "message": "This is a test event." }
}- Use it to confirm your URL is reachable, your TLS is valid, and your signature check passes.
- The dashboard shows the HTTP status you returned, so a
401from your own auth middleware is visible immediately.