Skip to content

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 ​

FieldTypeNullableMeaning
idstringNorf_ and 24 hex characters. The refund events carry it as refund_id
statusstringNorequested, approved, refunded or declined. See Status
amountintegerNoMinor units. The part asked for, or all that was left when amount was left out
feeintegerNoMinor 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
currencystringNoThe payment's currency: KES on the Kenya host, UGX on the Uganda host
reasonstringYesThe reason you sent, or null
decline_reasonstringYesWhy MOOKHPay declined it, once status is declined, else null. Written by MOOKHPay staff for people; do not branch on it
checkout_idstringYesThe checkout that was paid. A direct charge has one too; null only for a payment that came through neither
charge_idstringYesThe direct charge that was paid, ch_<country>_…, or null for a hosted checkout
intent_idstringNoThe payment attempt being refunded, pi_…
referencestringYesYour reference from the checkout or charge
provider_receiptstringYesThe 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
methodstringYesHow the money is sent back once MOOKHPay approves it: balance, card, mobile or manual. null before
requested_viastringNoapi for a refund asked for with POST /refunds, app for one asked for in the hub
requested_atstringNoWhen the refund was asked for. ISO 8601, UTC
reviewed_atstringYesWhen MOOKHPay approved or declined it, else null
refunded_atstringYesWhen 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 ​

statusMeaningFinal
requestedWaiting for MOOKHPay to review it, or back with MOOKHPay after an attempt to send the money failed. Nothing has movedNo
approvedMOOKHPay approved it and is sending the money backNo
refundedThe money is back with the payerYes
declinedMOOKHPay declined it. Nothing movedYes

A refund that is requested or approved is open, and a payment can have one open refund at a time.

ChangeWebhook
To refundedrefund.succeeded
To declinedrefund.declined
From approved back to requested after a failed attemptrefund.failed

No webhook is sent when a refund is created or approved.

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