Collection Webhook

collection.successful

This event is dispatched when funds are received in the user's virtual account.

{
  "event": "collection.successful",
  "data": {
    "business": "63f1197a67id20401d95c8d56e",
    "virtualAccount": "19c2ea4b66ea3j92188ab2de",
    "sessionId": "9990352309238349212589234992",
    "senderAccountName": "John Doe",
    "senderAccountNumber": "0123456789",
    "senderBankName": "WEMA BANK",
    "sourceCurrency": "NGN",
    "destinationCurrency": "NGN",
    "sourceAmount": 100,
    "destinationAmount": 100,
    "description": "ALAT TRANSFER TO Joshy Workplace-",
    "amountReceived": 99,
    "fee": 1,
    "customerName": "Ultimate Global Ventures",
    "settlementDestination": "wallet",
    "status": "successful",
    "initiatedAt": "2023-09-13T11:37:13.887Z",
    "createdAt": "2023-09-13T11:37:14.030Z",
    "updatedAt": "2023-09-13T11:37:14.030Z",
    "reference": "7126huha-01ef-4ua58-a97c-a2182784a2c6"
  }
}

collection.failed

This event is dispatched when a payin to a user's virtual account fails or gets declined.

{
  "event": "collection.failed",
  "data": {
    "business": "jw3e3d4fa8728738k82299h4",
    "virtualAccount": "9889sd878nu883bsjka",
    "sessionId": "8293899898398923899112",
    "senderAccountName": "Palmpay  John Doe",
    "senderAccountNumber": "123456789",
    "senderBankName": "PALMPAY",
    "sourceCurrency": "NGN",
    "destinationCurrency": "NGN",
    "sourceAmount": 200,
    "destinationAmount": 200,
    "amountReceived": 0,
    "fee": 0,
    "customerName": "Palmpay  John Doe",
    "settlementDestination": "",
    "status": "failed",
    "initiatedAt": "2023-09-13T08:11:12.601Z",
    "createdAt": "2023-09-13T08:11:12.603Z",
    "updatedAt": "2023-09-13T08:11:12.603Z",
    "reference": "as89h9n9a-hs89-hihass-a868-8sih98nsu"
  },
  "business": "jw3e3d4fa8728738k82299h4"
}
DataDescription
data.businessThe ID of the parent business or sub-account receiving funds in their wallet
data.virtualAccountThe ID of the virtual account receiving the payment
data.sourceCurrencyThe currency the funds was sent in
data.destinationCurrencyThe currency that the user receives the funds in
data.sourceAmountThe amount that the funds was sent in
data.destinationAmountThe amount that the funds was sent in
data.amountReceivedThe amount that settles in the virtual account after the fee has been deducted
data.feeThe fee charged for the transaction
data.customerNameThe name of the customer sending the funds
data.settlementDestinationThis is where the funds settle In e.g a user's wallet
data.statusThis is the status of the collection
data.initiatedAtThis is the timestamp the collection was initiated
data.createdAtThis is the timestamp the collection was created
data.updatedAtThis is the timestamp the collection was updated
data.referenceThis is the unique reference generated for the collection
data.reasonThe reason the collection fails
data.paymentSchemeThe payment scheme used in the collection