Query Order Status
curl --request POST \
--url https://checkout-api-service.epayclub.com/checkout/order/status \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": "<string>"
}
'import requests
url = "https://checkout-api-service.epayclub.com/checkout/order/status"
payload = { "data": "<string>" }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<string>'})
};
fetch('https://checkout-api-service.epayclub.com/checkout/order/status', 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://checkout-api-service.epayclub.com/checkout/order/status",
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([
'data' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://checkout-api-service.epayclub.com/checkout/order/status"
payload := strings.NewReader("{\n \"data\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<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://checkout-api-service.epayclub.com/checkout/order/status")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/order/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"is_final_status": true,
"requery_needed": false,
"requery_type": null,
"data": {
"payment_reference": "PARORD-E469DB31-3F33-4FD2-8365-73B9F1E08709",
"order_reference": "ORD120993456ffn7777890",
"product_id": 1,
"subsidiary_id": 1,
"wallet_id": 1,
"customer_id": 1,
"total_charged_amount": 5800,
"payment_status": 4,
"currency_id": 1,
"fee": 800,
"subsidiary_fee": null,
"customer_fee": null,
"payment_type": "1",
"payment_response_code": "04",
"payment_response_message": "Account number has expired",
"provider_response_date": null,
"date_payment_confirmed": "2021-05-09T12:05:00.413",
"narration": "Test Payment",
"remarks": "Account number has expired",
"parent_transaction_id": null,
"id": 163,
"created_by": 1,
"updated_by": -1,
"deleted_by": null,
"date_created": "2021-05-09T11:17:38.177",
"date_updated": "2021-05-09T16:23:12.953",
"date_deleted": null
},
"status": "success",
"status_code": "00",
"message": "Order Status fetched successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
Orders
Query Order Status
Confirm the status of an existing order.
POST
/
checkout
/
order
/
status
Query Order Status
curl --request POST \
--url https://checkout-api-service.epayclub.com/checkout/order/status \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": "<string>"
}
'import requests
url = "https://checkout-api-service.epayclub.com/checkout/order/status"
payload = { "data": "<string>" }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<string>'})
};
fetch('https://checkout-api-service.epayclub.com/checkout/order/status', 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://checkout-api-service.epayclub.com/checkout/order/status",
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([
'data' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://checkout-api-service.epayclub.com/checkout/order/status"
payload := strings.NewReader("{\n \"data\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<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://checkout-api-service.epayclub.com/checkout/order/status")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/order/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"is_final_status": true,
"requery_needed": false,
"requery_type": null,
"data": {
"payment_reference": "PARORD-E469DB31-3F33-4FD2-8365-73B9F1E08709",
"order_reference": "ORD120993456ffn7777890",
"product_id": 1,
"subsidiary_id": 1,
"wallet_id": 1,
"customer_id": 1,
"total_charged_amount": 5800,
"payment_status": 4,
"currency_id": 1,
"fee": 800,
"subsidiary_fee": null,
"customer_fee": null,
"payment_type": "1",
"payment_response_code": "04",
"payment_response_message": "Account number has expired",
"provider_response_date": null,
"date_payment_confirmed": "2021-05-09T12:05:00.413",
"narration": "Test Payment",
"remarks": "Account number has expired",
"parent_transaction_id": null,
"id": 163,
"created_by": 1,
"updated_by": -1,
"deleted_by": null,
"date_created": "2021-05-09T11:17:38.177",
"date_updated": "2021-05-09T16:23:12.953",
"date_deleted": null
},
"status": "success",
"status_code": "00",
"message": "Order Status fetched successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
This endpoint accepts only encrypted requests. Learn more about our encryption here.
{
"is_final_status": true,
"requery_needed": false,
"requery_type": null,
"data": {
"payment_reference": "PARORD-E469DB31-3F33-4FD2-8365-73B9F1E08709",
"order_reference": "ORD120993456ffn7777890",
"product_id": 1,
"subsidiary_id": 1,
"wallet_id": 1,
"customer_id": 1,
"total_charged_amount": 5800,
"payment_status": 4,
"currency_id": 1,
"fee": 800,
"subsidiary_fee": null,
"customer_fee": null,
"payment_type": "1",
"payment_response_code": "04",
"payment_response_message": "Account number has expired",
"provider_response_date": null,
"date_payment_confirmed": "2021-05-09T12:05:00.413",
"narration": "Test Payment",
"remarks": "Account number has expired",
"parent_transaction_id": null,
"id": 163,
"created_by": 1,
"updated_by": -1,
"deleted_by": null,
"date_created": "2021-05-09T11:17:38.177",
"date_updated": "2021-05-09T16:23:12.953",
"date_deleted": null
},
"status": "success",
"status_code": "00",
"message": "Order Status fetched successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
⌘I

