KongAir Booking API

Obtain API keys
To obtain API keys for Booking API, qualification is requiredContact Partner Relations

Introduction

Welcome to the KongAir Booking API. KongAir offers a seamless flight booking experience through its API, allowing users to search for available flights, create bookings, retrieve booking details, and cancel reservations. This API is ideal for travel agencies, booking platforms, and airline service providers.

APIs

Booking Async API

1.0.0
Kafka-based event-driven architecture to create Bookings.

Bookings API

1.0.0
Lookup or create bookings

Base URL

https://api.kongair.com/v1

All endpoints should be prefixed with the above base URL.

Authentication

The API requires an API key for authentication. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Endpoints

Retrieve Available Flights

GET /flights

Fetch a list of available flights based on search criteria.

Request Parameters

ParameterTypeLocationRequiredDescription
originstringQueryYesIATA code of the departure airport
destinationstringQueryYesIATA code of the arrival airport
datestringQueryYesFlight departure date (YYYY-MM-DD)

Response

Success (200 OK)
[
  {
    "id": "FL1234",
    "origin": "JFK",
    "destination": "LAX",
    "departure_time": "2025-06-01T08:30:00Z",
    "arrival_time": "2025-06-01T11:30:00Z",
    "price": 350.75
  }
]

Create a New Booking

POST /bookings

Reserve seats on a selected flight.

Request Body

{
  "flight_id": "FL1234",
  "passengers": [
    {
      "first_name": "John",
      "last_name": "Doe",
      "date_of_birth": "1985-05-20",
      "passport_number": "123456789"
    }
  ],
  "payment": {
    "method": "credit_card",
    "amount": 350.75
  }
}

Response

Success (201 Created)
{
  "id": "BK98765",
  "flight": {
    "id": "FL1234",
    "origin": "JFK",
    "destination": "LAX",
    "departure_time": "2025-06-01T08:30:00Z",
    "arrival_time": "2025-06-01T11:30:00Z",
    "price": 350.75
  },
  "passengers": [
    {
      "first_name": "John",
      "last_name": "Doe",
      "date_of_birth": "1985-05-20",
      "passport_number": "123456789"
    }
  ],
  "status": "confirmed"
}

Retrieve Booking Details

GET /bookings/{bookingId}

Fetch details of an existing booking.

Request Parameters

ParameterTypeLocationRequiredDescription
bookingIdstringPathYesUnique identifier of the booking

Response

Success (200 OK)
{
  "id": "BK98765",
  "flight": {
    "id": "FL1234",
    "origin": "JFK",
    "destination": "LAX",
    "departure_time": "2025-06-01T08:30:00Z",
    "arrival_time": "2025-06-01T11:30:00Z",
    "price": 350.75
  },
  "passengers": [
    {
      "first_name": "John",
      "last_name": "Doe",
      "date_of_birth": "1985-05-20",
      "passport_number": "123456789"
    }
  ],
  "status": "confirmed"
}

Cancel a Booking

DELETE /bookings/{bookingId}

Cancel an existing booking.

Request Parameters

ParameterTypeLocationRequiredDescription
bookingIdstringPathYesUnique identifier of the booking

Response

Success (204 No Content)

Data Models

Flight Object

FieldTypeDescription
idstringUnique flight identifier
originstringDeparture airport IATA code
destinationstringArrival airport IATA code
departure_timestringScheduled departure time (ISO 8601)
arrival_timestringScheduled arrival time (ISO 8601)
pricenumberFlight ticket price (USD)

Booking Object

FieldTypeDescription
idstringUnique booking identifier
flightobjectFlight details
passengersarrayList of passengers
statusstringBooking status (confirmed, cancelled)

Passenger Object

FieldTypeDescription
first_namestringPassenger’s first name
last_namestringPassenger’s last name
date_of_birthstringPassenger’s date of birth (YYYY-MM-DD)
passport_numberstringPassport number

Payment Object

FieldTypeDescription
methodstringPayment method (credit_card, paypal)
amountnumberTransaction amount (USD)

Rate Limits

To ensure fair usage, KongAir enforces rate limits on API requests:

  • Standard Tier: 1000 requests per hour
  • Enterprise Tier: 10,000 requests per hour

For higher limits, contact our API support team.

Support

For issues, feedback, or questions, reach out to KongAir Developer Support:

Conclusion

The KongAir Booking API provides a comprehensive solution for flight reservations, offering a seamless booking experience. Start integrating today to streamline air travel for your customers!