Re-Send Webhook API Integration
Webhook API Integration
This section contains your RESTful API to resend Webhook Notification.
Re-Send Webhook API Integration
Webhook API Integration
This section contains your RESTful API to resend Webhook Notification.
The VTU Africa API uses API Key for Authentication.
Please use your APIKEY for authentication
Base URL: https://vtuafrica.com.ng/portal/api/merchant-verify/
Parameters: as specified in the parameters below:
PARAMETERS | Required/Optional | TYPE | DESCRIPTION |
apikey | R | String | The reseller gateway API key created at vtuafrica.com.ng |
serviceName | R | String | This is the Name of the service you are performing. In this case it is: Webhook |
ref | R | String | This is the unique ReferenceID of the transaction you want to resend |
webhookURL | O | URL | This is a webhook URL where the notification will be resent. If not provided, the webhook in your profile will be used. Please include http:// or https:// |
SAMPLE CODE
$host ="https://vtuafrica.com.ng/portal/api/merchant-verify/?apikey=1234&serviceName=Webhook&ref=123456789&webhookURL=https://testing.com/webhook/"; //Initialize cURL. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $data = curl_exec($ch); //Close the cURL handle. curl_close($ch); $response = json_decode($data);
EXPECTED RESPONSE
{"code":101, "description":{"Status":"Completed","ref":"884666332234","service":"Airtime VTU","network":"mtn","product":"MTN Airtime VTU", "amount":"1000","debit":"980","credit":"0","Charge":"0","comi":"20","channel":"API", "balance_Before":"1000","balance_After":"20","current_Balance":"20","dateTime":"21 April 2025, 07:31 PM", "message":"Recharged Succesfully","webhook_Status":"Completed","response":"Webhook Data Sent Successfully to: ..." } }
EXPECTED WEBHOOK PAYLOAD
{"ref":"884666332234","service":"Airtime VTU","network":"mtn","product":"MTN Airtime VTU", "status":"Completed","amount":"1000","debit":"980","credit":"0","Charge":"0","comi":"20", "channel":"API","balance_Before":"1000","balance_After":"20","current_Balance":"20", "dateTime":"21 April 2025, 07:31 PM","apikey":"Your APIkey in md5() Format","message":"Recharged Succesfully" }}