Openjet - Booking bar API documentation version 1.0
Changelog
Changelog
2019-08-28: Release 1.0
- Added base method to display availabilities
/proposals
post
Display availabilities based on form parameters
post /proposals
Display availabilities based on form parameters
Body
Media type: application/x-www-form-urlencoded
Type: object
Properties- legs: required (array of Leg)
Array of flights
Items: Leg
- departureAirport: required (object)
Only one of the properties need to be set
- lfi: (string)
Unique OpenJet identifier
- icao: (string)
ICAO identifier of the airport
- iata: (string)
IATA identifier of the airport
- faaCode: (string)
FAA Code identifier of the airport
- lfi: (string)
- arrivalAirport: required (object)
Only one of the properties need to be set
- lfi: (string)
Unique OpenJet identifier
- icao: (string)
ICAO identifier of the airport
- iata: (string)
IATA identifier of the airport
- faaCode: (string)
FAA Code identifier of the airport
- lfi: (string)
- paxNumber: required (integer)
- departureDate: required (string)
- departureAirport: required (object)
- companyName: required (string)
Unique, name of the company using the booking bar
- channel: required (string)
Unique, name of the channel needed for the availabilities
- currency: required (string)
Currency code used for the prices in the availabilities
Example:
cURL:
curl -X POST \
'https://{{openjet-booking-bar-url}}/proposals' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d companyName={{companyName}} \
-d channel={{channelName}} \
-d currency=EUR \
-d legs[0][departureAirport][icao]=LFPB \
-d legs[0][arrivalAirport][icao]=LFPO \
-d legs[0][paxNumber]=3 \
-d legs[0][departureDate]=2019-12-01T10:20:00 \
-d legs[1][departureAirport][iata]=ORY \
-d legs[1][arrivalAirport][iata]=LBG \
-d legs[1][paxNumber]=3 \
-d legs[1][departureDate]=2019-12-01T18:10:00 \