HivePay Docs v1.0
Sign In Get API Keys
POST /api/v1/send-money Payouts

Send Money (Mobile Money Payouts)

Disburse funds directly from your HivePay virtual wallet to any recipient phone on MTN or Airtel. If the provider rejects the payout, HivePay automatically issues a 100% immediate wallet refund.

Disbursement Safeguards

  • ✓ 100% Instant Refund: If recipient network rejects transfer or phone is inactive, funds return to your wallet.
  • ✓ Audited Ledger: Balance before and after are recorded in your immutable wallet ledger.
  • ✓ Recipient Name Lookup: Validates recipient identity on MTN and Airtel.

Request Parameters (JSON Body)

Parameter Type Required Description
phone_number string Required Recipient mobile money number (MTN or Airtel e.g. 0777123456).
amount number Required Amount in UGX debited from your wallet. The tiered service fee is cut from this amount, so the recipient receives amount - fee. Must not exceed your wallet balance.
description string Required Description for the payout ledger (e.g. "Driver weekly payout").
reference string Optional Your unique internal transaction ID for idempotency and reconciliation.

Code Example

curl -X POST https://hivepay.site/api/v1/send-money \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET" \
  -H "X-Account-Number: YOUR_ACCOUNT_NUMBER" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "0777123456",
    "amount": 25000,
    "description": "Agent commission payout",
    "reference": "WD-9812"
  }'

Success Response (200 OK)

Response JSON
{
  "success": true,
  "message": "Payout initiated successfully.",
  "reference": "WD-9812",
  "gateway_reference": "HP-PAY-ZX98WV76UT",
  "amount": 25000,
  "fee": 1800,
  "recipient_gets": 23200,
  "total_deducted": 25000,
  "currency": "UGX",
  "status": "pending"
}