ImportantAmending a booking must be actioned on one airline each time.
In addition - not all airlines support amendment and cancellations - please contact the airlines before integrating this API call
Request parameters
Parameter | Type | Description |
|---|---|---|
bookingconfirmation | String* | as accepted from confirmBooking |
action | String* | Action wanted - cancel / amend |
bookflight | Element* | Include the flight details |
fromcode | String* | Origin code from getDestinations |
tocode | String* | Destination code from getDestinations |
flightid | Number* | flightid received from getDeepLink |
fareid | Number* | Received from getDeepLink |
currency | String (Optional) | Requested currency ISO (Example - USD) |
chargetype | String* | The iataCode chargetype |
sendemail | Boolean | 1 - Send a web confirmation email to the customer, 0 - Will not send a web confirmation email to the customer |
leg | Number (Optional) | Leg to change |
* Mandatory parameters
Response
The method will response with all the details and a booking ID which you can use in other methods in AeroCRS API.
| Parameter | Type | Description |
|---|---|---|
| booking | Element | The booking information, Holds items element |
| items | Element | Holds several other elements e.g. flight, hotel etc. |
| flight | Element | Holds the following elements: |
| airline | String | Name of airline |
| airlineid | Number | ID of airline in AeroCRS systems |
| from | String | Name of destination of departure |
| to | String | Name of destination of arrival |
| flightdate | Date | YYYY/MM/DD date of the flight |
| depart | Time | HH:MM 24hours time of departure |
| arrive | Time | HH:MM 24hours time of arrival |
| number | String | Flight number |
| class | String | Class code (Brand will be appended, if valid) |
| invid | Number | ID of booked flight (internal use) |
| invpricing | Money | Total charged in the currency for the flight |
| Adultfare | Money | Adult RACK fare (per 1 adult) |
| Childfare | Money | Child RACK fare (per 1 child) |
| Infantfare | Money | Infant RACK fare (per 1 infant) |
| tax | Money | Total TAX |
| net_fare | Money | Total NET fare (charged) |
| rack_fare | Money | Total rack fare |
| totaltax | Money | Total TAX for flight |
| currency | String | The currency used in the fare (ISO-4217) |
| converttousd | Number | The conversion rate to USD as defined by the airline. |
| terms | String | Related terms of the fare / booking class. |
| adults | Number | Number of adults booked |
| child | Number | Number of children booked |
| infant | Number | Number of infants booked |
| totalprice | Money | Total amount for all booking |
| bookingid | Number | Booking ID to be used in the confirmBooking API |
| pnrref | String | PNR Reference (Record locator) to show customer |
| pnrptl | Date | Payment time limit in GMT time zone YYYY/MM/DD HH:MM |
| pnrttl | Date | Ticketing time limit in GMT time zone YYYY/MM/DD HH:MM |
| infaspax | Boolean | In case the airline defined infant as passenger |
| services | Array | Applicable services for fare |
| fee | Object | If there is a fee applicable |
| type | String | Type of fee |
| price | Money | Price of fee |
ImportantIf the PNR is fully paid after the amendments and no amount is left to pay - this PNR will ticket automatically. Otherwise you will need to call to makePayment and ticketBooking
