---
title: "BookingRequest"
url: "https://kongair.terwilligar.com/apis/llm-flight-booking-assistant-1-0-0/versions/76f089d9-b12c-4dd8-a400-e4c611faf544/schemas/BookingRequest"
---

> Full API specification: https://kongair.terwilligar.com/apis/llm-flight-booking-assistant-1-0-0/versions/76f089d9-b12c-4dd8-a400-e4c611faf544.md

# BookingRequest

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Flight LLM Booking API
  version: 1.0.0
servers:
  - url: https://api.example.com/v1
    description: Production server
    variables:
      version:
        enum:
          - v1
          - v2
        default: v1
      region:
        enum:
          - us
          - eu
          - asia
        default: us
        description: Geographic region
  - url: https://sandbox.example.com/{version}
    description: Sandbox server
    variables:
      version:
        default: v1
components:
  schemas:
    Passenger:
      type: object
      properties:
        firstName:
          type: string
        lastName:
          type: string
        dateOfBirth:
          type: string
          format: date
        passportNumber:
          type: string
        nationality:
          type: string
      required:
        - firstName
        - lastName
        - dateOfBirth
    PaymentMethod:
      type: object
      discriminator:
        propertyName: type
      oneOf:
        - $ref: "#/components/schemas/CreditCard"
        - $ref: "#/components/schemas/PayPal"
    CreditCard:
      type: object
      properties:
        type:
          type: string
          enum:
            - credit_card
        cardNumber:
          type: string
        expiryMonth:
          type: integer
          minimum: 1
          maximum: 12
        expiryYear:
          type: integer
          minimum: 2025
        cvv:
          type: string
      required:
        - type
        - cardNumber
        - expiryMonth
        - expiryYear
        - cvv
    PayPal:
      type: object
      properties:
        type:
          type: string
          enum:
            - paypal
        email:
          type: string
          format: email
      required:
        - type
        - email
    BookingRequest:
      type: object
      properties:
        flightId:
          type: string
          format: uuid
        passengers:
          type: array
          items:
            $ref: "#/components/schemas/Passenger"
        payment:
          $ref: "#/components/schemas/PaymentMethod"
      required:
        - flightId
        - passengers
        - payment
```
