Query Vending Transaction
curl --request GET \
--url https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference} \
--header 'secretKey: <api-key>'import requests
url = "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}"
headers = {"secretKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {secretKey: '<api-key>'}};
fetch('https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"secretKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("secretKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}")
.header("secretKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["secretKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "00",
"message": "Transaction found",
"data": {
"transactionRef": "uat_tx_1790769719777",
"token": "4819-2049-1829-4019-3382",
"units": "34.5 kWh",
"amount": 1000,
"status": "SUCCESS",
"paidAt": "2026-10-01T10:15:00Z"
}
}Remita VAS Vending
Query Vending Transaction
Requery the status, token, and units of a vending transaction by merchant client reference.
GET
/
vending
/
query-transaction
/
{reference}
Query Vending Transaction
curl --request GET \
--url https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference} \
--header 'secretKey: <api-key>'import requests
url = "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}"
headers = {"secretKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {secretKey: '<api-key>'}};
fetch('https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"secretKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("secretKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}")
.header("secretKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-demo.systemspecsng.com/services/connect-gateway/api/v1/vending/query-transaction/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["secretKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "00",
"message": "Transaction found",
"data": {
"transactionRef": "uat_tx_1790769719777",
"token": "4819-2049-1829-4019-3382",
"units": "34.5 kWh",
"amount": 1000,
"status": "SUCCESS",
"paidAt": "2026-10-01T10:15:00Z"
}
}Requery any transaction to confirm final settlement status or retrieve the generated token if a network interruption occurred.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
reference | string | Yes | The unique clientReference supplied during transaction execution. |
Response
{
"message": "successful",
"status": "00",
"data": {
"clientReference": "uat_tx_1790769719777",
"paymentIdentifier": "PID_99018274619",
"transactionStatus": "SUCCESS",
"token": "4910-2819-3810-4819-1029",
"unit": "38.5 kWh",
"amount": 1000
}
}