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