Transfer between wallets
Moves money between two wallets in your business, instantly. The sending wallet pays the UGX 200 transfer fee on top of the amount, plus any fee you add for yourself.
transfers:writeHeaders#
Idempotency-Keystringheader8–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.
from_wallet_idstringrequiredThe wallet to take the money from.
to_wallet_idstringrequiredThe wallet to put it in.
amountintegerrequiredWhole UGX, from 1 to 50,000,000.
referencestringrequiredYour own unique reference, 8–36 characters, such as your order id. Using it twice returns 409 DUPLICATE_REFERENCE.
feeintegerYour own fee, charged to the sender on top of amount. For example, a 1% fee on a peer-to-peer transfer.
fee_wallet_idstringWhere your fee goes. Defaults to the sender’s main wallet.
descriptionstringUp to 100 characters. Shown in your dashboard.
metadataobjectUp to 20 keys of your own, with simple values. Returned on the object and in webhooks.
Returns#
The sender’s transfer_out transaction, already success. fee is the transfer fee and merchant_fee your own fee; net is the total taken from the sender. The receiver gets a matching transfer_in, and your fee wallet a fee_in.
Errors#
| Status | Code | When |
|---|---|---|
| 402 | INSUFFICIENT_FUNDS | The sender can’t cover the amount and fees. |
| 409 | DUPLICATE_REFERENCE | You already used this reference. |
| 422 | MODE_MISMATCH | One wallet is test and the other live. |
The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.