AirSearch

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


The AirSearch API is used to retrieve real-time flight search results based on user-provided travel details such as origin, destination, and travel date. The response includes detailed flight information, fare options, baggage policies, and tax breakdowns for available flights.

Body Parameters
{
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "travel_Type": 0,
    "booking_Type": 0,
    "tripInfo": [
      {
        "origin": "BOM",
        "destination": "MAA",
        "travelDate": "09/12/2025",
        "trip_Id": 0
      }
    ],
    "adult_Count": "1",
    "child_Count": "0",
    "infant_Count": "0",
    "class_Of_Travel": "0",
    "inventoryType": 0,
    "source_Type": 0,
    "srCitizen_Search": false,
    "studentFare_Search": false,
    "defenceFare_Search": false,
    "filtered_Airline": [
      {
         "airline_Code": ""
      }
    ],
   "registrationID": "AOP-554",
   "ipAddress": "27.XXX.XX.76"
}
Request Parameters
Name Type Description
request_Id String Can be used as a unique identifier assigned to each user's individual request.
imeI_Number String The IMEI number of the user's device from which the request was made.
travel_Type Int Travel Type – Possible values: 0 for Domestic, 1 for International.

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/AirSearch' \
--header 'Content-Type: application/json' \
--data  '{
  "request_Id": "REQ123456",
  "imeI_Number": "353535353535353",
  "travel_Type": 0,
  "booking_Type": 0,
  "tripInfo": [
    { 
      "origin": "BOM",
      "destination": "MAA",
      "travelDate": "09/12/2025",
      "trip_Id": 0
    } 
  ], 
  "adult_Count": "1",
  "child_Count": "0",
  "infant_Count": "0",
  "class_Of_Travel": "0",
  "inventoryType": 0,
  "source_Type": 0,
  "srCitizen_Search": false,
  "studentFare_Search": false,
  "defenceFare_Search": false,
  "filtered_Airline": [
    { 
       "airline_Code": ""
    } 
  ], 
  "registrationID": "AOP-554",
  "ipAddress": "27.XXX.XX.76"
}'
                                
import requests
import json

url = 'https://travel.bospay.co.in/api/V1/Air/Travel/AirSearch'
payload = "{
 "request_Id": "REQ123456",
 "imeI_Number": "353535353535353",
 "travel_Type": 0,
 "booking_Type": 0,
 "tripInfo": [
   { 
     "origin": "BOM",
     "destination": "MAA",
     "travelDate": "09/12/2025",
     "trip_Id": 0
   } 
 ], 
 "adult_Count": "1",
 "child_Count": "0",
 "infant_Count": "0",
 "class_Of_Travel": "0",
 "inventoryType": 0,
 "source_Type": 0,
 "srCitizen_Search": false,
 "studentFare_Search": false,
 "defenceFare_Search": false,
 "filtered_Airline": [
   { 
      "airline_Code": ""
   } 
 ], 
 "registrationID": "AOP-554",
 "ipAddress": "27.XXX.XX.76"
}" 

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/AirSearch',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
 "request_Id": "REQ123456",
 "imeI_Number": "353535353535353",
 "travel_Type": 0,
 "booking_Type": 0,
 "tripInfo": [
   { 
     "origin": "BOM",
     "destination": "MAA",
     "travelDate": "09/12/2025",
     "trip_Id": 0
   } 
 ], 
 "adult_Count": "1",
 "child_Count": "0",
 "infant_Count": "0",
 "class_Of_Travel": "0",
 "inventoryType": 0,
 "source_Type": 0,
 "srCitizen_Search": false,
 "studentFare_Search": false,
 "defenceFare_Search": false,
 "filtered_Airline": [
   { 
      "airline_Code": ""
   } 
 ], 
 "registrationID": "AOP-554",
 "ipAddress": "27.XXX.XX.76"
  }' 
}; 
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/AirSearch')
var content = new StringContent(
  "{
 "request_Id": "REQ123456",
 "imeI_Number": "353535353535353",
 "travel_Type": 0,
 "booking_Type": 0,
 "tripInfo": [
   { 
     "origin": "BOM",
     "destination": "MAA",
     "travelDate": "09/12/2025",
     "trip_Id": 0
   } 
 ], 
 "adult_Count": "1",
 "child_Count": "0",
 "infant_Count": "0",
 "class_Of_Travel": "0",
 "inventoryType": 0,
 "source_Type": 0,
 "srCitizen_Search": false,
 "studentFare_Search": false,
 "defenceFare_Search": false,
 "filtered_Airline": [
   { 
      "airline_Code": ""
   } 
 ], 
 "registrationID": "AOP-554",
 "ipAddress": "27.XXX.XX.76"
  }",
  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/AirSearch',
  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 =>  '{
 "request_Id": "REQ123456",
 "imeI_Number": "353535353535353",
 "travel_Type": 0,
 "booking_Type": 0,
 "tripInfo": [
   { 
     "origin": "BOM",
     "destination": "MAA",
     "travelDate": "09/12/2025",
     "trip_Id": 0
   } 
 ], 
 "adult_Count": "1",
 "child_Count": "0",
 "infant_Count": "0",
 "class_Of_Travel": "0",
 "inventoryType": 0,
 "source_Type": 0,
 "srCitizen_Search": false,
 "studentFare_Search": false,
 "defenceFare_Search": false,
 "filtered_Airline": [
   { 
      "airline_Code": ""
   } 
 ], 
 "registrationID": "AOP-554",
 "ipAddress": "27.XXX.XX.76"
 }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
