AirRePrint

Post   https://travel.OQPay.co.in/api/V1/Air/Travel/AirReprint


The AirReprint API is used to retrieve or regenerate the complete ticket and booking information for a previously issued airline booking. This is especially useful for: Reprinting e-tickets, Verifying issued tickets, Viewing passenger and fare details, Checking the live ticketing and segment status.

Body Parameters
{
    "booking_RefNo": "FLYB6YMAD",
    "airline_PNR": "UZJN3Q",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "OQPay-554"
}
Request Parameters
Name Type Description
booking_RefNo String This requires the booking reference number, which is obtained from the Air_TempBooking response.
airline_PNR String Set to empty to retrieve data in response; requires the Airline PNR (Passenger Name Record).
iP_Address String Belongs to the same server from which the API calls are made and where you will be consuming the API.
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.OQPay.co.in/api/V1/Air/Travel/AirReprint' \
--header 'Content-Type: application/json' \
--data  '{
  "booking_RefNo": "FLYB6YMAD",
  "airline_PNR": "UZJN3Q",
  "iP_Address": "27.XXX.XX.76",
  "request_Id": "REQ123456",
  "imeI_Number": "353535353535353",
  "registrationID": "OQPay-554"
}'
                                
import requests
import json

url = 'https://travel.OQPay.co.in/api/V1/Air/Travel/AirReprint'
payload = "{
    "booking_RefNo": "FLYB6YMAD",
    "airline_PNR": "UZJN3Q",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "OQPay-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.OQPay.co.in/api/V1/Air/Travel/AirReprint',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "booking_RefNo": "FLYB6YMAD",
    "airline_PNR": "UZJN3Q",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "OQPay-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.OQPay.co.in/api/V1/Air/Travel/AirReprint')
var content = new StringContent(
  "{
    "booking_RefNo": "FLYB6YMAD",
    "airline_PNR": "UZJN3Q",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "OQPay-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.OQPay.co.in/api/V1/Air/Travel/AirReprint',
  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 =>  '{
    "booking_RefNo": "FLYB6YMAD",
    "airline_PNR": "UZJN3Q",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "OQPay-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
"adult_Count": 0,
"airPNRDetails": null,
"airRequeryResponse_Key": null,
"biller_Id": 0,
"bookingPaymentDetail": null,
"booking_DateTime": null,
"booking_RefNo": null,
"booking_Type": 0,
"child_Count": 0,
"class_of_Travel": 0,
"companyDetail": null,
"corporatePaymentMode": 0,
"customerDetail": null,
"gst": false,
"gstin": null,
"infant_Count": 0,
"invoice_Number": null,
"paX_EmailId": null,
"paX_Mobile": null,
"remark": null,
"response_Header": null,
"retailerDetail": null,
"travel_Type": 0,
"statuss": "212",
"message": "Booking RefNo No Param is Required",
"value": ""
}
                                
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}