---
title: "Booking Async API"
url: "https://portal.kongair.dev/apis/booking-async-api/versions/2cc3a47c-8185-483c-ad90-7ba69166b60f"
---

# Booking Async API

AsyncAPI specification document.

```json
{"asyncapi":"2.6.0","info":{"title":"Booking Async API","version":"1.0.0","description":"Asynchronous API for booking airline flights"},"servers":{"production":{"url":"broker.example.com:5672","protocol":"amqp","description":"Production RabbitMQ broker"}},"channels":{"flight/booking/request":{"publish":{"summary":"Publish a flight booking request","operationId":"publishFlightBookingRequest","message":{"$ref":"#/components/messages/FlightBookingRequestMessage"}}},"flight/booking/confirmation":{"subscribe":{"summary":"Subscribe to flight booking confirmations","operationId":"subscribeFlightBookingConfirmation","message":{"$ref":"#/components/messages/FlightBookingConfirmationMessage"}}},"flight/booking/updates":{"subscribe":{"summary":"Subscribe to flight booking updates","operationId":"subscribeFlightBookingUpdates","message":{"$ref":"#/components/messages/FlightBookingUpdateMessage"}}}},"components":{"messages":{"FlightBookingRequestMessage":{"name":"FlightBookingRequest","payload":{"$ref":"#/components/schemas/FlightBookingRequest"},"contentType":"application/json"},"FlightBookingConfirmationMessage":{"name":"FlightBookingConfirmation","payload":{"$ref":"#/components/schemas/FlightBookingConfirmation"},"contentType":"application/json"},"FlightBookingUpdateMessage":{"name":"FlightBookingUpdate","payload":{"$ref":"#/components/schemas/FlightBookingUpdate"},"contentType":"application/json"}},"schemas":{"FlightBookingRequest":{"type":"object","properties":{"flightNumber":{"type":"string","description":"The flight number"},"departureAirport":{"type":"string","description":"The departure airport code"},"arrivalAirport":{"type":"string","description":"The arrival airport code"},"departureDate":{"type":"string","format":"date","description":"The departure date"},"passengerName":{"type":"string","description":"The name of the passenger"}},"required":["flightNumber","departureAirport","arrivalAirport","departureDate","passengerName"],"example":{"flightNumber":"UA123","departureAirport":"JFK","arrivalAirport":"LAX","departureDate":"2024-01-15","passengerName":"John Doe"}},"FlightBookingConfirmation":{"type":"object","properties":{"bookingId":{"type":"string","description":"The unique booking identifier"},"flightNumber":{"type":"string","description":"The flight number"},"departureAirport":{"type":"string","description":"The departure airport code"},"arrivalAirport":{"type":"string","description":"The arrival airport code"},"departureDate":{"type":"string","format":"date","description":"The departure date"},"passengerName":{"type":"string","description":"The name of the passenger"},"status":{"type":"string","enum":["CONFIRMED","PENDING","CANCELLED"],"description":"The status of the booking"}},"required":["bookingId","flightNumber","departureAirport","arrivalAirport","departureDate","passengerName","status"],"example":{"bookingId":12345,"flightNumber":"UA123","departureAirport":"JFK","arrivalAirport":"LAX","departureDate":"2024-01-15","passengerName":"John Doe","status":"CONFIRMED"}},"FlightBookingUpdate":{"type":"object","properties":{"bookingId":{"type":"string","description":"The unique booking identifier"},"status":{"type":"string","enum":["CONFIRMED","PENDING","CANCELLED","DELAYED"],"description":"The updated status of the booking"},"updateTime":{"type":"string","format":"date-time","description":"The time the update was issued"}},"required":["bookingId","status","updateTime"],"example":{"bookingId":12345,"status":"DELAYED","updateTime":"2024-01-14T12:00:00Z"}}}}}
```