"response_Header": {
    "error_Code": "0000",
    "error_Desc": "SUCCESS",
    "error_InnerException": "",
    "request_Id": "REQ123456",
    "status_Id": "11"
}, 
"search_Key": "W0KzomlraSkwtgLSE+RI6Z26bVuJ3WBbsc8pSgOVPdj96YeUjynBI0UO0JLNBxEniFMC0RR9O2ETZsFW0SimCT48PoxdED4LJl0S3xpCq5THPZcx6yX7OHRrKYVrxaFr928pbTjNfCUS3j0wOHvFbAsZhyKiMtfSBaL2fyRZg1C2Cd8oaBMUwAs1g0gkvoo05ipbBbT5EKA1Ld/ePK1Gh7/alFFNs/ytE6itJ1CTOhzSliBTtqDp+dZKk43ntAlpwiFEbARlzIBYNMU4qaGDe+sXFypMhTT4ef3yj3Mj2iDn09Ov9uHnU+wHOOOc726DBa6hUh6HRtPy5Xd5Q/fXqpJwmelExqa57T3dG4gADOTg5+MOUbW1Wc5QI6ExOLNZRbkEiAr7W/gNQh1wXWzcYUox3ev+zK3ukM3gfXb2SU9joKIMjU/4wWFYqTIU8v3AhMouiRbzmFS/YwigPH3hLqBDX2CjV3tGDsiCXf7772mRAeLhuxuCGnhoxmELXHTDyg6uhNoIiF8oe0p2zm6DNL92Sy0c0LQdFleV9H3cr51wVaB45hqz6YoGigMBKg4686R2B2VHU1rK6Uo1CadN9DpXnCg7rJs/mVxBzblNWJFJUDInfUqffct0lIoOF4FDmCL4Ti3PGKvx55+OpQI/23Z7Mjirg30X6i9B7UyrNnnCNFrHZy/RzwJf1sk+jrw2nx3vg6HBp2brISaQPpTd5Q==",
"tripDetails": [
    { 
       "flights": [
           { 
              "airline_Code": "6E",
              "block_Ticket_Allowed": true,
               "cached": false,
               "destination": "MAA",
                "fares": [
                    { 
                        "fareDetails": [
                            { 
                                  "airportTax_Amount": 653,
                                   "airportTaxes": [
                                       { 
                                             "tax_Amount": 653,
                                             "tax_Code": "OT",
                                             "tax_Desc": "Other Charges"
                                       } 
                      ],
                      "basic_Amount": 3600,
                      "currency_Code": "INR",
                      "fareClasses": [
                          { 
                               "class_Code": "R",
                               "class_Desc": "PUBLISHED",
                               "fareBasis": "R0IP",
                               "privileges": null,
                               "segment_Id": 0
                         } 
                    ], 
                    "free_Baggage": {
                        "check_In_Baggage": "30KG",
                        "displayRemarks": null,
                        "hand_Baggage": "7KG"
                    }, 
                    "gst": 0,
                    "gross_Commission": 0,
                    "net_Commission": 0,
                    "paX_Type": 0,
                    "promo_Discount": 0,
                    "service_Fee_Amount": 0,
                    "tds": 0,
                    "total_Amount": 4253,
                    "trade_Markup_Amount": 0,
                    "yQ_Amount": 0
                } 
             ], 
             "fareType": 0,
             "fare_Id": "5603011720423569753",
             "fare_Key": null,
             "food_onboard": "Paid Meal",
             "gstMandatory": false,
             "lastFewSeats": null,
             "productClass": "R",
             "promptMessage": null,
            "refundable": true,
            "seats_Available": null,
            "warning": null
    }, 
    { 
       "fareDetails": [
           { 
                   "airportTax_Amount": 671,
                   "airportTaxes": [
                     { 
                           "tax_Amount": 671,
                           "tax_Code": "OT",
                          "tax_Desc": "Other Charges"
                     } 
           ], 
           "basic_Amount": 3800,
           "currency_Code": "INR",
           "fareClasses": [
               { 
                    "class_Code": "M",
                    "class_Desc": "SME",
                    "fareBasis": "RMIP",
                    "privileges": null,
                    "segment_Id": 0
              } 
     ], 
     "free_Baggage": {
     "check_In_Baggage": "30KG",
     "displayRemarks": null,
     "hand_Baggage": "7KG"
     }, 
     "gst": 0,
     "gross_Commission": 0,
     "net_Commission": 0,
     "paX_Type": 0,
     "promo_Discount": 0,
     "service_Fee_Amount": 0,
     "tds": 0,
     "total_Amount": 4471,
     "trade_Markup_Amount": 0,
     "yQ_Amount": 0
     } 
     ], 
     "fareType": 3,
     "fare_Id": "5507068425220449266",
     "fare_Key": null,
     "food_onboard": "Paid Meal",
     "gstMandatory": false,
     "lastFewSeats": null,
     "productClass": "M",
     "promptMessage": null,
     "refundable": true,
    "seats_Available": null,
     "warning": null
     }, 
        { 
     "fareDetails": [
            { 
                  "airportTax_Amount": 680,
                  "airportTaxes": [
                      { 
                            "tax_Amount": 680,
                            "tax_Code": "OT",
                            "tax_Desc": "Other Charges"
                      } 
    ], 
    "basic_Amount": 3900,
    "currency_Code": "INR",
    "fareClasses": [
        { 
            "class_Code": "J",
            "class_Desc": "FLEXI_PLUS",
            "fareBasis": "RUIP",
            "privileges": null,
            "segment_Id": 0
         } 
  ], 
 "free_Baggage": {
 "check_In_Baggage": "30KG",
 "displayRemarks": null,
 "hand_Baggage": "7KG"
 }, 
 "gst": 0,
 "gross_Commission": 0,
 "net_Commission": 0,
 "paX_Type": 0,
 "promo_Discount": 0,
 "service_Fee_Amount": 0,
 "tds": 0,
 "total_Amount": 4580,
 "trade_Markup_Amount": 0,
 "yQ_Amount": 0
 } 
 ], 
 "fareType": 0,
 "fare_Id": "5133522002075251235",
 "fare_Key": null,
 "food_onboard": "Paid Meal",
 "gstMandatory": false,
 "lastFewSeats": null,
 "productClass": "J",
 "promptMessage": null,
 "refundable": true,
 "seats_Available": null,
 "warning": null
 }, 
 { 
 "fareDetails": [
      { 
            "airportTax_Amount": 966,
            "airportTaxes": [
              { 
                      "tax_Amount": 671,
                      "tax_Code": "OT",
                      "tax_Desc": "Other Charges"
              } 
      ],  
      "basic_Amount": 3800,
      "currency_Code": "INR",
      "fareClasses": [
       { 
          "class_Code": "M",
          "class_Desc": "TJ_FLEX",
          "fareBasis": "RMIP",
          "privileges": null,
          "segment_Id": 0
       } 
 ], 
 "free_Baggage": {
 "check_In_Baggage": "30KG",
 "displayRemarks": null,
 "hand_Baggage": "7KG"
 }, 
 "gst": 0,
 "gross_Commission": 0,
 "net_Commission": 0,
 "paX_Type": 0,
 "promo_Discount": 0,
 "service_Fee_Amount": 0,
 "tds": 0,
 "total_Amount": 4766,
 "trade_Markup_Amount": 0,
 "yQ_Amount": 0
 } 
 ], 
 "fareType": 0,
 "fare_Id": "5013475722159685323",
 "fare_Key": null,
 "food_onboard": "Free Meal",
 "gstMandatory": false,
 "lastFewSeats": null,
 "productClass": "M",
 "promptMessage": null,
 "refundable": true,
 "seats_Available": null,
 "warning": null
 }, 
 { 
 "fareDetails": [
      { 
           "airportTax_Amount": 784,
           { 
           "airportTaxes": [
           "tax_Amount": 784,
           "tax_Code": "OT",
           "tax_Desc": "Other Charges"
     } 
 ], 
 "basic_Amount": 5100,
 "currency_Code": "INR",
 "fareClasses": [
      { 
          "class_Code": "O",
          "class_Desc": "SUPER_6E",
          "fareBasis": "RLIP",
          "privileges": null,
          "segment_Id": 0
     } 
 ], 
 "free_Baggage": {
 "check_In_Baggage": "30KG",
 "displayRemarks": null,
 "hand_Baggage": "7KG"
 }, 
 "gst": 0,
 "gross_Commission": 0,
 "net_Commission": 0,
 "paX_Type": 0,
 "promo_Discount": 0,
 "service_Fee_Amount": 0,
 "tds": 0,
 "total_Amount": 5884,
 "trade_Markup_Amount": 0,
 "yQ_Amount": 0
 } 
 ], 
 "fareType": 0,
 "fare_Id": "5048675681139700779",
 "fare_Key": null,
 "food_onboard": "Paid Meal",
 "gstMandatory": false,
 "lastFewSeats": null,
 "productClass": "O",
 "promptMessage": null,
 "refundable": true,
 "seats_Available": null,
 "warning": null
 } 
 ], 
 "flight_Id": "4925587844442920572",
 "flight_Key": "KEYpMPhrp3ffApKPXetRrzXBDu54sh52hE+rEpemDynyYuk2Lb5x3zfwCRfchb6p+w8RWlFdRVpGFF2UAclG5gufkUbHCkdstvS8TF+RlL3RcEeVbjHfTOyOYxvu1aa4L95lEgO493v4+v0asjSZLQlpLrz7AYij8tqSUIlwrr+il+h2+eRWULERNRYj/xgqjGdy6oibpIBW2P5M9AR1ZMQbxFdxvL1vVtcJlbAjZR909d0KW2us7Jy2huDR0HJvDKPh8FNBRfmRMzHdX2HkzYwNUal9mgRha/IQ6TvrqzE1PAgnvZi9q/VbRvyLeRBeXxbyIJpGPVjJYWmzPBgfM1/E90AXTgXVBMLcBGoaCXeqJLXZ31Es9snOtsdCqqYgS51fDp/XKZxVprQOAdNBR/+JFgNh+xNsHpsXC5YcMkh7lr2QCsU95rn/U8ePW/jGwVF5Ga3LCnytir/6UAkkldhZLdPX+ZbwTniYC2GiVTaOhj/yyjYncKW5DtXi67Sux86Hay6/+zSJtdoKf7qqmznWW1OXDNqiEEkUG1SKtIskvG0mldrQL7qxuEhqaZJclj6ilthzLe+CBXZUtRt+FP4jBu7Z/2Tw8sbKU8Jpu8KxgAdFoKsvwG52B/7TojhFDVeNh5aRLxfv6hkBbNbDKFg/NcUdG+JXDg8jybLIUxPACcUUlTG8u7uo6jcjKU9N1BUmI/hPG0DksN9nsjVd/Q0ifL2yjBCfhMVhBGeQk/XTltwzfUakQzGSDtYwoTQTUw1JqJw1xUMBO1wwBj9tqxyc6RkAoRqhiNyWrCXlBUQccw=",
 "flight_Numbers": "5313-09/12/2025 10:15",
 "gsT_Entry_Allowed": true,
 "hasMoreClass": false,
 "insta_Cancel_Allowed": false,
 "inventoryType": 0,
 "isFareChange": false,
 "isLCC": true,
 "origin": "BOM",
 "repriced": false,
 "segments": [
    { 
           "aircraft_Type": "321",
           "airline_Code": "6E",
           "airline_Name": "IndiGo",
           "arrival_DateTime": "09/12/2025 12:00",
           "departure_DateTime": "09/12/2025 10:15",
           "destination": "MAA",
           "destination_City": "CHENNAI",
           "destination_Terminal": "1",
           "duration": "01:45",
           "flight_Number": "5313",
           "leg_Index": 0,
           "operatedBy": null,
           "origin": "BOM",
           "origin_City": "MUMBAI",
           "origin_Terminal":"1",
           "return_Flight": false,
           "segment_Id": 0,
           "stop_Over": null
    } 
  ], 
  "travelDate": "09/12/2025"
  } 
  ], 
  "trip_Id": 0
     } 
   ], 
   "statuss": "FALSE",
   "message": "",
   "value": ""
}
                                
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}