Transaction Query API Integration
Transaction Query API Integration
This section contains your RESTful API to Query any Transaction.
Transaction Query API Integration
Transaction Query API Integration
This section contains your RESTful API to Query any Transaction.
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: Transaction |
ref | R | String | This is the unique ReferenceID of the transaction you want to query. |
SAMPLE CODE
$host ="https://vtuafrica.com.ng/portal/api/merchant-verify/?apikey=1234&serviceName=Transaction&ref=123456789"; //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:11 AM", "message":"Recharged Succesfully" } }