AirAddPayment

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


The AirAddPayment API is used to finalize the flight booking by processing the payment against a previously created temporary booking (AirTempBooking). Upon successful payment, the booking is confirmed and ticket(s) are issued.

Body Parameters
{
    "clientRefNo": "XXXXXF12434",
    "refNo": "FLYB6YMAD",
    "transactionType": 0,
    "productId": "1",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353" ,
    "registrationID": "AOP-554"
}
Request Parameters
Name Type Description
clientRefNo String This requires the client reference number, used for tracking the transaction in the future.
refNo String This requires the booking reference number, which is obtained from the Air_TempBooking response.
transactionType Int This denotes the TransactionType: 0 (Booking), 1 (SSR), 2 (Reschedule Online – reserved for future use).
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/AddPayment' \
--header 'Content-Type: application/json' \
--data  '{
  "clientRefNo": "XXXXXF12434",
  "refNo": "FLYB6YMAD",
  "transactionType": 0,
  "productId": "1",
  "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/AddPayment'
payload = "{
  "clientRefNo": "XXXXXF12434",
  "refNo": "FLYB6YMAD",
  "transactionType": 0,
  "productId": "1",
  "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/AddPayment',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "clientRefNo": "XXXXXF12434",
    "refNo": "FLYB6YMAD",
    "transactionType": 0,
    "productId": "1",
    "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/AddPayment')
var content = new StringContent(
  "{
    "clientRefNo": "XXXXXF12434",
    "refNo": "FLYB6YMAD",
    "transactionType": 0,
    "productId": "1",
    "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/AddPayment',
  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 =>  '{
    "clientRefNo": "XXXXXF12434",
    "refNo": "FLYB6YMAD",
    "transactionType": 0,
    "productId": "1",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ1234562",
    "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

{
"amount": "5784",
"debitedAmount": "5456",
"paymentID": "83421",
"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"
}