Select a Flight
curl --request POST \
--url https://api.payvessel.com/pms/api/external/request/flights/select/ \
--header 'Content-Type: <content-type>' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-secret>' \
--data '
{
"flightKey": "a1b2c3d4e5f6..."
}
'import requests
url = "https://api.payvessel.com/pms/api/external/request/flights/select/"
payload = { "flightKey": "a1b2c3d4e5f6..." }
headers = {
"api-key": "<api-key>",
"api-secret": "<api-secret>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-secret>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({flightKey: 'a1b2c3d4e5f6...'})
};
fetch('https://api.payvessel.com/pms/api/external/request/flights/select/', 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://api.payvessel.com/pms/api/external/request/flights/select/",
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([
'flightKey' => 'a1b2c3d4e5f6...'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"api-key: <api-key>",
"api-secret: <api-secret>"
],
]);
$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://api.payvessel.com/pms/api/external/request/flights/select/"
payload := strings.NewReader("{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<api-secret>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.payvessel.com/pms/api/external/request/flights/select/")
.header("api-key", "<api-key>")
.header("api-secret", "<api-secret>")
.header("Content-Type", "<content-type>")
.body("{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/pms/api/external/request/flights/select/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-secret>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Flight selected successfully",
"data": {
"flightKey": "a1b2c3d4e5f6...",
"airline": "Arik Air",
"flightNumber": "W3 204",
"origin": "LOS",
"destination": "ABV",
"departureTime": "2026-08-20T06:30:00",
"arrivalTime": "2026-08-20T07:45:00",
"cabinClass": "Economy",
"price": {
"amount": 45000,
"currency": "NGN"
},
"fareRules": "Non-refundable. Changes allowed with fee."
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Flight Booking
Select a Flight
Select and reprice a specific flight option before booking
POST
/
pms
/
api
/
external
/
request
/
flights
/
select
/
Select a Flight
curl --request POST \
--url https://api.payvessel.com/pms/api/external/request/flights/select/ \
--header 'Content-Type: <content-type>' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-secret>' \
--data '
{
"flightKey": "a1b2c3d4e5f6..."
}
'import requests
url = "https://api.payvessel.com/pms/api/external/request/flights/select/"
payload = { "flightKey": "a1b2c3d4e5f6..." }
headers = {
"api-key": "<api-key>",
"api-secret": "<api-secret>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-secret>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({flightKey: 'a1b2c3d4e5f6...'})
};
fetch('https://api.payvessel.com/pms/api/external/request/flights/select/', 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://api.payvessel.com/pms/api/external/request/flights/select/",
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([
'flightKey' => 'a1b2c3d4e5f6...'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"api-key: <api-key>",
"api-secret: <api-secret>"
],
]);
$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://api.payvessel.com/pms/api/external/request/flights/select/"
payload := strings.NewReader("{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<api-secret>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.payvessel.com/pms/api/external/request/flights/select/")
.header("api-key", "<api-key>")
.header("api-secret", "<api-secret>")
.header("Content-Type", "<content-type>")
.body("{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/pms/api/external/request/flights/select/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-secret>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"flightKey\": \"a1b2c3d4e5f6...\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Flight selected successfully",
"data": {
"flightKey": "a1b2c3d4e5f6...",
"airline": "Arik Air",
"flightNumber": "W3 204",
"origin": "LOS",
"destination": "ABV",
"departureTime": "2026-08-20T06:30:00",
"arrivalTime": "2026-08-20T07:45:00",
"cabinClass": "Economy",
"price": {
"amount": 45000,
"currency": "NGN"
},
"fareRules": "Non-refundable. Changes allowed with fee."
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Headers
Your PayVessel public API key
Your PayVessel API secret
Available options:
application/json Body
application/json
The flight key from Search Flights response
⌘I
