Skip to content

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.

EventSent whenOffered
payment.succeededA checkout or charge payment was bookedAlways
payment.failedA payment attempt failed, or a card charge expired with nothing in flightAlways
payout.paidMoney sent out of a wallet reached the recipientAlways
payout.failedA payout failed and the money went back to the walletAlways
refund.succeededMOOKHPay refunded a payment to the payerAlways
refund.declinedMOOKHPay declined a refund requestAlways
refund.failedAn attempt to send a refund's money failed, and the refund went back to MOOKHPay for reviewAlways
charge.expiredA direct charge reached its expires_at while pendingWhere direct charges are on
charge.cancelledYou cancelled a pending direct chargeWhere direct charges are on
account.createdYour platform created a seller accountWhere the platform API is on
account.linkedThe owner of an existing account approved your account linkWhere the platform API is on
account.claimedA seller set a PIN on an account you createdWhere the platform API is on
account.disconnectedYour access to an account endedWhere the platform API is on
account.updatedNot sent todayWhere 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.

EventReceivers
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.succeeded instead);
  • 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:

  1. A 201 (or a 200 replay) with status: "succeeded" means the money is in the pocket.
  2. An error means it did not move. 3060, 3062 and the other refusals say why. See Errors.
  3. A timeout, a 5xx or a pay-in you find processing has not settled yet. Send the same request again with the same Idempotency-Key and body and a fresh signature: the retry settles it once. Read it any time with GET /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"
}
FieldTypeMeaning
idstringThis event, evt_…. On every event; see above
eventstringpayment.succeeded or payment.failed
checkout_idstringThe checkout, cs_<country>_…. A direct charge has one too
intent_idstringThe payment attempt this is about, pi_…. A checkout can fail on one attempt and be paid on the next
amountstringThe checkout's amount in minor units. A card fee the payer paid on top is not in it
currencystringKES or UGX
referencestring or nullYour reference from the create call
railstringWhat the payment rode on: mpesa, momo, card-uc (card) or mookhpay (paid from a MOOKHPay balance)
methodstring or nullHow 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_receiptstring or nullThe 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_referencestring or nullMOOKHPay's receipt reference, SM…. null until booked, so usually null on payment.failed
testbooleantrue for a test payment, which moved no money. See Testing
created_atstringWhen 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"
}
FieldTypeMeaning
chargestringThe charge id, ch_<country>_…
metadataobjectYour metadata, as you sent it ({} if none)
failureobject 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.

FieldTypeMeaning
platform_feeintegerThe platform's fee, in minor units
netintegerWhat the seller received: amount less platform_fee
accountstringThe 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"
}
FieldTypeMeaning
eventstringpayout.paid or payout.failed
payout_idstringThe payment attempt that sent the money, pi_…
batch_idstring or nullThe Bulk Payments batch this row belongs to, or null
amountstringThe amount sent, in minor units
currencystringKES or UGX
remarksstring or nullThe remark given with the payout
railstringmpesa or momo
provider_receiptstring or nullThe rail's receipt. null when the rail gave none
ledger_referencestring or nullMOOKHPay's reference for the booking, SM…
created_atstringWhen 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
}
FieldTypeMeaning
payout_idstringThe platform payout's id, po_<country>_…, as the create call returned it
intent_idstringThe payment attempt behind it, pi_…. The seller's copy calls this payout_id
accountstringThe seller's account id
failureobject 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.codeMeaningfailure.message
rail_unavailableThe payment network could not send it, including a payout that never reached the networkThe payment network could not send the payout. The money is back in the wallet
recipient_unreachableThe number cannot receive it: not registered, not allowed to receive, or unknown to the networkThe number cannot receive this payout. The money is back in the wallet
limit_exceededOver a limit on the networkThe payout is over a limit on the network. The money is back in the wallet
declinedThe network declined it, or gave a reason MOOKHPay does not mapThe 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:

FieldTypeMeaning
idstringThis event, evt_…
eventstringrefund.succeeded, refund.declined or refund.failed
refund_idstring or nullThe 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_idstringThe checkout that was paid
charge_idstring or nullThe direct charge that was paid, ch_<country>_…, or null for a hosted checkout
intent_idstringThe payment attempt being refunded, pi_…
amountstringThe amount of the refund, in minor units. Can be less than the payment's amount
currencystringThe payment's currency
referencestring or nullYour reference from the checkout or charge
railstringThe rail of the original payment
provider_receiptstring or nullThe rail's reference for the money sent back. null until it is sent, so null on refund.declined and refund.failed
statusstringThe 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_reasonstring or nullWhy MOOKHPay declined it, on refund.declined. null on the other two
attemptinteger or nullWhich attempt to send the money this was, on refund.failed. null when it does not apply
methodstring or nullHow the money was being sent back, balance, card, mobile or manual, once chosen. null before
created_atstringWhen 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"
}
FieldTypeMeaning
decline_reasonstringWhy 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"
}
FieldTypeMeaning
attemptintegerWhich attempt this was, counting from 1
methodstringHow 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"
}
FieldTypeMeaning
eventstringcharge.expired or charge.cancelled
chargestringThe charge id
checkout_idstringThe checkout behind the charge
referencestringYour reference
amountstringThe charge's amount, in minor units
currencystringKES or UGX
statusstringThe charge's status when the payload was built: expired or cancelled, or succeeded if a late payment landed first
metadataobjectYour metadata
testbooleantrue for a test charge
created_atstringWhen 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:

FieldTypeMeaning
eventstringThe event type
accountstringThe account id, acct_<country>_…
dataobjectWhat the event carries; see each event
created_atstringFor 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"
}
FieldTypeMeaning
accountstringThe id your platform now uses for the account
data.link_idstringThe account link's id, plr_<country>_…, as POST /account-links answered it
data.scopesarray of stringsWhat the owner approved, from accounts:read, payments:write, payouts:write and login_links:write
data.approved_atstringWhen 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"
}
FieldTypeMeaning
data.statusstringYour access to the account now: active, or revoked if it ended before MOOKHPay read the claim
data.claimed_atstringWhen 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"
}
FieldTypeMeaning
data.revoked_atstringWhen the access ended. Also in created_at

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 no method.
  • payout.* samples are in the plain shape with a pi_test_… payout_id and "test": true added at the end.
  • account.created and account.updated samples describe a made-up account with username test and created_at 1970-01-01T00:00:00.000Z. The account.linked, account.claimed and account.disconnected samples carry notice data dated 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.

Staging documentation. A checkout made with a secret key on staging charges a real phone. See Environments.