Confirm Mobile Money Payout

Confirms an initiated mobile money payout using the authentication token and the user's wallet PIN. Once confirmed, the payout moves to processing.

Request

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

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 who initiated the payout.{{merchant_user_ref}}
auth_tokenYesAuthentication token returned when the payout was initiated.{{auth_token}}
wallet_pinYesUser's wallet PIN used to authorize the payout.123456

Example Request

{
  "user_ref": "{{merchant_user_ref}}",
  "auth_token": "{{auth_token}}",
  "wallet_pin": "123456"
}

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 confirmation request was successful.
messageProvides the result of the payout confirmation.
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?