AirRePrice

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


The AirRePrice API is used to revalidate and fetch the most accurate, up-to-date fare and seat availability details for a selected flight. This step is typically performed just before booking, ensuring that the pricing has not changed and the seats are still available.

Body Parameters
{
   "search_Key": "XX765857XXXXXXX",
   "airRepriceRequests": [
     {
        "flight_Key": "FK4720XXXXXX5662683",
        "fare_Id": "TESTING521XXXXXX321963"
     }
   ],
   "customer_Mobile": "9199XXXXXX88",
   "gsT_Input": false,
   "singlePricing": true,
   "iP_Address": "27.XXX.XX.76",
   "request_Id": "REQ123456",
   "imeI_Number": "353535353535353",
   "registrationID": "AOP-554"
}
Request Parameters
Name Type Description
search_Key String This key holds flight journey search detail.
flight_Key String This key holds selected flight detail.
fare_Id String This holds selected Fare Id.
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/AirRePrice' \
--header 'Content-Type: application/json' \
--data  '{
  "search_Key": "XX765857XXXXXXX",
  "airRepriceRequests": [
    { 
      "flight_Key": "FK4720XXXXXX5662683",
      "fare_Id": "TESTING521XXXXXX321963"
    } 
  ], 
  "customer_Mobile": "9199XXXXXX88",
  "gsT_Input": false,
  "singlePricing": true,
  "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/AirRePrice'
payload = "{
"search_Key": "XX765857XXXXXXX",
"airRepriceRequests": [
  { 
    "flight_Key": "FK4720XXXXXX5662683",
    "fare_Id": "TESTING521XXXXXX321963"
  } 
], 
"customer_Mobile": "9199XXXXXX88",
"gsT_Input": false,
"singlePricing": true,
"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/AirRePrice',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "search_Key": "XX765857XXXXXXX",
    "airRepriceRequests": [
  { 
    "flight_Key": "FK4720XXXXXX5662683",
    "fare_Id": "TESTING521XXXXXX321963"
  } 
], 
"customer_Mobile": "9199XXXXXX88",
"gsT_Input": false,
"singlePricing": true,
"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/AirRePrice')
var content = new StringContent(
  "{
    "search_Key": "XX765857XXXXXXX",
    "airRepriceRequests": [
  { 
    "flight_Key": "FK4720XXXXXX5662683",
    "fare_Id": "TESTING521XXXXXX321963"
  } 
], 
"customer_Mobile": "9199XXXXXX88",
"gsT_Input": false,
"singlePricing": true,
"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/AirRePrice',
  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 =>  '{
    "search_Key": "XX765857XXXXXXX",
    "airRepriceRequests": [
  { 
    "flight_Key": "FK4720XXXXXX5662683",
    "fare_Id": "TESTING521XXXXXX321963"
  } 
], 
"customer_Mobile": "9199XXXXXX88",
"gsT_Input": false,
"singlePricing": true,
"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

{
"airRepriceResponses": [
 {
   "flight": {
   "airline_Code": "SG",
   "block_Ticket_Allowed": false,
   "cached": false,
   "destination": "MAA",
   "fares": [
       { 
"fareDetails": [
           { 
                      "airportTax_Amount":"1537.77",
                      "airportTaxes": [
                                { 
                                             "tax_Amount" "264",
                                             "tax_Code": "K3",
                                             "tax_Desc": "K3"
                                }, 
                               { 
                                             "tax_Amount" "900",
                                             "tax_Code": "YQTax",
                                             "tax_Desc": "YQTax"
                                }
                       ], 
                       "basic_Amount": "4226",
                       "currency_Code": "INR",
                        "fareClasses": [
                                                    { 
                                                                      "class_Code": "MX",
                                                                      "class_Desc": "Publish",
                                                                      "fareBasis": "USMX",
                                                                      "privileges": null,
                                                                       "segment_Id": "0"
                                                     } 
                                                      ], 
                                                    "free_Baggage": {
                                                                               "check_In_Baggage": "15KGss",
                                                                               "displayRemarks": null,
                                                                               "hand_Baggage": "7KG"
                                                       }, 
                                                     "gst": "45",
                                                     "gross_Commission": "250",
                                                     "net_Commission: "205",
                                                     "paX_Type": "0",
                                                     "promo_Discount": "0",
                                                     "service_Fee_Amoun": "0",
                                                     "tds": "41",
                                                     "total_Amount": "5763.77",
                                                     "trade_Markup_Amount": "0",
                                                     "yQ_Amount": "900"
                                                        } 
                                       ], 
                                        "fareType": "0",
                                        "fare_Id": "LB4732979533032503709",
                                        "fare_Key": null,
                                        "food_onboard":"F",
                                        "gstMandatory": false,
                                        "lastFewSeats": null,
                                        "productClass": "LB",
                                        "promptMessage": null,
                                        "refundable": true,
                                        "seats_Available": "0",
                                        "warning": ""
                           }
              ],
                "flight_Id": "4639201557548241571",
                "flight_Key": "KEY0Pn5I9cSoZUaSn2tWVbwNyrNI7huha/4sOnNru2CTDzLbdzPw",
                "flight_Numbers": null,
                "gsT_Entry_Allowed": true,
                "hasMoreClass": false,
                "insta_Cancel_Allowed": false,
                "inventoryType": "0",
                "isFareChange": false,
                "isLCC": true,
                "origin": "BOM",
                "repriced": true,
                "segments": [
                                { 
                                                 "aircraft_Type": "7M8",
                                                 "airline_Code": "SG",
                                                 "airline_Name": "SpiceJet",
                                                 "arrival_DateTime": "09/12/2025 12:50",
                                                 "departure_DateTime": "09/12/2025 11:15",
                                                 "destination": "MAA",
                                                 "destination_City": "CHENNAI",
                                                 "destination_Terminal": "1",
                                                 "duration": "01:35",
                                                 "flight_Number": "8010",
                                                 "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",
             }, 
            "frequent_Flyer_Accepted": false,
            "required_PAX_Details": [
                        { 
                                         "age": false,
                                         "dob": false,
                                         "defenceExpiryDate": false,
                                         "defenceIssueDate": false,
                                         "defenceServiceId": false,
                                         "first_Name": true,
                                         "gender": false,
                                         "idProof_Number": false,
                                         "last_Name": true,
                                         "mandatory_SSRs": null,
                                         "nationality": false,
                                         "panCard_No": false,
                                         "passport_Expiry": false,
                                         "passport_Issuing_Country": false,
                                         "passport_Number": false,
                                         "pax_type": 0,
                                         "student_Id": false,
                                         "title": true
             } 
             
        ] 
             
    } 
             ], 
             "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"
}