# Transfer between wallets

`POST https://morzepay.com/v1/transfers`

POST`/v1/transfers`

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.

Permission`transfers:write`

### Headers

`Idempotency-Key`stringheader

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](https://morzepay.com/docs/api#idempotency).

### Body

JSON, with `Content-Type: application/json`.

`from_wallet_id`stringrequired

The wallet to take the money from.

`to_wallet_id`stringrequired

The wallet to put it in.

`amount`integerrequired

Whole UGX, from 1 to 50,000,000.

`reference`stringrequired

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

`fee`integer

Your own fee, charged to the sender on top of `amount`. For example, a 1% fee on a peer-to-peer transfer.

`fee_wallet_id`string

Where your fee goes. Defaults to the sender’s main wallet.

`description`string

Up to 100 characters. Shown in your dashboard.

`metadata`object

Up 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](https://morzepay.com/docs/api#errors).



## Example request

```bash
curl -X POST "https://morzepay.com/v1/transfers" \
  -H "Authorization: Bearer $MORZEPAY_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: p2p-90311" \
  -d '{
  "from_wallet_id": "wal_Zq4Hn8YtV2kPm6RbX3cLw9",
  "to_wallet_id": "wal_Pt7Kc2NxW9mQ4vR8bLd3Hy",
  "amount": 50000,
  "fee": 500,
  "reference": "p2p-90311",
  "description": "Send 50k to John"
}'
```

## Example response (201)

```json
{
  "success": true,
  "data": {
    "id": "txn_Tn6Bq3WkP8rV2mX9cLd4Jh",
    "livemode": true,
    "type": "transfer_out",
    "status": "success",
    "wallet_id": "wal_Zq4Hn8YtV2kPm6RbX3cLw9",
    "currency": "UGX",
    "amount": "50000.00",
    "net": "-50700.00",
    "reference": "p2p-90311",
    "description": "Send 50k to John",
    "created_at": "2026-10-04T16:11:40+03:00",
    "completed_at": "2026-10-04T16:11:40+03:00",
    "counterparty_wallet_id": "wal_Pt7Kc2NxW9mQ4vR8bLd3Hy",
    "fee": "200.00",
    "merchant_fee": "500.00",
    "metadata": null
  }
}
```
