Appearance
The refund object
A refund asks MOOKHPay to send a paid checkout's or charge's money back to the payer, all of it or part. MOOKHPay reviews every refund before money moves. Create a refund, Retrieve a refund and List refunds all return this object. See Refunds.
Example
json
{
"id": "rf_5b1e8c2d7a4f90b3e6a1c2d8",
"status": "refunded",
"amount": 50000,
"fee": 0,
"currency": "KES",
"reason": "One latte was not served",
"decline_reason": null,
"checkout_id": "cs_ke_3f9a1c7e5b2d4a8e6c0b91d7",
"charge_id": null,
"intent_id": "pi_8c1e4f0a7b3d92e5a6f01c48",
"reference": "order-1042",
"provider_receipt": "UAB3K9L2MP",
"method": "mobile",
"requested_via": "api",
"requested_at": "2026-11-21T07:40:12.000Z",
"reviewed_at": "2026-11-21T07:58:30.000Z",
"refunded_at": "2026-11-21T08:00:00.000Z"
}Fields
| Field | Type | Nullable | Meaning |
|---|---|---|---|
id | string | No | rf_ and 24 hex characters. The refund events carry it as refund_id |
status | string | No | requested, approved, refunded or declined. See Status |
amount | integer | No | Minor units. The part asked for, or all that was left when amount was left out |
fee | integer | No | Minor units. The payout fee your account pays on top of amount when the money goes back to the payer's phone (method mobile): 0 for now. 0 for balance, card and manual, and while method is null. The payer receives amount. See Fees |
currency | string | No | The payment's currency: KES on the Kenya host, UGX on the Uganda host |
reason | string | Yes | The reason you sent, or null |
decline_reason | string | Yes | Why MOOKHPay declined it, once status is declined, else null. Written by MOOKHPay staff for people; do not branch on it |
checkout_id | string | Yes | The checkout that was paid. A direct charge has one too; null only for a payment that came through neither |
charge_id | string | Yes | The direct charge that was paid, ch_<country>_…, or null for a hosted checkout |
intent_id | string | No | The payment attempt being refunded, pi_… |
reference | string | Yes | Your reference from the checkout or charge |
provider_receipt | string | Yes | The rail's reference for the money sent back, once status is refunded. null before, and on a refund MOOKHPay sent back by hand with no rail reference |
method | string | Yes | How the money is sent back once MOOKHPay approves it: balance, card, mobile or manual. null before |
requested_via | string | No | api for a refund asked for with POST /refunds, app for one asked for in the hub |
requested_at | string | No | When the refund was asked for. ISO 8601, UTC |
reviewed_at | string | Yes | When MOOKHPay approved or declined it, else null |
refunded_at | string | Yes | When the money was sent back, else null |
Unlike a checkout, whose amount is a string, a refund's amount and fee are integers. The refund webhooks carry amount as a string, like every other event.
Status
status | Meaning | Final |
|---|---|---|
requested | Waiting for MOOKHPay to review it, or back with MOOKHPay after an attempt to send the money failed. Nothing has moved | No |
approved | MOOKHPay approved it and is sending the money back | No |
refunded | The money is back with the payer | Yes |
declined | MOOKHPay declined it. Nothing moved | Yes |
A refund that is requested or approved is open, and a payment can have one open refund at a time.
| Change | Webhook |
|---|---|
To refunded | refund.succeeded |
To declined | refund.declined |
From approved back to requested after a failed attempt | refund.failed |
No webhook is sent when a refund is created or approved.