AirTempBooking

Post   https://travel.bospay.co.in/api/V1/Air/Travel/AirTempBooking


The AirTempBooking API is used to create a temporary booking (or hold) for a flight before final payment and ticket issuance. It locks the selected flight(s) and passenger information, allowing the user to proceed with payment or review.

Note: Use the Flight_Key from the Air_Reprice API method response.

Body Parameters
{
    "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 Parameters
Name Type Description
customer_Mobile String This requires the agency's registered mobile number and is mandatory.
passenger_Mobile String This requires the passenger mobile number.
whatsAPP_Mobile String This requires the passenger whatsapp number.
Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

responsecode integer

status boolean

message string


Did this page help you?     Yes    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

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;
                                

RESPONSE

200

401

-Result

Example

{
"booking_RefNo": "FLYB6YMAD",
"response_Header": {
   "error_Code": "0000",
   "error_Desc": "SUCCESS",
   "error_InnerException": "",
   "request_Id": "REQ123456",
   "status_Id": "11"
}, 
"statuss": "FALSE",
"message": "",
"value": ""
}
                                
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}