RADOK

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.

Envelope
{
  "id": "evt_7c1f3a9d2b8e4506",
  "type": "collection.success",
  "createdAt": "2026-08-23T11:42:10.000Z",
  "data": { }
}

Treat unknown types as a no-op

New events are added over time and are not a breaking change. A handler that throws on an unrecognised type turns a new feature into a flood of failed deliveries.

Event catalogue

All events

FieldTypeDescription
collection.successmoney inA collection was paid and your balance credited.
collection.failedmoney inA naira collection expired or failed.
collection.underpaidmoney inA crypto checkout closed short. The amount received was credited.
collection.expiredmoney inA crypto checkout window ended with nothing confirmed.
collection.late_paymentmoney inCrypto arrived after the window. Credited, and the order is not reopened.
crypto.payment.confirmingmoney inA USDT or USDC transfer was seen and is waiting for confirmations.
crypto.payment.confirmedmoney inA seen transfer reached the confirmation threshold.
crypto.unsolicitedmoney inCrypto arrived after the collection had already settled.
yard.unallocatedyardsMoney reached a yard that cannot follow its split. Held until someone allocates it.
purse.settlement.succeededyardsA purse's bank accepted its next-business-day transfer.
purse.settlement.failedyardsA purse transfer failed. The money stays in flight and is retried automatically.
payout.successmoney outA payout reached the destination account.
payout.failedmoney outA payout failed and was reversed.
wallet.funding.successmoney inA deposit landed in your wallet funding account.
kyc.succeededidentityA BVN or NIN verification matched.
kyc.failedidentityA BVN or NIN verification did not match.
webhook.testdiagnosticSent 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.

Payload
{
  "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

FieldTypeDescription
referencestringThe collection reference. Match this against your order.
amountmoneyWhat the customer paid.
netAmountmoneyWhat was credited to your balance, after the platform fee.
paidAtstringISO 8601 settlement time.
paymentLinkIdstringPresent only when the payment came from a payment link. Absent for a directly minted virtual account.
yardIdstringPresent only for a split (yard) account. The yard the payment belongs to.
settlementDueAtstringSplit accounts only. ISO 8601 start of the Lagos business day the purse shares are due to settle.
splitarraySplit accounts only. One line per purse — purseId, purseName, gross, fee, net, status — now in_flight.
From a payment link
{
  "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.

From a split account
{
  "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.

Payload
{
  "id": "evt_5d8a2c6f0b9e1743",
  "type": "collection.failed",
  "createdAt": "2026-08-23T12:30:00.000Z",
  "data": {
    "reference": "col_3a7d5e1f9b2c4d68",
    "reason": "expired"
  }
}

data

FieldTypeDescription
referencestringThe collection reference.
reasonstringWhy 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

A transfer to a purse bank is never sent as 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.

Payload
{
  "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

FieldTypeDescription
yardIdstringThe yard holding the money.
referencestringThe collection reference the money arrived on. Pass it to allocate.
amountmoneyThe gross amount held — for an overpayment, only the excess.
paidAtstringISO 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.

Payload
{
  "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

FieldTypeDescription
referencestringThe settlement, prefixed pst_. A retried transfer keeps its reference.
yardIdstringThe yard.
purseIdstringThe purse paid.
purseNamestringThe purse's name.
amountmoneyThe transfer total: the sum of every lines[].net.
destinationobjectThe bank account the money was sent to — the one each line was funded with.
linesarrayEach payment this transfer covered: collection reference and that purse's net share of it.
settledAtstringISO 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.

Payload
{
  "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

FieldTypeDescription
reference … linesas aboveEvery field of purse.settlement.succeeded except settledAt, with the same meaning.
failureReasonstringA short code such as payment_gateway_error. Log unknown values rather than branching exhaustively.
nextAttemptAtstring | nullISO 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.

Payload
{
  "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

FieldTypeDescription
referencestringThe payout reference.
amountmoneyWhat the recipient received. The fee is not included.
feemoneyRadok's fee for the payout.
vatmoneyVAT 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.

Payload
{
  "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

FieldTypeDescription
referencestringThe payout reference.
reasonstringFree text from the bank or gateway. Show it to whoever will act on it.
refundedmoneyWhat 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.

Payload
{
  "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

FieldTypeDescription
virtualAccountReferencestringYour funding account's reference.
amountmoneyCredited in full — funding deposits carry no platform fee.
paidAtstringISO 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.

Payload
{
  "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

FieldTypeDescription
referencestringThe verification request reference.
typestringbvn or nin.
verifiedbooleanWhether the identity matched.
namestringThe 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.

Payload
{
  "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 401 from your own auth middleware is visible immediately.