Flight API · Booking
FlightImportPNR
The FlightImportPNR enables customer to import PNRs.When process is successfully finished, the API returns the PNR reference and Cyberesa local reference. Otherwise it returns a friendly error message within an Error Node.
<FlightImportPNRRQ>
<Credentials>
<Login>?</Login>
<Password>?</Password>
</Credentials>
<User>?</User>
<Curr>?</Curr>
<Ilng>?</Ilng>
<PNRReference>?</PNRReference>
<OfficeID>?</OfficeID>
<PromoCodes>?</PromoCodes>
</FlightImportPNRRQ>| Root | Sub root | Tag | Description | Values & Format |
|---|---|---|---|---|
| Credentials | Mandatory | |||
| Login | Mandatory | |||
| Password | Mandatory | |||
| User | Mandatory | |||
| Curr | Optional | Currency Code | 3 digits TND EUR | |
| Ilng | Mandatory | |||
| PNRReference | Mandatory | PNR Reference | ||
| OfficeID | Mandatory | Target OfficeID | ||
| PromoCodes | Optional | PromoCodes separated with semicolons(;) |
Response
<FlightImportPNRRS>
<Error id="">
<Message>?</Message>
</Error>
<CyberesaReference>?</CyberesaReference>
<PNRReference>?</ PNRReference >
<Itineraries>
<Itinerary>
<Company title="?">?</Company>
<FlightNumber>?</FlightNumber>
<DepartureDate>?</DepartureDate>
<OriginalTerminal>?</OriginalTerminal>
<Origin title="?">?</Origin>
<ArrivalDate>?</ArrivalDate>
<DestinationTerminal>?</DestinationTerminal>
<Destination title="?">?</Destination>
<Equipment>?</Equipment>
<Cabin title="?">?</Cabin>
</Itinerary>
</Itineraries>
<Passengers>
<Passenger>
<FirstName>?</FirstName>
<LastName>?</LastName>
<Rates>
<AmountWithoutTax>?</AmountWithoutTax>
<AmountWithTax>?</AmountWithTax>
<Tax>?</Tax>
<TaxDetails>?</TaxDetails>
<Currency>?</Currency>
</Rates>
</Passenger>
</Passengers>
<Price>
<Amount>?</Amount>
<Tax>?</Tax>
<Currency>?</Currency>
<Fees>?</Fees>
</Price>
</FlightImportPNRRS >| Root | Sub root | Tag | Description | Values & Format |
|---|---|---|---|---|
| Error | Returned on error | |||
| Id | Internal error id | |||
| Message | Friendly error message that helps user to be aware of error reasons | |||
| CyberesaReference | Reference of the new booking in Cyberesa system | Returned on success | ||
| Itineraries | PNR reference of the imported booking | |||
| Itinerary | ||||
| Itinerary:Company | The code company of an itinerary. | |||
| Itinerary:FlightNumber | The flight number of an itinerary. | |||
| Itinerary:DepartureDate | The date of departure. | |||
| Itinerary:OriginTerminal | The terminal of departure. | |||
| Itinerary:Origin | The code airport of departure. | |||
| Itinerary:ArriveDate | The date of arrival. | |||
| Itinerary:DestinationTerminal | The terminal of arrival. | |||
| Itinerary:Destination | The code airport of arrival. | |||
| Itinerary:Equipment | The code of equipment type. | |||
| Itinerary:Cabin | The class of an itinerary. | |||
| Passengers | Passenger Details : to show price break down per passenger | |||
| Passenger | ||||
| Passenger:FirstName | First Name of passenger | |||
| Passenger:LastName | Last Name of passenger | |||
| Passenger:Rates:AmountWithoutTax | Amount Without Tax per passenger | |||
| Passenger:Rates:AmountWithTax | Amount With Tax per passenger | |||
| Passenger:Rates:Tax | Tax per passenger | |||
| Passenger:Rates:Currency | Currency of amount | |||
| Passenger:Rates:TaxDetails | Details of Tax per passanger | |||
| Price | ||||
| Amount | The total amount. | |||
| Tax | The total tax. | |||
| Currency | The code currency of the current price. | |||
| Fees | The margin |