Payout Webhook

Event :payout.successful

This webhook event is triggered when an authenticated user initiates a transfer or payout, and the transaction is successfully completed

{
    "event": "payout.successful",
    "data": {
        "id": 14380,
        "amountCharged": 212000,
        "amountReceived": 500,
        "recipient": {
            "name": "Hassan Sarz",
            "accountNumber": "0124775489",
            "type": "individual",
            "email": "[email protected]"
        },
        "fee": 150,
        "rate": 0.0019,
        "paymentScheme": "fps",
        "paymentDestination": "bank_account",
        "sourceCurrency": "GBP",
        "destinationCurrency": "GBP",
        "status": "successful",
        "createdAt": "2022-04-02T21:23:44.000Z",
        "updatedAt": "2022-04-02T21:23:50.000Z",
        "reference": "bf2eb02e-39fe-490a-b933-63f8c4d42125",
        "customerReference": "4555r4554",// would be included if its passed at the point where payout was initiated
        "reason": "Payout was successful",
        "traceId": null,
        "valuedAt": "2022-04-03T21:23:50.000Z"
    }
}

Event : payout.failed

This webhook event is triggered when an authenticated user initiates a transfer or payout, but the transaction fails to complete.

{
  "event": "payout.failed",
  "data": {
    "id": 14382,
    "amountCharged": 12150,
    "amountReceived": 12000,
    "recipient": {
      "name": "Hassan Sarz",
      "accountNumber": "0124775489",
      "type": "individual",
      "email": "[email protected]"
    },
    "fee": 150,
    "rate": 1,
    "paymentScheme": "fps",
    "paymentDestination": "bank_account",
    "sourceCurrency": "GBP",
    "destinationCurrency": "GBP",
    "status": "failed",
    "createdAt": "2022-02-21T03:51:53.000Z",
    "updatedAt": "2022-02-21T03:54:10.000Z",
    "reference": "9fd3f916-3b03-4bb2-af69-f42b64925919",
    "customerReference": "4555r4554",// would be included if its passed at the point where payout was initiated
    "reason": "Wrong beneficiary bank details",
    "traceId": null,
    "valuedAt": null
  }
}

Webhook Parameters And Description

Here are the webhook parameters and their corresponding descriptions:

DataDescription
data.idThe unique payout ID generated for the payout
data.amountChargedThe total amount charged for the payout, including transaction fees
data.amountReceivedThe amount received by the recipient after deducting fees.
data.recipient.nameThe name of the recipient
data.recipient.accountNumberThe recipient's account number (in the case of mobile money, it can be the recipient's phone number).
data.recipient.typeThe type of recipient (individual, business, etc.).
data.recipient.emailThe email address of the recipient
data.feeThe fee charged for the transaction, specified in the destination currency
data.rateThe quoted exchange rate used for the payout.
data.paymentSchemeThe payment scheme used for processing the payout.
data.paymentDestinationThe account or destination that received the payment.
data.sourceCurrencyThe currency used for making the payout.
data.destinationCurrencyThe currency in which the recipient receives the payment.
data.statusThe status of the payout (e.g. successful, failed, pending).
data.createdAtThe timestamp indicating when the payout was created.
data.updatedAtThe timestamp indicating the last update time of the payout.
data.referenceA unique reference generated for the payout.
data.reasonA comment or description related to the transaction.
data.customerReferenceThe merchant's unique identifier or reference associated with the payout.
data.traceIdThe trace ID or session ID, which is a transaction identifier recognized across Nigerian banks
data.valuedAtThe timestamp indicating when the account holder receives the funds

These parameters provide various details about the payout and can be utilized for further processing or analysis.