Initiate Wallet-to-CAD Payout

Initiates a payout in Canadian dollars (CAD) from a user's wallet. The request includes the recipient's details and payout amount. The payout must be confirmed using the user's wallet PIN before processing can continue.

Request

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

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_CAD_PAYOUT_001
amountYesAmount to be paid in CAD.2.50
emailYesRecipient's email address.[email protected]
first_nameYesRecipient's first name.Test
last_nameYesRecipient's last name.Recipient
noteNoOptional note describing the payout.Payout note
meta_dataNoOptional additional information associated with the payout.{}
notification_urlYesWebhook URL that receives payout status notifications.https://example.com/webhooks/payout

Example Request

{
  "user_ref": "{{merchant_user_ref}}",
  "txn_merchant_ref": "DUMMY_CAD_PAYOUT_001",
  "amount": 2.50,
  "email": "[email protected]",
  "first_name": "Test",
  "last_name": "Recipient",
  "note": "Payout note",
  "meta_data": {},
  "notification_url": "https://example.com/webhooks/payout"
}

Example Response

{
  "status": "success",
  "message": "Payout initialized. Confirm with your wallet PIN to complete it",
  "data": {
    "payment_ref": "dummy-payment-ref-001",
    "txn_merchant_ref": "DUMMY_CAD_PAYOUT_001",
    "currency": "CAD",
    "payment_status": "AWAITING_CONFIRMATION",
    "auth_token": "{{auth_token}}",
    "expires_in_seconds": 600
  }
}

Response

FieldDescription
statusIndicates whether the payout initiation request was successful.
messageProvides information about the result of the request.
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. The response is expected to return CAD.
data.payment_statusCurrent status of the payout. AWAITING_CONFIRMATION means the payout requires confirmation.
data.auth_tokenTemporary token required to confirm the payout.
data.expires_in_secondsTime in seconds before the authentication token expires.

Next Step

Use the returned auth_token and the user's wallet PIN to confirm the payout through the corresponding CAD payout confirmation endpoint.


Did this page help you?