Welcome to the Transaction Query API Integration Documentation page. This guide will help you integrate our Transaction Query API and see details of transactions you have performed via API or directly on our platform.
curl -X GET "https://vtunaija.com.ng/api/transactionquery/index.php?request-id=4904949180089" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json"
This is an example of the response returned for a successful Transaction Query.
{
"status": "true",
"Status": "completed",
"message": "Transaction retrieved successfully.",
"data": {
"transaction_id": "209129180089",
"transaction_name": "DATA",
"transaction_type": "DataShare3",
"size": "2GB Datashare",
"number": "07011123485",
"network": "MTN",
"amount": "970.00",
"usercommission": "0.00",
"status": "successful",
"api_response": "Y'ello! You have gifted 2GB to 2347011123485...",
"description": "Successful Data Purchase for 07011123485",
"date": "2025-11-20 09:16:36"
}
In a successful Transaction Query, the main response contains status, Status, and message.
The detailed transaction information is returned inside the data object.
true for success).completed).data:DATA).DataShare3).2GB Datashare).DSTV).successful or success or processing or pending or failed or fail ).This example illustrates the exact response returned when a request ID is not found in our database.
{
"status": "fail",
"Status": "failed",
"message": "No transaction was found with the specified ID"
}
This example shows the response returned for a failed Transaction Query, which may occur due to factors such as using a non-GET request method, an invalid API key for the transaction query, or similar issues.
{
"status": "fail",
"Status": "failed",
"message": "Invalid request method. Only GET requests are allowed."
}
request-id: This is the unique identifier of the transaction you want to query. It represents the request-id you included in the purchase request to Vtunaija when you wanted to purchase that specific transaction via API. This parameter is required and must be included in the URL as a query string (e.g., ?request-id=4904949180089). Remember to replace "4904949180089" with the actual Request-ID that you sent in the purchase request of the specific transaction you wish to query.
Authorization Header: You must include your API key in the request header as Authorization: Token YOUR_API_KEY. Without a valid API key, the request will fail with a 401 Unauthorized response.
Content-Type Header: Always set Content-Type: application/json in your request headers.
request-id is required as a GET parameter. All other transaction details are returned in the response JSON.