Create a flight booking
Create a new booking for a flight with booking details
Request body
Flight ID to associate the booking withExample:
flight_abc123Booking code/confirmation code (max 50 characters)Example:
ABC123Seat number (max 10 characters)Example:
12AType of seat positionOptions:
window, middle, aisle, jumpseat, captain, pilot, copilot, flight_engineer, flight_attendant, observer, otherExample: windowClass of serviceOptions:
economy, premium_economy, business, first, private, otherExample: economyReason for the flightOptions:
personal, business, crew, training, repositioning, otherExample: personalAdditional notes about the booking (max 500 characters)Example:
Window seat preferredResponse
Unique booking identifierExample:
booking_abc123Booking code/confirmation code
Seat number
Type of seat position
Class of service
Reason for the flight
Additional notes about the booking
Flight ID associated with this booking
User ID who owns this booking
Date and time when the booking was created (ISO 8601)Example:
2024-03-20T10:00:00ZDate and time when the booking was last updated (ISO 8601)Example:
2024-03-20T10:00:00ZResponse example
Error responses
Invalid request parameters or flight not found
User is not authenticated
Internal server error
Get a flight booking
Get details of a specific flight booking
Path parameters
ID of the booking to retrieveExample:
booking_abc123Response
Returns a booking object with the same structure as the create booking response.Error responses
User is not authenticated
Booking not found
Internal server error
Update a flight booking
Update an existing flight booking
Path parameters
ID of the booking to updateExample:
booking_abc123Request body
All fields are optional. Only include the fields you want to update. Set tonull to clear a field.
Booking code/confirmation code (max 50 characters). Set to null to clear.
Seat number (max 10 characters). Set to null to clear.
Type of seat position. Set to null to clear.Options:
window, middle, aisle, jumpseat, captain, pilot, copilot, flight_engineer, flight_attendant, observer, otherClass of service. Set to null to clear.Options:
economy, premium_economy, business, first, private, otherReason for the flight. Set to null to clear.Options:
personal, business, crew, training, repositioning, otherAdditional notes about the booking (max 500 characters). Set to null to clear.
Response
Returns the updated booking object.Error responses
Invalid request parameters
User is not authenticated
Booking not found
Internal server error
Delete a flight booking
Delete a flight booking
Path parameters
ID of the booking to deleteExample:
booking_abc123Response
Error responses
User is not authenticated
Booking not found
Internal server error
Get all bookings for a flight
Get all bookings associated with a specific flight
Path parameters
ID of the flightExample:
flight_abc123Response
Returns an array of booking objects.Error responses
Flight not found
User is not authenticated
Internal server error