curl --location --request POST 'https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking' \
--header 'Content-Type: application/json' \
--data '{
"customer_Mobile": "9197XXXXXX",
"passenger_Mobile": "9197XXXXXX",
"whatsAPP_Mobile": null,
"passenger_Email": "demo@example.com",
"paX_Details": [
{
"pax_Id": 0,
"pax_type": 0,
"title": "Mrs",
"first_Name": "Testing",
"last_Name": "Expert",
"gender": 0,
"age": null,
"dob": "null,
"passport_Number": null,
"passport_Issuing_Country": null,
"passport_Expiry": null,
"nationality": null,
"frequentFlyerDetails": null
}
],
"gst": false,
"gsT_Number": "",
"gsT_HolderName": "GST Holder Name",
"gsT_Address": "GST Address",
"bookingFlightDetails": [
{
"search_Key": "XX765857XXXXXXX",
"flight_Key": "XX87823687657XX",
"bookingSSRDetails": []
}
],
"costCenterId": 0,
"projectId": 0,
"bookingRemark": "BOM-MAA 26-June-2025 Test API",
"corporateStatus": 0,
"corporatePaymentMode": 0,
"missedSavingReason": null,
"corpTripType": null,
"corpTripSubType": null,
"tripRequestId": null,
"bookingAlertIds": null,
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}'
import requests
import json
url = 'https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking'
payload = "{
"customer_Mobile": "9197XXXXXX",
"passenger_Mobile": "9197XXXXXX",
"whatsAPP_Mobile": null,
"passenger_Email": "demo@example.com",
"paX_Details": [
{
"pax_Id": 0,
"pax_type": 0,
"title": "Mrs",
"first_Name": "Testing",
"last_Name": "Expert",
"gender": 0,
"age": null,
"dob": "null,
"passport_Number": null,
"passport_Issuing_Country": null,
"passport_Expiry": null,
"nationality": null,
"frequentFlyerDetails": null
}
],
"gst": false,
"gsT_Number": "",
"gsT_HolderName": "GST Holder Name",
"gsT_Address": "GST Address",
"bookingFlightDetails": [
{
"search_Key": "XX765857XXXXXXX",
"flight_Key": "XX87823687657XX",
"bookingSSRDetails": []
}
],
"costCenterId": 0,
"projectId": 0,
"bookingRemark": "BOM-MAA 26-June-2025 Test API",
"corporateStatus": 0,
"corporatePaymentMode": 0,
"missedSavingReason": null,
"corpTripType": null,
"corpTripSubType": null,
"tripRequestId": null,
"bookingAlertIds": null,
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}"
headers = {
"Content-type" : "application/json"
}
response = requests.request("POST", url, headers=headers, data=payload)
print (response.text)
var requests = require("request");
var options = {
"method" : "POST",
"url" : 'https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking',
"headers" : {
"Content-Type" : 'application/json'
},
body: '{
"customer_Mobile": "9197XXXXXX",
"passenger_Mobile": "9197XXXXXX",
"whatsAPP_Mobile": null,
"passenger_Email": "demo@example.com",
"paX_Details": [
{
"pax_Id": 0,
"pax_type": 0,
"title": "Mrs",
"first_Name": "Testing",
"last_Name": "Expert",
"gender": 0,
"age": null,
"dob": "null,
"passport_Number": null,
"passport_Issuing_Country": null,
"passport_Expiry": null,
"nationality": null,
"frequentFlyerDetails": null
}
],
"gst": false,
"gsT_Number": "",
"gsT_HolderName": "GST Holder Name",
"gsT_Address": "GST Address",
"bookingFlightDetails": [
{
"search_Key": "XX765857XXXXXXX",
"flight_Key": "XX87823687657XX",
"bookingSSRDetails": []
}
],
"costCenterId": 0,
"projectId": 0,
"bookingRemark": "BOM-MAA 26-June-2025 Test API",
"corporateStatus": 0,
"corporatePaymentMode": 0,
"missedSavingReason": null,
"corpTripType": null,
"corpTripSubType": null,
"tripRequestId": null,
"bookingAlertIds": null,
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}'
};
request(options, function(error, response){
if(error) throw new Error(error);
console.log(response.body);
});
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,'https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking')
var content = new StringContent(
"{
"customer_Mobile": "9197XXXXXX",
"passenger_Mobile": "9197XXXXXX",
"whatsAPP_Mobile": null,
"passenger_Email": "demo@example.com",
"paX_Details": [
{
"pax_Id": 0,
"pax_type": 0,
"title": "Mrs",
"first_Name": "Testing",
"last_Name": "Expert",
"gender": 0,
"age": null,
"dob": "null,
"passport_Number": null,
"passport_Issuing_Country": null,
"passport_Expiry": null,
"nationality": null,
"frequentFlyerDetails": null
}
],
"gst": false,
"gsT_Number": "",
"gsT_HolderName": "GST Holder Name",
"gsT_Address": "GST Address",
"bookingFlightDetails": [
{
"search_Key": "XX765857XXXXXXX",
"flight_Key": "XX87823687657XX",
"bookingSSRDetails": []
}
],
"costCenterId": 0,
"projectId": 0,
"bookingRemark": "BOM-MAA 26-June-2025 Test API",
"corporateStatus": 0,
"corporatePaymentMode": 0,
"missedSavingReason": null,
"corpTripType": null,
"corpTripSubType": null,
"tripRequestId": null,
"bookingAlertIds": null,
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}",
null,"application/json"
);
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"customer_Mobile": "9197XXXXXX",
"passenger_Mobile": "9197XXXXXX",
"whatsAPP_Mobile": null,
"passenger_Email": "demo@example.com",
"paX_Details": [
{
"pax_Id": 0,
"pax_type": 0,
"title": "Mrs",
"first_Name": "Testing",
"last_Name": "Expert",
"gender": 0,
"age": null,
"dob": "null,
"passport_Number": null,
"passport_Issuing_Country": null,
"passport_Expiry": null,
"nationality": null,
"frequentFlyerDetails": null
}
],
"gst": false,
"gsT_Number": "",
"gsT_HolderName": "GST Holder Name",
"gsT_Address": "GST Address",
"bookingFlightDetails": [
{
"search_Key": "XX765857XXXXXXX",
"flight_Key": "XX87823687657XX",
"bookingSSRDetails": []
}
],
"costCenterId": 0,
"projectId": 0,
"bookingRemark": "BOM-MAA 26-June-2025 Test API",
"corporateStatus": 0,
"corporatePaymentMode": 0,
"missedSavingReason": null,
"corpTripType": null,
"corpTripSubType": null,
"tripRequestId": null,
"bookingAlertIds": null,
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;