> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rovemiles.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get flight offer details



## OpenAPI

````yaml https://api.staging.rovemiles.com/functions/v1/openapi get /flights/offers/{id}
openapi: 3.0.3
info:
  title: Rove Miles API
  version: 0.1.0
  description: Data Utils, Flights, Hotels & Miles endpoints.
servers:
  - url: https://api.staging.rovemiles.com/functions/v1
security:
  - bearerAuth: []
tags:
  - name: Data
    description: Operations related to reference data like airports and places
  - name: Flights
    description: Operations related to flight search and booking
  - name: Hotels
    description: Operations related to hotel search and booking
  - name: Miles
    description: Operations related to miles and points management
  - name: Deals
    description: Operations related to special offers and promotions for flights and hotels
paths:
  /flights/offers/{id}:
    get:
      tags:
        - Flights
      summary: Get flight offer details
      parameters:
        - $ref: '#/components/parameters/IdParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlightOffer'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    IdParam:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Unique identifier
  schemas:
    FlightOffer:
      type: object
      required:
        - id
        - price
        - itineraries
      properties:
        id:
          type: string
          description: Unique identifier for the flight offer
        bookingType:
          type: string
          description: Type of booking
          enum:
            - direct
            - transfer
          example: direct
        price:
          type: object
          required:
            - miles
          properties:
            miles:
              type: integer
              description: Total price in Rove Miles
            taxes:
              type: object
              nullable: true
              properties:
                amount:
                  type: string
                  description: Amount of taxes and fees in local currency
                currency:
                  type: string
                  description: Currency code for taxes and fees (ISO 4217)
                  pattern: ^[A-Z]{3}$
            milesPerPassenger:
              type: object
              properties:
                adult:
                  type: integer
                  description: Miles required per adult passenger
                child:
                  type: integer
                  description: Miles required per child passenger
                infant:
                  type: integer
                  description: Miles required per infant passenger
        passengers:
          type: object
          properties:
            adults:
              type: integer
              description: Number of adult passengers
            children:
              type: integer
              description: Number of child passengers
            infants:
              type: integer
              description: Number of infant passengers
        cabinClass:
          type: string
          description: Selected cabin class
          enum:
            - ECONOMY
            - PREMIUM_ECONOMY
            - BUSINESS
            - FIRST
        itineraries:
          type: array
          description: Flight segments for outbound and return journeys
          items:
            type: object
            required:
              - segments
              - duration
            properties:
              segments:
                type: array
                items:
                  $ref: '#/components/schemas/FlightSegment'
              duration:
                type: string
                description: Total duration of the itinerary in ISO 8601 format
                example: PT8H30M
        availability:
          type: string
          description: Available seats at this price point
          enum:
            - LIMITED
            - AVAILABLE
            - WAITLIST
          default: AVAILABLE
      example:
        id: offer123
        bookingType: direct
        price:
          miles: 75000
          taxes:
            amount: '129.40'
            currency: USD
          milesPerPassenger:
            adult: 37500
            child: 37500
            infant: 0
        passengers:
          adults: 2
          children: 1
          infants: 0
        cabinClass: BUSINESS
        itineraries:
          - segments:
              - departureAirport: JFK
                arrivalAirport: LHR
                departureTime: '2023-10-15T18:30:00'
                arrivalTime: '2023-10-16T06:45:00'
                flightNumber: BA178
                airline:
                  code: BA
                  name: British Airways
                duration: PT7H15M
            duration: PT7H15M
          - segments:
              - departureAirport: LHR
                arrivalAirport: JFK
                departureTime: '2023-10-25T10:20:00'
                arrivalTime: '2023-10-25T13:25:00'
                flightNumber: BA175
                airline:
                  code: BA
                  name: British Airways
                duration: PT7H05M
            duration: PT7H05M
        availability: LIMITED
    FlightSegment: {}
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 400
            message: Bad Request
    Unauthorized:
      description: Unauthorized - Invalid or missing token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 401
            message: Unauthorized - Invalid or missing token
    InternalError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 500
            message: Internal Server Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key for authentication. Add your API key to the Authorization header
        with this format: 'Bearer your_api_key_here'

````