Appearance
Webhook event catalogue
Every event MOOKHPay sends, who receives it, and every field in its body. Each body is a flat JSON object with an id field naming this event and an event field naming its type. There is no envelope.
id is evt_ and a hex string. It is the same on every retry, on every resend from the hub, and on every endpoint of your account that receives the event, and it is also sent as the X-Mookh-Event-Id header. Deduplicate on it; see duplicates. It is not an id you can look anything up by.
| Event | Sent when | Offered |
|---|---|---|
payment.succeeded | A checkout or charge payment was booked | Always |
payment.failed | A payment attempt failed, or a card charge expired with nothing in flight | Always |
payout.paid | Money sent out of a wallet reached the recipient | Always |
payout.failed | A payout failed and the money went back to the wallet | Always |
refund.succeeded | MOOKHPay refunded a payment to the payer | Always |
refund.declined | MOOKHPay declined a refund request | Always |
refund.failed | An attempt to send a refund's money failed, and the refund went back to MOOKHPay for review | Always |
charge.expired | A direct charge reached its expires_at while pending | Where direct charges are on |
charge.cancelled | You cancelled a pending direct charge | Where direct charges are on |
account.created | Your platform created a seller account | Where the platform API is on |
account.linked | The owner of an existing account approved your account link | Where the platform API is on |
account.claimed | A seller set a PIN on an account you created | Where the platform API is on |
account.disconnected | Your access to an account ended | Where the platform API is on |
account.updated | Not sent today | Where the platform API is on |
Amounts are minor units: 150000 is KES 1,500.00. Watch the types: amount is a string on every event, while platform_fee and net are integers.
Who receives what
An event goes to the active endpoints of the account it is about that chose that event.
| Event | Receivers |
|---|---|
payment.* | The payee, which is the account that owns the key, or the seller on a platform payment. On a platform payment the platform receives its own copy as well |
charge.* | Only whoever made the charge: the merchant, or the platform that made it for a seller. The seller does not receive it |
payout.* | The account the money left. On a platform payout the platform receives its own copy as well, in a different shape |
refund.* | The payee of the refunded payment. Never the platform |
account.* | The platform |
No event is sent for:
- a payment request from one MOOKHPay account to another (the checkout the ledger opens for it);
- a card top-up a person makes from the app;
- a wallet top-up or any collection that has no checkout behind it;
- a refund paid back to a payer, as a payout (the refund sends
refund.succeededinstead); - a pay-in from your main balance into a user's pocket. There is no
transfer.*event.
Confirm a pay-in without a webhook
A pay-in (POST /accounts/{id}/transfers) is settled on the call, so the call's answer is your confirmation:
- A
201(or a200replay) withstatus: "succeeded"means the money is in the pocket. - An error means it did not move.
3060,3062and the other refusals say why. See Errors. - A timeout, a
5xxor a pay-in you findprocessinghas not settled yet. Send the same request again with the sameIdempotency-Keyand body and a fresh signature: the retry settles it once. Read it any time withGET /accounts/{id}/transfers/{transfer_id}.
The person is told of each pay-in by MOOKHPay (SMS, email and a push notification naming your platform and the pocket), not by a webhook to you.
payment.succeeded
Sent once the payment is booked in the payee's wallet. For a direct charge, this is the moment the charge moves to succeeded; a charge that expired or was cancelled can still send it if a prompt already on the payer's phone is approved (up to 7 days later).
json
{
"id": "evt_4d0c607d206856aff4ae506c",
"event": "payment.succeeded",
"checkout_id": "cs_ke_3f9a1c7e5b2d4a8e6c0b91d7",
"intent_id": "pi_8c1e4f0a7b3d92e5a6f01c48",
"amount": "150000",
"currency": "KES",
"reference": "order-1042",
"rail": "mpesa",
"method": "mpesa",
"provider_receipt": "TKJ8X2M4PQ",
"ledger_reference": "SMK4H2PL9Q",
"test": false,
"created_at": "2026-11-20T09:14:02.000Z"
}| Field | Type | Meaning |
|---|---|---|
id | string | This event, evt_…. On every event; see above |
event | string | payment.succeeded or payment.failed |
checkout_id | string | The checkout, cs_<country>_…. A direct charge has one too |
intent_id | string | The payment attempt this is about, pi_…. A checkout can fail on one attempt and be paid on the next |
amount | string | The checkout's amount in minor units. A card fee the payer paid on top is not in it |
currency | string | KES or UGX |
reference | string or null | Your reference from the create call |
rail | string | What the payment rode on: mpesa, momo, card-uc (card) or mookhpay (paid from a MOOKHPay balance) |
method | string or null | How the payer paid, in plain words: mpesa, momo, airtel, card or mookhpay (their MOOKHPay balance). The same as payment.method on GET /checkouts/{id}. Prefer it to rail, whose card value names the processor |
provider_receipt | string or null | The rail's own reference: the M-Pesa receipt, the CyberSource transaction id, or the ledger reference for a balance payment. null when the rail gave none |
ledger_reference | string or null | MOOKHPay's receipt reference, SM…. null until booked, so usually null on payment.failed |
test | boolean | true for a test payment, which moved no money. See Testing |
created_at | string | When MOOKHPay prepared this payload (ISO 8601, UTC). Not the payment time |
A direct charge's payment
A payment for a direct charge adds three fields, before event:
json
{
"id": "evt_dfb67cb2e37d0ea342032073",
"charge": "ch_ke_7e1a4c9b2d5f80e3a6c1b047",
"metadata": { "till": "4" },
"failure": null,
"event": "payment.succeeded",
"checkout_id": "cs_ke_0b4d2f7a9c1e53b8d6a2e410",
"intent_id": "pi_5a2c8e1f4b7d90a3c6e2f185",
"amount": "150000",
"currency": "KES",
"reference": "order-8841",
"rail": "mpesa",
"method": "mpesa",
"provider_receipt": "TKM3R7N2QA",
"ledger_reference": "SMR8T2LK4W",
"test": false,
"created_at": "2026-11-20T09:15:40.000Z"
}| Field | Type | Meaning |
|---|---|---|
charge | string | The charge id, ch_<country>_… |
metadata | object | Your metadata, as you sent it ({} if none) |
failure | object or null | { code, message } on payment.failed, null on payment.succeeded. Codes: payer_cancelled, insufficient_funds, wrong_pin, prompt_timed_out, phone_unreachable, limit_exceeded, rail_unavailable, declined. See Direct charges |
A platform payment
A payment taken with on_behalf_of carries the platform's fee. The seller's copy adds platform_fee and net before event. The platform's copy has the same fields and adds account at the end:
json
{
"id": "evt_0626128fa104f96cd2cf11c7",
"platform_fee": 15000,
"net": 135000,
"event": "payment.succeeded",
"checkout_id": "cs_ke_9d3b6a1f0c4e72d8b5a1c364",
"intent_id": "pi_1f7c3a9e5b2d84f0a6c1e273",
"amount": "150000",
"currency": "KES",
"reference": "order-8841",
"rail": "mpesa",
"method": "mpesa",
"provider_receipt": "TKP4S8M1ZB",
"ledger_reference": "SMW2K7QJ3N",
"test": false,
"created_at": "2026-11-20T09:16:05.000Z",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294"
}On a direct charge made for a seller, charge, metadata and failure come before event, then platform_fee and net.
| Field | Type | Meaning |
|---|---|---|
platform_fee | integer | The platform's fee, in minor units |
net | integer | What the seller received: amount less platform_fee |
account | string | The seller's account id, acct_<country>_…. On the platform's copy only |
payment.failed
Sent when a payment attempt fails: the payer cancelled or ignored the prompt, had too little money, entered a wrong PIN, or the rail refused it. For a card charge, a declined card leaves the charge pending so the payer can try another card; payment.failed is sent only when the charge expires with nothing in flight, carrying the last decline as failure.
The body has the same fields as payment.succeeded, with event set to payment.failed. On a direct charge, failure says why.
json
{
"id": "evt_cac222aa4c039c2adae31976",
"charge": "ch_ke_7e1a4c9b2d5f80e3a6c1b047",
"metadata": { "till": "4" },
"failure": {
"code": "insufficient_funds",
"message": "The payer did not have enough money for this payment"
},
"event": "payment.failed",
"checkout_id": "cs_ke_0b4d2f7a9c1e53b8d6a2e410",
"intent_id": "pi_5a2c8e1f4b7d90a3c6e2f185",
"amount": "150000",
"currency": "KES",
"reference": "order-8841",
"rail": "mpesa",
"method": "mpesa",
"provider_receipt": null,
"ledger_reference": null,
"test": false,
"created_at": "2026-11-20T09:15:12.000Z"
}Each endpoint receives at most one payment.failed per checkout. A second failed attempt on the same hosted checkout sends nothing. See duplicates.
payout.paid
Sent when money sent out of a wallet reaches the recipient's phone. This covers every payout from the account: a withdrawal made in the app, a row of a Bulk Payments batch, a scheduled payout, and a platform payout from a seller's wallet (which goes to the seller's endpoints in this shape). A refund paid back to a payer does not send it.
json
{
"id": "evt_28b04201c3632445eeb5a8a6",
"event": "payout.paid",
"payout_id": "pi_2d7a9c4e1b8f30a6d5c2e917",
"batch_id": null,
"amount": "500000",
"currency": "KES",
"remarks": "Week 47",
"rail": "mpesa",
"provider_receipt": "TKL2P8Q4RX",
"ledger_reference": "SMQ7W3NB2K",
"created_at": "2026-11-20T10:02:11.000Z"
}| Field | Type | Meaning |
|---|---|---|
event | string | payout.paid or payout.failed |
payout_id | string | The payment attempt that sent the money, pi_… |
batch_id | string or null | The Bulk Payments batch this row belongs to, or null |
amount | string | The amount sent, in minor units |
currency | string | KES or UGX |
remarks | string or null | The remark given with the payout |
rail | string | mpesa or momo |
provider_receipt | string or null | The rail's receipt. null when the rail gave none |
ledger_reference | string or null | MOOKHPay's reference for the booking, SM… |
created_at | string | When MOOKHPay prepared this payload |
The plain shape has no test field and no failure reason.
A platform's copy
A payout made with POST /accounts/{id}/payouts also goes to the platform's endpoints. payout_id is the platform payout's own id, and three fields are added at the end:
json
{
"id": "evt_7004b91e0457e078ca9993b1",
"event": "payout.paid",
"payout_id": "po_ke_6b1f0e9a2c7d48e3a5b2c810",
"batch_id": null,
"amount": "500000",
"currency": "KES",
"remarks": "Week 47",
"rail": "mpesa",
"provider_receipt": "TKL2P8Q4RX",
"ledger_reference": "SMQ7W3NB2K",
"created_at": "2026-11-20T10:02:11.000Z",
"intent_id": "pi_2d7a9c4e1b8f30a6d5c2e917",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"failure": null
}| Field | Type | Meaning |
|---|---|---|
payout_id | string | The platform payout's id, po_<country>_…, as the create call returned it |
intent_id | string | The payment attempt behind it, pi_…. The seller's copy calls this payout_id |
account | string | The seller's account id |
failure | object or null | { code, message } on payout.failed, null on payout.paid |
batch_id is always null on a platform payout. A payout held for a MOOKHPay check, or waiting for a company's signatures, sends nothing until the money has moved and the payout has ended.
payout.failed
Sent when a payout fails. The money is back in the wallet it left. The body is the same as payout.paid with event set to payout.failed. Only the platform's copy says why:
json
{
"id": "evt_218ad7eeddb4481c99e690c0",
"event": "payout.failed",
"payout_id": "po_ke_6b1f0e9a2c7d48e3a5b2c810",
"batch_id": null,
"amount": "500000",
"currency": "KES",
"remarks": "Week 47",
"rail": "mpesa",
"provider_receipt": null,
"ledger_reference": "SMQ7W3NB2K",
"created_at": "2026-11-20T10:02:11.000Z",
"intent_id": "pi_2d7a9c4e1b8f30a6d5c2e917",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"failure": {
"code": "recipient_unreachable",
"message": "The number cannot receive this payout. The money is back in the wallet"
}
}failure.code | Meaning | failure.message |
|---|---|---|
rail_unavailable | The payment network could not send it, including a payout that never reached the network | The payment network could not send the payout. The money is back in the wallet |
recipient_unreachable | The number cannot receive it: not registered, not allowed to receive, or unknown to the network | The number cannot receive this payout. The money is back in the wallet |
limit_exceeded | Over a limit on the network | The payout is over a limit on the network. The money is back in the wallet |
declined | The network declined it, or gave a reason MOOKHPay does not map | The payout was declined. The money is back in the wallet |
Branch on code. message is a sentence for people and can change.
refund.succeeded
Sent when MOOKHPay has refunded a payment to the payer. A refund starts from a refund request: made with POST /refunds or in the hub, and reviewed by MOOKHPay before any money moves. MOOKHPay staff can also refund a card payment directly. A payment taken through a platform cannot be refunded through MOOKHPay. See Refunds.
json
{
"id": "evt_2c9e5a1f7b3d40e8c6a2b1d9",
"event": "refund.succeeded",
"refund_id": "rf_5b1e8c2d7a4f90b3e6a1c2d8",
"checkout_id": "cs_ke_3f9a1c7e5b2d4a8e6c0b91d7",
"charge_id": null,
"intent_id": "pi_8c1e4f0a7b3d92e5a6f01c48",
"amount": "150000",
"currency": "KES",
"reference": "order-1042",
"rail": "mpesa",
"provider_receipt": "UAB3K9L2MP",
"status": "refunded",
"created_at": "2026-11-21T08:00:00.000Z"
}Every refund event has these fields:
| Field | Type | Meaning |
|---|---|---|
id | string | This event, evt_… |
event | string | refund.succeeded, refund.declined or refund.failed |
refund_id | string or null | The refund, rf_…, as GET /refunds/:id reads it. null only for a card refund made by MOOKHPay staff directly, which has no refund request |
checkout_id | string | The checkout that was paid |
charge_id | string or null | The direct charge that was paid, ch_<country>_…, or null for a hosted checkout |
intent_id | string | The payment attempt being refunded, pi_… |
amount | string | The amount of the refund, in minor units. Can be less than the payment's amount |
currency | string | The payment's currency |
reference | string or null | Your reference from the checkout or charge |
rail | string | The rail of the original payment |
provider_receipt | string or null | The rail's reference for the money sent back. null until it is sent, so null on refund.declined and refund.failed |
status | string | The refund's status when the payload was built: refunded on refund.succeeded, declined on refund.declined, and requested on refund.failed, because the refund is back with MOOKHPay for review |
decline_reason | string or null | Why MOOKHPay declined it, on refund.declined. null on the other two |
attempt | integer or null | Which attempt to send the money this was, on refund.failed. null when it does not apply |
method | string or null | How the money was being sent back, balance, card, mobile or manual, once chosen. null before |
created_at | string | When MOOKHPay prepared this payload |
refund.declined
Sent when MOOKHPay declines a refund request. No money moved. A new refund of the same payment can be asked for once this one is declined.
json
{
"id": "evt_6a3d8f1c2e9b47a0d5c1e8b3",
"event": "refund.declined",
"refund_id": "rf_5b1e8c2d7a4f90b3e6a1c2d8",
"checkout_id": "cs_ke_3f9a1c7e5b2d4a8e6c0b91d7",
"charge_id": null,
"intent_id": "pi_8c1e4f0a7b3d92e5a6f01c48",
"amount": "150000",
"currency": "KES",
"reference": "order-1042",
"rail": "mpesa",
"provider_receipt": null,
"status": "declined",
"decline_reason": "The payer has already been refunded by the shop directly.",
"created_at": "2026-11-21T08:00:00.000Z"
}| Field | Type | Meaning |
|---|---|---|
decline_reason | string | Why MOOKHPay declined it, in words written by MOOKHPay staff. Show it to people; do not branch on it |
refund.failed
Sent when MOOKHPay tried to send a refund's money and the attempt failed: the payer's MOOKHPay balance, card or phone could not take it, or a payout to the payer's phone failed or expired. Nothing was refunded, and the refund went back to MOOKHPay for review. It stays open: MOOKHPay can try again, send it another way, or decline it, so refund.succeeded or refund.declined can still follow.
A refund can fail more than once. Each failed attempt sends its own refund.failed, with its own id and attempt.
json
{
"id": "evt_9e4b2a7c1d8f53e0b6a2c4d1",
"event": "refund.failed",
"refund_id": "rf_5b1e8c2d7a4f90b3e6a1c2d8",
"checkout_id": "cs_ke_0b4d2f7a9c1e53b8d6a2e410",
"charge_id": "ch_ke_7e1a4c9b2d5f80e3a6c1b047",
"intent_id": "pi_5a2c8e1f4b7d90a3c6e2f185",
"amount": "50000",
"currency": "KES",
"reference": "order-8841",
"rail": "mpesa",
"provider_receipt": null,
"status": "requested",
"attempt": 1,
"method": "mobile",
"created_at": "2026-11-21T08:05:00.000Z"
}| Field | Type | Meaning |
|---|---|---|
attempt | integer | Which attempt this was, counting from 1 |
method | string | How the attempt tried to send the money: balance (back to the MOOKHPay balance the payer paid from), card (back to the card) or mobile (a payout to the payer's phone) |
No event is sent when a refund could not be started at all, for example when MOOKHPay's ledger did not answer; MOOKHPay retries those itself.
charge.expired
Sent to the maker of a direct charge when the charge reaches expires_at while still pending. A prompt already on the payer's phone can still be approved; you then receive payment.succeeded for the same charge.
json
{
"id": "evt_e54fd267decb46eefb7521fb",
"event": "charge.expired",
"charge": "ch_ke_7e1a4c9b2d5f80e3a6c1b047",
"checkout_id": "cs_ke_0b4d2f7a9c1e53b8d6a2e410",
"reference": "order-8841",
"amount": "150000",
"currency": "KES",
"status": "expired",
"metadata": { "till": "4" },
"test": false,
"created_at": "2026-11-20T09:20:00.000Z"
}| Field | Type | Meaning |
|---|---|---|
event | string | charge.expired or charge.cancelled |
charge | string | The charge id |
checkout_id | string | The checkout behind the charge |
reference | string | Your reference |
amount | string | The charge's amount, in minor units |
currency | string | KES or UGX |
status | string | The charge's status when the payload was built: expired or cancelled, or succeeded if a late payment landed first |
metadata | object | Your metadata |
test | boolean | true for a test charge |
created_at | string | When MOOKHPay prepared this payload |
A charge made for a seller adds account, platform_fee and net (integers) before event:
json
{
"id": "evt_ecd432e555be96abe2148e78",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"platform_fee": 15000,
"net": 135000,
"event": "charge.cancelled",
"charge": "ch_ke_2b8e5d1a9c4f73e0b6d2a518",
"checkout_id": "cs_ke_6e1c9a4d2b7f50e3c8a1d692",
"reference": "order-8842",
"amount": "150000",
"currency": "KES",
"status": "cancelled",
"metadata": {},
"test": false,
"created_at": "2026-11-20T09:21:30.000Z"
}charge.cancelled
Sent to the maker when a pending charge is cancelled with POST /charges/:id/cancel. Cancelling a charge that is already cancelled sends nothing new. Same fields as charge.expired, with status cancelled.
account.created
Sent to the platform when POST /accounts creates a new account. A replay of the same create, or a create that returns an existing account by external_reference, sends nothing.
Every account.* event has four fields:
| Field | Type | Meaning |
|---|---|---|
event | string | The event type |
account | string | The account id, acct_<country>_… |
data | object | What the event carries; see each event |
created_at | string | For account.created and account.updated, when MOOKHPay prepared the payload. For account.linked, account.claimed and account.disconnected, when it happened |
account.created and account.updated carry the account in data, in the shape GET /accounts/{id} returns:
json
{
"id": "evt_750ac5f38d9f63c8053f0852",
"event": "account.created",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"data": {
"id": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"username": "leonmwangi4821",
"status": "active",
"origin": "created",
"external_reference": "seller-2291",
"requirements": { "currently_due": ["identity"], "pending": [] },
"capabilities": { "payments": true, "payouts": true },
"created_at": "2026-11-20T09:00:00.000Z"
},
"created_at": "2026-11-20T09:00:01.000Z"
}See The account object for the fields in data.
account.linked
Sent to the platform when the owner of an existing MOOKHPay account approves your account link with their PIN. You do not have to poll for it: MOOKHPay's account events job reads approvals from its account service, once a minute by default, and sends the event whether or not you call GET /account-links/{id}. If you do read the link first and it is approved, that read queues the same event at once; the two never send it twice to one endpoint.
data is about the approval, not the account. Read GET /accounts/{id} for the account itself.
json
{
"id": "evt_4502417792128afaa747456b",
"event": "account.linked",
"account": "acct_ke_4a7d1e9c3b6f20a8d5e1c937",
"data": {
"link_id": "plr_ke_5b0e7c2a9d4f1638e2a7c049",
"scopes": ["accounts:read", "payments:write", "payouts:write"],
"approved_at": "2026-11-20T12:41:03.000Z"
},
"created_at": "2026-11-20T12:41:03.000Z"
}| Field | Type | Meaning |
|---|---|---|
account | string | The id your platform now uses for the account |
data.link_id | string | The account link's id, plr_<country>_…, as POST /account-links answered it |
data.scopes | array of strings | What the owner approved, from accounts:read, payments:write, payouts:write and login_links:write |
data.approved_at | string | When the owner approved. Also in created_at |
account.claimed
Sent to the platform when a seller sets a PIN on an account the platform created, which claims it. See What sellers see and control. A linked account was never unclaimed and never sends it.
json
{
"id": "evt_e95bb8286a479aa7f04d6863",
"event": "account.claimed",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"data": { "status": "active", "claimed_at": "2026-11-20T11:30:00.000Z" },
"created_at": "2026-11-20T11:30:00.000Z"
}| Field | Type | Meaning |
|---|---|---|
data.status | string | Your access to the account now: active, or revoked if it ended before MOOKHPay read the claim |
data.claimed_at | string | When the seller claimed it. Also in created_at |
account.disconnected
Sent to the platform when its access to an account ends: the account holder disconnected your platform in MOOKHPay (Settings, Connected Apps), or the access ended another way, such as the account being closed. After it, every call about the account answers 404 and code 2943, with one exception: where pockets are on (Kenya), an account whose connection to your platform was revoked, as when its holder disconnects you, answers 409 and code 3061 (PLATFORM_ACCOUNT_DISCONNECTED), so you can tell it from an id you never had. That 409 does not count toward the unknown-id limit. Money already paid into the person's pocket stays theirs. See What sellers see and control.
json
{
"id": "evt_7a31b641bb6c93edd6c63529",
"event": "account.disconnected",
"account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
"data": { "revoked_at": "2026-11-24T16:05:12.000Z" },
"created_at": "2026-11-24T16:05:12.000Z"
}| Field | Type | Meaning |
|---|---|---|
data.revoked_at | string | When the access ended. Also in created_at |
When link approvals, claims and disconnections arrive
MOOKHPay reads link approvals, claims and disconnections from its account service on a schedule, once a minute by default, so these three events can arrive about a minute after the fact. The job sends only those that happened after the earliest-created active endpoint of yours that is subscribed to the event. Subscribing later does not replay older ones. MOOKHPay keeps its place per platform and event kind, and that place survives deleting every endpoint: a platform that removes all its endpoints and later adds one receives the events from the gap, from where it left off. (An approved link you read with GET /account-links/{id} is announced on that read whatever its age.)
account.updated
An endpoint can subscribe to account.updated, but it is not sent today: nothing in MOOKHPay triggers it yet. When it is sent, it will carry the account in data like account.created, once for each distinct state of the account. Read GET /accounts/{id} for the current requirements.
Test events
A test send from the hub posts a sample of the event you pick. Every sample has an id, "test": true and made-up ids ending in 16 random hex characters (cs_test_…, pi_test_…, ch_test_…, rf_test_…, acct_test_…, plr_test_…). The account.linked sample's scopes are always ["accounts:read", "payouts:write"]. Amounts are "100"; the currency and rail are those of the deployment; reference and remarks are "test".
json
{
"id": "evt_f94b82f46f3bbc7b9c3435e3",
"event": "payment.succeeded",
"checkout_id": "cs_test_9f2c4e1a7b3d5068",
"intent_id": "pi_test_9f2c4e1a7b3d5068",
"amount": "100",
"currency": "KES",
"reference": "test",
"rail": "mpesa",
"provider_receipt": null,
"ledger_reference": null,
"created_at": "2026-11-20T09:30:00.000Z",
"test": true
}Differences from real events:
payment.*samples have no charge or platform fields, and nomethod.payout.*samples are in the plain shape with api_test_…payout_idand"test": trueadded at the end.account.createdandaccount.updatedsamples describe a made-up account with usernametestandcreated_at1970-01-01T00:00:00.000Z. Theaccount.linked,account.claimedandaccount.disconnectedsamples carry noticedatadated now.- A sample is sent once and never retried. It is listed under Deliveries as a test.
Your code should accept a test event and do nothing with it, or route it to a test path. Never fulfil an order on "test": true.