Webhook
Webhook response
If you have webhook notifications set up on your dashboard, we will send you updates for different activities, samples of which can be found below:
Transaction types
{
"event": "charge.completed",
"data": {
"createdAt": "2021-11-18T15:23:16.781",
"narration": "CARD Transaction ",
"destinationCurrency": "NGN",
"sourceAmount": 100,
"sourceCurrency": "NGN",
"tnxRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae",
"status": "successful",
"destinationAmount": 100,
"customer": {
"id": 13,
"name": "Demo Tester",
"email": "[email protected]",
"phone": 07000000001,
"createdAt": "2021-07-20 10:28:43",
"updatedAt": "2021-07-20 10:28:43"
}
}
}{
"event": "charge.completed",
"data": {
"createdAt": "2021-11-18T15:23:16.781",
"narration": "CARD Transaction ",
"destinationCurrency": "NGN",
"sourceAmount": 100,
"sourceCurrency": "NGN",
"tnxRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae",
"status": "failed",
"destinationAmount": 100,
"customer": {
"id": 13,
"name": "Demo Tester",
"email": "[email protected]",
"phone": 07000000001,
"createdAt": "2021-07-20 10:28:43",
"updatedAt": "2021-07-20 10:28:43"
}
}
}{
"data": {
"reference": "kbtr-3857-011-null-166993253331236",
"createdAt": "2023-03-28T23:01:45.336",
"amount": 1000,
"accountName": "Pastor Bright",
"narration": "certification",
"name": "Steph and sons",
"currency": "NGN",
"bankName": "ACCESS BANK NIGERIA",
"accountNumber": "0690000032",
"status": "successful"
},
"event": "payout"
}{
"data": {
"reference": "kbtr-3857-011-null-166993253331236",
"createdAt": "2023-03-28T23:01:45.336",
"amount": 1000,
"accountName": "Pastor Bright",
"narration": "certification",
"name": "Steph and sons",
"currency": "NGN",
"bankName": "ACCESS BANK NIGERIA",
"accountNumber": "0690000032",
"status": "failed"
},
"event": "payout"
}{
"event": "refund.completed",
"data": {
"createdAt": "2021-11-18T15:23:16.781",
"refundType": "partial",
"refundRef": "6b691e37-02ae-4ccc-859d-1d10e53eeabd",
"amount": 100,
"completeMessage": "",
"tnxRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae",
"status": "successful",
"customer": {
"id": 13,
"name": "Demo Tester",
"email": "[email protected]",
"phone": 07000000001,
"createdAt": "2021-07-20 10:28:43",
"updatedAt": "2021-07-20 10:28:43"
}
}
}{
"event": "refund.completed",
"data": {
"createdAt": "2021-11-18T15:23:16.781",
"refundType": "partial",
"refundRef": "6b691e37-02ae-4ccc-859d-1d10e53eeabd",
"amount": 100,
"completeMessage": "",
"tnxRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae",
"status": "failed",
"customer": {
"id": 13,
"name": "Demo Tester",
"email": "[email protected]",
"phone": 07000000001,
"createdAt": "2021-07-20 10:28:43",
"updatedAt": "2021-07-20 10:28:43"
}
}
}Resend Webhook
POST
{{env_url}}/nucleus/tnx/webhook?reference={{tx_ref}}
This endpoint allows you to resend webhooks from failed sending queues to your server.
You’d need to pass your merchant public key in the request header (x-auth-token). This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
Headers
Name
Value
Content-Type
application/json
x-auth-token
merchant public key
Authorization
Bearer {{token}}
Query Params
"tx_ref": the reference used when initiating the transactionResponse
{
"message": "webhook sent for reference {{tx_ref}}",
"error": null,
"data": null
}Last updated
