Check Status
curl --request GET \
--url https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4 \
--header 'Authorization: <api-key>'import requests
url = "https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4', 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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "S20",
"payments": {
"redirectLink": "http://checkout-seerbit.surge.sh",
"amount": 100,
"internationalChargedAmount": 155.2,
"mobilenumber": 8033456599,
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"paymentType": "CARD",
"productId": "Foods",
"productDescription": "RASPBERRY",
"maskedPan": "5123-45xx-xxxx-0008",
"gatewayMessage": "Transaction is pending",
"gatewayCode": "S20",
"gatewayref": "F002672971602775508582",
"mode": "test",
"redirecturl": "http://checkout-seerbit.surge.sh",
"channelType": "Mastercard",
"sourceIP": "127.0.0.1:3456",
"deviceType": "Apple Laptop",
"cardBin": "512345",
"lastFourDigits": "0008",
"type": "3DSECURE",
"country": "NG",
"currency": "NGN",
"paymentReference": "SSQ22POtAQMVC85EQWB8",
"processorCode": "S20",
"processorMessage": "Transaction is pending",
"reason": "Transaction is pending"
},
"customers": {
"customerId": "SBTfd3024f89b67e2f8a121",
"customerName": "Kola Victor",
"customerMobile": 8033456599,
"customerEmail": "kolawole@gmail.com"
},
"message": "Transaction is pending"
}
}CARD
Check Status
This Operation allows you to check the status of a transaction via the status check api. This is done by making a Get request to the endpoint below with your payment reference.
GET
/
payments
/
query
/
STG10948E242065R569A22tAQM85EQW4
Check Status
curl --request GET \
--url https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4 \
--header 'Authorization: <api-key>'import requests
url = "https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4', 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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/query/STG10948E242065R569A22tAQM85EQW4")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "S20",
"payments": {
"redirectLink": "http://checkout-seerbit.surge.sh",
"amount": 100,
"internationalChargedAmount": 155.2,
"mobilenumber": 8033456599,
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"paymentType": "CARD",
"productId": "Foods",
"productDescription": "RASPBERRY",
"maskedPan": "5123-45xx-xxxx-0008",
"gatewayMessage": "Transaction is pending",
"gatewayCode": "S20",
"gatewayref": "F002672971602775508582",
"mode": "test",
"redirecturl": "http://checkout-seerbit.surge.sh",
"channelType": "Mastercard",
"sourceIP": "127.0.0.1:3456",
"deviceType": "Apple Laptop",
"cardBin": "512345",
"lastFourDigits": "0008",
"type": "3DSECURE",
"country": "NG",
"currency": "NGN",
"paymentReference": "SSQ22POtAQMVC85EQWB8",
"processorCode": "S20",
"processorMessage": "Transaction is pending",
"reason": "Transaction is pending"
},
"customers": {
"customerId": "SBTfd3024f89b67e2f8a121",
"customerName": "Kola Victor",
"customerMobile": 8033456599,
"customerEmail": "kolawole@gmail.com"
},
"message": "Transaction is pending"
}
}Authorizations
Response
The response is of type CheckStatusResponse · object.