Get Flight Booking
curl --request GET \
--url https://bilalsadasub.com/api/flight/booking/{reference} \
--header 'Authorization: <api-key>'import requests
url = "https://bilalsadasub.com/api/flight/booking/{reference}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://bilalsadasub.com/api/flight/booking/{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://bilalsadasub.com/api/flight/booking/{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 => [
"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://bilalsadasub.com/api/flight/booking/{reference}"
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://bilalsadasub.com/api/flight/booking/{reference}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://bilalsadasub.com/api/flight/booking/{reference}")
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": {
"reference": "FL_1a2b3c",
"pnr": "A1B2C3",
"status": "ticketed",
"trip_type": "oneway",
"origin": "LOS",
"destination": "ABV",
"departure_date": "2026-12-01",
"return_date": null,
"cabin": "economy",
"passengers": [
{
"title": "mr",
"first_name": "John",
"last_name": "Doe"
}
],
"itinerary": {
"segments": [
{
"from": "LOS",
"to": "ABV",
"depart": "2026-12-01T08:00",
"airline": "P4"
}
]
},
"tickets": [
{
"number": "0572101234567",
"passenger": "John Doe"
}
],
"amount": 85500,
"currency": "NGN",
"addons_fee": 200,
"whatsapp_number": "2348012345678",
"reminder_call": false,
"email_delivery": "account",
"expires_at": "2026-10-22T22:00:00+00:00",
"my_trans_id": "MY-1",
"created_at": "2026-10-22T21:00:00+00:00"
}
}Flights
Get Flight Booking
Fetches a single flight booking by its reference, scoped to your account — including PNR, full itinerary and issued ticket numbers. Returns 404 if the reference isn’t on your account.
GET
/
api
/
flight
/
booking
/
{reference}
Get Flight Booking
curl --request GET \
--url https://bilalsadasub.com/api/flight/booking/{reference} \
--header 'Authorization: <api-key>'import requests
url = "https://bilalsadasub.com/api/flight/booking/{reference}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://bilalsadasub.com/api/flight/booking/{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://bilalsadasub.com/api/flight/booking/{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 => [
"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://bilalsadasub.com/api/flight/booking/{reference}"
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://bilalsadasub.com/api/flight/booking/{reference}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://bilalsadasub.com/api/flight/booking/{reference}")
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": {
"reference": "FL_1a2b3c",
"pnr": "A1B2C3",
"status": "ticketed",
"trip_type": "oneway",
"origin": "LOS",
"destination": "ABV",
"departure_date": "2026-12-01",
"return_date": null,
"cabin": "economy",
"passengers": [
{
"title": "mr",
"first_name": "John",
"last_name": "Doe"
}
],
"itinerary": {
"segments": [
{
"from": "LOS",
"to": "ABV",
"depart": "2026-12-01T08:00",
"airline": "P4"
}
]
},
"tickets": [
{
"number": "0572101234567",
"passenger": "John Doe"
}
],
"amount": 85500,
"currency": "NGN",
"addons_fee": 200,
"whatsapp_number": "2348012345678",
"reminder_call": false,
"email_delivery": "account",
"expires_at": "2026-10-22T22:00:00+00:00",
"my_trans_id": "MY-1",
"created_at": "2026-10-22T21:00:00+00:00"
}
}Authorizations
Send your API key as Token <your_api_key>.
Use your live key for real transactions, or your sandbox key (sk_test_…) to test — sandbox calls return a realistic simulated result and never touch your wallet. Add "sandbox_status": "fail" to any sandbox request to simulate a failure.
