Get an Order with Payment Reference
curl --request GET \
--url https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447 \
--header 'Authorization: <api-key>'import requests
url = "https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447"
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447', 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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447",
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447"
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447")
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": "00",
"message": "Successful",
"products": [
{
"amount": 100,
"currency": "NGN",
"productId": 1089162,
"productDescription": "FODD ITEM UPDATE",
"paymentReference": "0w0eimkizc41602513327447",
"orderId": "wil0f47b62",
"createdAt": "2020-10-12T15:38:28.000Z",
"updatedAt": "2020-10-17T21:56:54.000Z"
},
{
"amount": 300,
"currency": "NGN",
"productId": 1089162,
"productDescription": "FODD ITEM UPDATE",
"paymentReference": "0w0eimkizc41602513327447",
"orderId": "wil0f47b62",
"createdAt": "2020-10-12T15:38:29.000Z",
"updatedAt": "2020-10-17T21:56:54.000Z"
}
]
}
}ORDER CHECKOUT
Get an Order with Payment Reference
Get order details with payment reference
GET
/
products
/
orders
/
publicKey
/
SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u
/
paymentReference
/
0w0eimkizc41602513327447
Get an Order with Payment Reference
curl --request GET \
--url https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447 \
--header 'Authorization: <api-key>'import requests
url = "https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447"
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447', 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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447",
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447"
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/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447")
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": "00",
"message": "Successful",
"products": [
{
"amount": 100,
"currency": "NGN",
"productId": 1089162,
"productDescription": "FODD ITEM UPDATE",
"paymentReference": "0w0eimkizc41602513327447",
"orderId": "wil0f47b62",
"createdAt": "2020-10-12T15:38:28.000Z",
"updatedAt": "2020-10-17T21:56:54.000Z"
},
{
"amount": 300,
"currency": "NGN",
"productId": 1089162,
"productDescription": "FODD ITEM UPDATE",
"paymentReference": "0w0eimkizc41602513327447",
"orderId": "wil0f47b62",
"createdAt": "2020-10-12T15:38:29.000Z",
"updatedAt": "2020-10-17T21:56:54.000Z"
}
]
}
}Authorizations
Response
The response is of type GetOrderByPublicKeyResponse · object.