Create Order Before Payment
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/order \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "test@mvaa.com",
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"paymentReference": "2PPTG108Q13432E29P23R5L6W93I9",
"fullName": "",
"orderType": "BULK_BULK",
"mobileNumber": "",
"callbackUrl": "http://mvaa.ebs-rcm.com/payment",
"country": "NG",
"currency": "NGN",
"amount": "250.00",
"orders": [
{
"orderId": "1235567-113227878-64332q",
"currency": "NGN",
"amount": "125.00",
"productId": "0008162",
"productDescription": "FRSC PLATE NUMBER"
},
{
"orderId": "2211567-2230578-754332",
"currency": "NGN",
"amount": "125.00",
"productId": "4030018",
"productDescription": "WEIGHING AND ADMIN CHARGES"
}
]
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/order"
payload = {
"email": "test@mvaa.com",
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"paymentReference": "2PPTG108Q13432E29P23R5L6W93I9",
"fullName": "",
"orderType": "BULK_BULK",
"mobileNumber": "",
"callbackUrl": "http://mvaa.ebs-rcm.com/payment",
"country": "NG",
"currency": "NGN",
"amount": "250.00",
"orders": [
{
"orderId": "1235567-113227878-64332q",
"currency": "NGN",
"amount": "125.00",
"productId": "0008162",
"productDescription": "FRSC PLATE NUMBER"
},
{
"orderId": "2211567-2230578-754332",
"currency": "NGN",
"amount": "125.00",
"productId": "4030018",
"productDescription": "WEIGHING AND ADMIN CHARGES"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'test@mvaa.com',
publicKey: 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
paymentReference: '2PPTG108Q13432E29P23R5L6W93I9',
fullName: '',
orderType: 'BULK_BULK',
mobileNumber: '',
callbackUrl: 'http://mvaa.ebs-rcm.com/payment',
country: 'NG',
currency: 'NGN',
amount: '250.00',
orders: [
{
orderId: '1235567-113227878-64332q',
currency: 'NGN',
amount: '125.00',
productId: '0008162',
productDescription: 'FRSC PLATE NUMBER'
},
{
orderId: '2211567-2230578-754332',
currency: 'NGN',
amount: '125.00',
productId: '4030018',
productDescription: 'WEIGHING AND ADMIN CHARGES'
}
]
})
};
fetch('https://seerbitapi.com/api/v2/payments/order', 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/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'test@mvaa.com',
'publicKey' => 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
'paymentReference' => '2PPTG108Q13432E29P23R5L6W93I9',
'fullName' => '',
'orderType' => 'BULK_BULK',
'mobileNumber' => '',
'callbackUrl' => 'http://mvaa.ebs-rcm.com/payment',
'country' => 'NG',
'currency' => 'NGN',
'amount' => '250.00',
'orders' => [
[
'orderId' => '1235567-113227878-64332q',
'currency' => 'NGN',
'amount' => '125.00',
'productId' => '0008162',
'productDescription' => 'FRSC PLATE NUMBER'
],
[
'orderId' => '2211567-2230578-754332',
'currency' => 'NGN',
'amount' => '125.00',
'productId' => '4030018',
'productDescription' => 'WEIGHING AND ADMIN CHARGES'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://seerbitapi.com/api/v2/payments/order"
payload := strings.NewReader("{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://seerbitapi.com/api/v2/payments/order")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"amount": 250,
"paymentReference": "2PPTG108QL13432E29P23R5L6W93I9",
"paymentStatus": "08",
"redirectLink": "https://checkout.seerbitapi.com/?mid=SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u&paymentReference=2PPTG108QL13432E29P23R5L6W93I9"
},
"message": "Successful"
}
}
ORDER CHECKOUT
Create Order Before Payment
Create an order before payment
POST
/
payments
/
order
Create Order Before Payment
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/order \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "test@mvaa.com",
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"paymentReference": "2PPTG108Q13432E29P23R5L6W93I9",
"fullName": "",
"orderType": "BULK_BULK",
"mobileNumber": "",
"callbackUrl": "http://mvaa.ebs-rcm.com/payment",
"country": "NG",
"currency": "NGN",
"amount": "250.00",
"orders": [
{
"orderId": "1235567-113227878-64332q",
"currency": "NGN",
"amount": "125.00",
"productId": "0008162",
"productDescription": "FRSC PLATE NUMBER"
},
{
"orderId": "2211567-2230578-754332",
"currency": "NGN",
"amount": "125.00",
"productId": "4030018",
"productDescription": "WEIGHING AND ADMIN CHARGES"
}
]
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/order"
payload = {
"email": "test@mvaa.com",
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"paymentReference": "2PPTG108Q13432E29P23R5L6W93I9",
"fullName": "",
"orderType": "BULK_BULK",
"mobileNumber": "",
"callbackUrl": "http://mvaa.ebs-rcm.com/payment",
"country": "NG",
"currency": "NGN",
"amount": "250.00",
"orders": [
{
"orderId": "1235567-113227878-64332q",
"currency": "NGN",
"amount": "125.00",
"productId": "0008162",
"productDescription": "FRSC PLATE NUMBER"
},
{
"orderId": "2211567-2230578-754332",
"currency": "NGN",
"amount": "125.00",
"productId": "4030018",
"productDescription": "WEIGHING AND ADMIN CHARGES"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'test@mvaa.com',
publicKey: 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
paymentReference: '2PPTG108Q13432E29P23R5L6W93I9',
fullName: '',
orderType: 'BULK_BULK',
mobileNumber: '',
callbackUrl: 'http://mvaa.ebs-rcm.com/payment',
country: 'NG',
currency: 'NGN',
amount: '250.00',
orders: [
{
orderId: '1235567-113227878-64332q',
currency: 'NGN',
amount: '125.00',
productId: '0008162',
productDescription: 'FRSC PLATE NUMBER'
},
{
orderId: '2211567-2230578-754332',
currency: 'NGN',
amount: '125.00',
productId: '4030018',
productDescription: 'WEIGHING AND ADMIN CHARGES'
}
]
})
};
fetch('https://seerbitapi.com/api/v2/payments/order', 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/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'test@mvaa.com',
'publicKey' => 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
'paymentReference' => '2PPTG108Q13432E29P23R5L6W93I9',
'fullName' => '',
'orderType' => 'BULK_BULK',
'mobileNumber' => '',
'callbackUrl' => 'http://mvaa.ebs-rcm.com/payment',
'country' => 'NG',
'currency' => 'NGN',
'amount' => '250.00',
'orders' => [
[
'orderId' => '1235567-113227878-64332q',
'currency' => 'NGN',
'amount' => '125.00',
'productId' => '0008162',
'productDescription' => 'FRSC PLATE NUMBER'
],
[
'orderId' => '2211567-2230578-754332',
'currency' => 'NGN',
'amount' => '125.00',
'productId' => '4030018',
'productDescription' => 'WEIGHING AND ADMIN CHARGES'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://seerbitapi.com/api/v2/payments/order"
payload := strings.NewReader("{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://seerbitapi.com/api/v2/payments/order")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"test@mvaa.com\",\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"paymentReference\": \"2PPTG108Q13432E29P23R5L6W93I9\",\n \"fullName\": \"\",\n \"orderType\": \"BULK_BULK\",\n \"mobileNumber\": \"\",\n \"callbackUrl\": \"http://mvaa.ebs-rcm.com/payment\",\n \"country\": \"NG\",\n \"currency\": \"NGN\",\n \"amount\": \"250.00\",\n \"orders\": [\n {\n \"orderId\": \"1235567-113227878-64332q\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"0008162\",\n \"productDescription\": \"FRSC PLATE NUMBER\"\n },\n {\n \"orderId\": \"2211567-2230578-754332\",\n \"currency\": \"NGN\",\n \"amount\": \"125.00\",\n \"productId\": \"4030018\",\n \"productDescription\": \"WEIGHING AND ADMIN CHARGES\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"amount": 250,
"paymentReference": "2PPTG108QL13432E29P23R5L6W93I9",
"paymentStatus": "08",
"redirectLink": "https://checkout.seerbitapi.com/?mid=SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u&paymentReference=2PPTG108QL13432E29P23R5L6W93I9"
},
"message": "Successful"
}
}
Authorizations
Body
application/json
The body is of type object.
Response
The response is of type object.