Initiate Mobile Money Payout

Initiates a payout from a user's sub-wallet to a mobile money account. The request includes the recipient's phone number, name, mobile money network, and payout amount.

Request

POST {{base_url}}/api/v1/payout/wallet-mobilemoney

Authentication

LedgerBlock uses Bearer Token authentication. Include your API key in the Authorization header.

ParameterValueType
Authorization{{api_key}}Bearer Token

Headers

HeaderRequiredDescriptionExample
Content-TypeYesSpecifies that the request body is JSON.application/json
x-merchant-refYesUnique reference identifying the merchant.{{vault:x-merchant-ref}}

Request Body

ParameterRequiredDescriptionExample
user_refYesUnique reference identifying the user initiating the payout.{{merchant_user_ref}}
txn_merchant_refYesUnique merchant-generated reference for the transaction.DUMMY_LBREF_000001
currencyYesCurrency used for the mobile money payout.KES
wallet_typeYesType of wallet used to fund the payout.SUB_WALLET
amountYesAmount to be paid to the recipient.100
receiver_phoneYesPhone number of the mobile money recipient.254700000000
receiver_nameYesName of the recipient.Test Recipient
networkYesMobile money network of the recipient.AIRTEL
narrationNoDescription or purpose of the payout.Payment for service
notification_urlYesWebhook URL that receives payout status notifications.https://example.com/webhooks/payout

Example Request

{
  "user_ref": "{{merchant_user_ref}}",
  "txn_merchant_ref": "DUMMY_LBREF_000001",
  "currency": "KES",
  "wallet_type": "SUB_WALLET",
  "amount": 100,
  "receiver_phone": "254700000000",
  "receiver_name": "Test Recipient",
  "network": "AIRTEL",
  "narration": "Payment for service",
  "notification_url": "https://example.com/webhooks/payout"
}

Example Response

{
  "status": "success",
  "message": "Payout confirmed. Processing",
  "data": {
    "payment_ref": "dummy-payment-ref-001",
    "txn_merchant_ref": "DUMMY_LBREF_000001",
    "currency": "KES",
    "payment_status": "PENDING",
    "auth_token": "",
    "expires_in_seconds": 0
  }
}

Response

FieldDescription
statusIndicates whether the request was successful.
messageProvides information about the payout result.
data.payment_refUnique reference assigned to the payout by LedgerBlock.
data.txn_merchant_refMerchant-generated reference associated with the payout.
data.currencyCurrency used for the payout.
data.payment_statusCurrent status of the payout. PENDING indicates that processing is underway.
data.auth_tokenAuthentication token returned in the response. Empty when no further confirmation token is provided.
data.expires_in_secondsToken validity duration in seconds. 0 indicates that no active confirmation token is provided.

Did this page help you?