Appearance
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
| Field | Type | Nullable | Meaning |
|---|---|---|---|
payout_id | string | No | po_, the country, _ and 24 hex characters. A platform's payout.paid and payout.failed carry the same id |
account | string | No | The account id the payout was made from |
status | string | No | awaiting_approval, held, processing, paid or failed. See Status |
amount | integer | No | Minor units. Always a multiple of 100. What reaches the seller |
fee | integer | No | Minor units. The payout fee, taken from the wallet on top of amount. 0 for now. See Fees |
total | integer | No | Minor units. amount plus fee: what leaves the wallet |
currency | string | No | KES on the Kenya host, UGX on the Uganda host |
remarks | string | Yes | The remark you sent, or null |
destination.rail | string | No | The rail the payout is sent on: mpesa or momo |
destination.phone_masked | string | Yes | The number it goes to, masked: +254 7•• ••• 678 for a 12-digit number. null only if the stored number cannot be masked |
approval_id | string | Yes | A company account's payout only: the approval its owners sign in MOOKHPay. null otherwise |
failure | object | Yes | { code, message } once status is failed, else null. See Failure codes |
created_at | string | No | ISO 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
status | Meaning | Final |
|---|---|---|
awaiting_approval | A company account's payout, filed for its owners' signatures in MOOKHPay. No money has moved | No |
held | MOOKHPay checks this payout before it is sent | No |
processing | Reserved from the wallet and sent to the rail, or signed by the company's owners and on its way | No |
paid | The rail paid the seller | Yes |
failed | The 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 it | Yes |
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.code | failure.message |
|---|---|
rail_unavailable | The payment network could not send the payout. The money is back in the wallet |
recipient_unreachable | The number cannot receive this payout. The money is back in the wallet |
limit_exceeded | The payout is over a limit on the network. The money is back in the wallet |
declined | The 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.