post https://api.aerocrs.com/v5/getBooking
This method will give you the booking details according to the booking confirmation
Request parameters
<th style={{ textAlign: "left" }}>
Type
</th>
<th style={{ textAlign: "left" }}>
Description
</th>
</tr>
<td style={{ textAlign: "left" }}>
String\*
</td>
<td style={{ textAlign: "left" }}>
as accepted from confirmBooking\
OR\
PNR ref
</td>
</tr>
<tr>
<td style={{ textAlign: "left" }}>
passengerlastname
</td>
<td style={{ textAlign: "left" }}>
String
</td>
<td style={{ textAlign: "left" }}>
Passenger last name – MANDATORY if you are giving the PNR ref., otherwise OPTIONAL
</td>
</tr>
<tr>
<td style={{ textAlign: "left" }}>
generateBookingId
</td>
<td style={{ textAlign: "left" }}>
Boolean
</td>
<td style={{ textAlign: "left" }}>
If set to true - this will generate a bookingid (if none exists). This if or operational purposes.
</td>
</tr>
Parameter |
---|
bookingconfirmation |
- Mandatory parameters
Response
<th>
Type
</th>
<th>
Description
</th>
</tr>
<td>
Element
</td>
<td>
Include all the information regarding the booking
</td>
</tr>
<tr>
<td>
bookingid
</td>
<td>
Number
</td>
<td>
Booking ID used
</td>
</tr>
<tr>
<td>
bookingconfirmation
</td>
<td>
String
</td>
<td>
Booking confirmation string
</td>
</tr>
<tr>
<td>
linktobooking
</td>
<td>
Link
</td>
<td>
The link to the booking in the airline website
</td>
</tr>
<tr>
<td>
linktoticket
</td>
<td>
Link
</td>
<td>
The link for the booking confirmation (ticket)
</td>
</tr>
<tr>
<td>
pnrref
</td>
<td>
String
</td>
<td>
The PNR ref (record locator)
</td>
</tr>
<tr>
<td>
ticketnumber
</td>
<td>
Number
</td>
<td>
Ticket number ID in AeroCRS system (if ticketed)
</td>
</tr>
<tr>
<td>
invoicenumber
</td>
<td>
Number
</td>
<td>
Invoice number in airline (if ticketed)
</td>
</tr>
<tr>
<td>
status
</td>
<td>
String
</td>
<td>
OK – PNR is OK and approvedPN – PNR is in PENDING status and will be kept for 24 hours for manual approving with the airline
</td>
</tr>
<tr>
<td>
source
</td>
<td>
String
</td>
<td>
The source of the PNR - Website, Agent, Network etc.
</td>
</tr>
<tr>
<td>
flights
</td>
<td>
Element
</td>
<td>
Holds all flights information in the booking, each flight is represented by a flight element
</td>
</tr>
<tr>
<td>
flight
</td>
<td>
Element
</td>
<td>
Holds the flight information in the booking
</td>
</tr>
<tr>
<td>
airline
</td>
<td>
String
</td>
<td>
Airline name
</td>
</tr>
<tr>
<td>
airlineDesignator
</td>
<td>
String
</td>
<td>
Airline 2 letter code in IATA (if exists)
</td>
</tr>
<tr>
<td>
airlineICAOcode
</td>
<td>
String
</td>
<td>
Airline 3 ICAO code (if exists)
</td>
</tr>
<tr>
<td>
from
</td>
<td>
String
</td>
<td>
From destination name
</td>
</tr>
<tr>
<td>
fromcode
</td>
<td>
String
</td>
<td>
From destination code
</td>
</tr>
<tr>
<td>
to
</td>
<td>
String
</td>
<td>
To destination name
</td>
</tr>
<tr>
<td>
tocode
</td>
<td>
String
</td>
<td>
To destination code
</td>
</tr>
<tr>
<td>
class
</td>
<td>
String
</td>
<td>
Class code (Brand name will be appended if applicable)
</td>
</tr>
<tr>
<td>
flightdate
</td>
<td>
Date
</td>
<td>
YYYY/MM/DD date of flight
</td>
</tr>
<tr>
<td>
depart
</td>
<td>
Time
</td>
<td>
HH:MM time of departure
</td>
</tr>
<tr>
<td>
arrive
</td>
<td>
Time
</td>
<td>
HH:MM time of arrival
</td>
</tr>
<tr>
<td>
number
</td>
<td>
String
</td>
<td>
Flight number
</td>
</tr>
<tr>
<td>
invid
</td>
<td>
Number
</td>
<td>
ID of booked flight (used internal)
</td>
</tr>
<tr>
<td>
invpricing
</td>
<td>
Money
</td>
<td>
Total pricing in USD for the flight
</td>
</tr>
<tr>
<td>
Taxes
</td>
<td>
Array
</td>
<td>
Array with tax breakdown
</td>
</tr>
<tr>
<td>
services
</td>
<td>
Array
</td>
<td>
Array of valid services for this fare
</td>
</tr>
<tr>
<td>
passengers
</td>
<td>
Element
</td>
<td>
Holds all passenger elements
</td>
</tr>
<tr>
<td>
passenger
</td>
<td>
Element
</td>
<td>
Holds the passenger information in the booking
</td>
</tr>
<tr>
<td>
paxtitle
</td>
<td>
String
</td>
<td>
Passenger title
</td>
</tr>
<tr>
<td>
lastname
</td>
<td>
String
</td>
<td>
Passenger last name
</td>
</tr>
<tr>
<td>
firstname
</td>
<td>
String
</td>
<td>
Passenger first name
</td>
</tr>
<tr>
<td>
dob
</td>
<td>
String
</td>
<td>
Date of birth in format YYYY-mm-dd
</td>
</tr>
<tr>
<td>
email
</td>
<td>
String
</td>
<td>
Passenger email
</td>
</tr>
<tr>
<td>
contact
</td>
<td>
String
</td>
<td>
Passenger phone number
</td>
</tr>
<tr>
<td>
paxtype
</td>
<td>
String
</td>
<td>
Passenger type
</td>
</tr>
<tr>
<td>
nationality
</td>
<td>
String
</td>
<td>
Nationality country code
</td>
</tr>
<tr>
<td>
paxdoctype
</td>
<td>
String
</td>
<td>
PP - Passport\
ID - National ID
</td>
</tr>
<tr>
<td>
passportexpiry
</td>
<td>
Date
</td>
<td>
Date of passport/ID expiry
</td>
</tr>
<tr>
<td>
paxpassportnum
</td>
<td>
String
</td>
<td>
Passport/ID number
</td>
</tr>
<tr>
<td>
paxpassportcountry
</td>
<td>
String
</td>
<td>
Passport issuing country code
</td>
</tr>
<tr>
<td>
checkin
</td>
<td>
Element
</td>
<td>
List of flights and their check in status
</td>
</tr>
<tr>
<td>
remarks
</td>
<td>
Element
</td>
<td>
Each remark in the PNR will be represented in a <remarks>element
</td>
</tr>
<tr>
<td>
remark
</td>
<td>
Element
</td>
<td>
The Element will include a single text element
</td>
</tr>
<tr>
<td>
text
</td>
<td>
String
</td>
<td>
Remark text
</td>
</tr>
<tr>
<td>
vouchers
</td>
<td>
Element
</td>
<td>
Each voucher in the PNR will be represented in a <vouchers>element
</td>
</tr>
<tr>
<td>
voucher
</td>
<td>
Element
</td>
<td>
The Element include information regarding to the voucher
</td>
</tr>
<tr>
<td>
agentconfirmation
</td>
<td>
String
</td>
<td>
Agent reference as inserted in createBooking
</td>
</tr>
<tr>
<td>
vccreated
</td>
<td>
Date
</td>
<td>
YYYY/MM/DD date time of the system when creating the voucher
</td>
</tr>
<tr>
<td>
vctotal
</td>
<td>
Money
</td>
<td>
Pricing of voucher
</td>
</tr>
<tr>
<td>
Balanceinformation
</td>
<td>
Element
</td>
<td>
Balance DUE payment of this booking.
</td>
</tr>
<tr>
<td>
PNRtotal
</td>
<td>
Number
</td>
<td>
Total amount of the booking
</td>
</tr>
<tr>
<td>
PNRoutstandingpayment
</td>
<td>
Number
</td>
<td>
Balance DUE payment of this booking.
</td>
</tr>
<tr>
<td>
BalanceInCurrencies
</td>
<td>
Element
</td>
<td>
Balance DUE payment of this booking in currencies, the same nodes as balanceInformation
</td>
</tr>
<tr>
<td>
flightcode
</td>
<td>
Integer
</td>
<td>
Code of flight
</td>
</tr>
<tr>
<td>
connectedpnrref
</td>
<td>
String
</td>
<td>
The PNR ref (record locator) of original PNR - in case this is only a connected PNR. (Limited to extra services)
</td>
</tr>
<tr>
<td>
connectedbookingconfirmation
</td>
<td>
String
</td>
<td>
The booking confirmation of original PNR - in case this is only a connected PNR. (Limited to extra services)
</td>
</tr>
<tr>
<td>
boardingPass
</td>
<td>
Link
</td>
<td>
Link to boarding pass
</td>
</tr>
<tr>
<td>
e-tickets
</td>
<td>
Element
</td>
<td>
Element containing E-tickets (if applicable), the structure is:\
flightnuber (key) - etkt number (value)
</td>
</tr>
Parameter |
---|
booking |