Money movement
POST/v1/payouts

Sends money from a wallet to an MTN or Airtel number. The wallet pays the network fee.

Before sending, Morzepay holds the amount plus an estimated fee with a small margin (amount_held). When the payout succeeds, the real fee is charged and the rest of the hold goes back. If it fails, the whole hold goes back.

Permissionpayouts:write

Headers#

Idempotency-Keystringheader

8–80 letters, digits, - or _. Lets you retry safely: the same key and body return the first answer and never move money twice. See Idempotency.

Body#

JSON, with Content-Type: application/json.

wallet_idstringrequired

The wallet, such as wal_Zq4Hn8YtV2kPm6RbX3cLw9.

msisdnstringrequired

The recipient’s number.

amountintegerrequired

Whole UGX, from 500 to 5,000,000.

referencestringrequired

Your own unique reference, 8–36 characters, such as your order id. Using it twice returns 409 DUPLICATE_REFERENCE.

descriptionstring

Up to 100 characters. Shown in your dashboard.

metadataobject

Up to 20 keys of your own, with simple values. Returned on the object and in webhooks.

Returns#

A transaction with type: "payout" and amount_held.

Errors#

StatusCodeWhen
402INSUFFICIENT_FUNDSThe wallet can’t cover the amount plus the estimated fee. Nothing was sent.
403IP_NOT_ALLOWEDLive keys that send payouts only work from their allowed IPs.
403WEEKLY_LIMIT_REACHEDThis would go over your 7-day live payout limit. details.remaining shows what’s left.
409DUPLICATE_REFERENCEYou already used this reference.
429MSISDN_RATE_LIMITEDToo many payment requests to this number in 10 minutes.

The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.

A payout is never marked failed just because the network is slow. If the outcome is unclear, it stays processing until the network confirms, and moves to review after 24 hours. Don’t send it again with a new reference while it’s processing.