VTU AFRICAVTUAfrica.com.ng

  • MAIN NAVIGATION
  • Introduction
  • Discounts & Prices
  • Balance Check
  • Airtime
    • Airtime VTU
    • Airtime Share
  • Data Bundle
    • Data (All Networks)
    • Smile Data
  • Cable TV Subcription
    • Cable TV Verification
    • Cable TV Subscription
  • Electricity bills
    • Meter Verification
    • Electricity Bills
  • Examination PINS
  • Bank Transfer
    • Verify Account Number
    • Send Money
  • Recharge Card PINS
  • Bet Wallet funding
  • Airtime2Cash Conversion
  • Bulk SMS
  • Transaction Status
    • Transaction Query
    • Resend Webhook
  • How To Videos
  • Back To Home Page
  • Home SOFTWARE RESELLER
  • My Account

    • Login
    • Register

Re-Send Webhook API Integration

Webhook API Integration

This section contains your RESTful API to resend Webhook Notification.

 

Authentication

The VTU Africa API uses API Key for Authentication.

Please use your APIKEY for authentication



You can send or Re-Send the transaction details to a specified webhookURL or to the webhookURL in your VTU Africa profile.

Re-Send Webhook Notification.

Webhook Notification can be sent or resent with the endpoint below:

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":"1 August 2025, 02:07 AM",
"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":"1 August 2025, 02:07 AM","apikey":"Your APIkey in md5() Format","message":"Recharged Succesfully" 
   }} 





OTHER SERVICES


CopyRight © 2016 - VTUAfrica.com.ng. All Rights Reserved
Site Designed by: EMMALEX ICT SOLUTIONS | Powered by RESELLER HOSTING