Skip to content

The payout object ​

A payout moves money from one of your accounts' main wallet to the seller: to the payout account the seller chose with their PIN in MOOKHPay, or, when they chose none, to their own phone. Create a payout, Retrieve a payout and List payouts all return this object.

In pocket mode a payout comes out of your platform's pocket instead of main, and goes to the number set for the pocket, else to the seller's main payout account, else to their own phone. Wherever these pages say "the wallet", read "the pocket" in pocket mode: a failed payout's money goes back to the pocket.

A payout that was refused when you created it (for example for an insufficient balance) is not a payout object: the create call answered with an error, and the payout cannot be retrieved or listed.

Example ​

json
{
  "payout_id": "po_ke_6b1f0e9a2c7d48e3a5b2c810",
  "account": "acct_ke_9c2f41b07e5d38a6c1f0b294",
  "status": "processing",
  "amount": 500000,
  "fee": 0,
  "total": 500000,
  "currency": "KES",
  "remarks": "Week 47 sales",
  "destination": { "rail": "mpesa", "phone_masked": "+254 7•• ••• 678" },
  "approval_id": null,
  "failure": null,
  "created_at": "2026-11-20T10:00:04.000Z"
}

Fields ​

FieldTypeNullableMeaning
payout_idstringNopo_, the country, _ and 24 hex characters. A platform's payout.paid and payout.failed carry the same id
accountstringNoThe account id the payout was made from
statusstringNoawaiting_approval, held, processing, paid or failed. See Status
amountintegerNoMinor units. Always a multiple of 100. What reaches the seller
feeintegerNoMinor units. The payout fee, taken from the wallet on top of amount. 0 for now. See Fees
totalintegerNoMinor units. amount plus fee: what leaves the wallet
currencystringNoKES on the Kenya host, UGX on the Uganda host
remarksstringYesThe remark you sent, or null
destination.railstringNoThe rail the payout is sent on: mpesa or momo
destination.phone_maskedstringYesThe number it goes to, masked: +254 7•• ••• 678 for a 12-digit number. null only if the stored number cannot be masked
approval_idstringYesA company account's payout only: the approval its owners sign in MOOKHPay. null otherwise
failureobjectYes{ code, message } once status is failed, else null. See Failure codes
created_atstringNoISO 8601, UTC

A payout that ends failed returns total to the wallet, fee included. fee and total still show what was charged and given back.

There is no field that says which destination was used (payout account or phone), and no receipt or provider reference. The payout.paid webhook carries provider_receipt and ledger_reference; see Event catalogue.

Status ​

statusMeaningFinal
awaiting_approvalA company account's payout, filed for its owners' signatures in MOOKHPay. No money has movedNo
heldMOOKHPay checks this payout before it is sentNo
processingReserved from the wallet and sent to the rail, or signed by the company's owners and on its wayNo
paidThe rail paid the sellerYes
failedThe rail refused it, MOOKHPay declined it at the check, or the company's owners rejected it or let the approval expire. The money is back in the wallet, or never left itYes

The status is worked out when you read the payout, from the payment attempt, the check and the approval behind it. Nothing pushes a change to you except the webhooks: payout.paid when it is paid and payout.failed when it fails. No webhook is sent for held or awaiting_approval.

Failure codes ​

failure.codefailure.message
rail_unavailableThe payment network could not send the payout. The money is back in the wallet
recipient_unreachableThe number cannot receive this payout. The money is back in the wallet
limit_exceededThe payout is over a limit on the network. The money is back in the wallet
declinedThe payout was declined. The money is back in the wallet

declined also covers a payout MOOKHPay declined at its check, and a company payout whose owners rejected it or let it expire. A rail answer that MOOKHPay does not recognise is read as declined. Branch on code; message is for people. The same codes and messages are on payout.failed.

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