Flight Bookings

1.3 Get prebook details (optional)

Overview

Retrieve an existing flight checkout session (prebook) by ID, including any ancillary services already attached and a live catalog of remaining attachable services.

When to Use

  • Resume checkout — Reload prebook state after the user navigates away
  • Confirm attached ancillaries — Show selected seats/bags before final book
  • Reuse payment intent — Returns the stored Stripe transactionId / secretKey as-is (GET does not create or refresh a PaymentIntent)
  • Credit balance — Optionally include a live credit-line snapshot with includeCreditBalance=true

What You Get

  • Same core FlightPrebookData shape as POST /flights/prebooks / attach-services (journey, pricing, payment intent fields, servicesAttachable)
  • booking.selectedServices / booking.bookedServices when services were attached
  • Live servicesAttachable from the provider (not persisted)
  • Existing payment fields conserved from create/attach
  • Optional creditLine when includeCreditBalance=true (live remaining credit when the account can cover the prebook price)

Quick Start

Provide the prebookId returned from POST /flights/prebooks in the URL path. Optionally pass includeCreditBalance=true to include credit-line availability.

get/flights/prebooks/{prebookId}

Request

  • Base URL
    https://api.liteapi.travel/v3.0
  • URL
    https://api.liteapi.travel/v3.0/flights/prebooks/{prebookId}
  • Auth
    API key in header X-API-Key

Path parameters

prebookIdstring required

The unique prebook identifier

Query parameters

includeCreditBalanceboolean

When true, include credit line availability in the response when the account can cover the prebook price.

Response

Prebook retrieved successfully; includes attached services when present and live servicesAttachable catalog

Example response

{
  "data": [
    {
      "booking": {
        "journey": {
          "segments": [
            {
              "stops": [
                {
                  "airportCode": "GIG",
                  "airportName": "Rio Galeão – Tom Jobim International Airport",
                  "arrivalTime": "2026-10-17T18:35:00",
                  "departureTime": "2026-10-17T19:25:00",
                  "duration": {
                    "iso8601": "PT50M",
                    "minutes": 50
                  }
                }
              ]
            }
          ],
          "baggage": {
            "included": [
              {
                "bagType": "cabin",
                "description": "1 cabin bag up to 8 kg",
                "passengerType": "ADT",
                "pieces": 1,
                "size": "55x40x20",
                "unit": "kg",
                "weightKg": 8
              }
            ],
            "paid": [
              {
                "bagType": "cabin",
                "description": "1 cabin bag up to 8 kg",
                "passengerType": "ADT",
                "pieces": 1,
                "size": "55x40x20",
                "unit": "kg",
                "weightKg": 8
              }
            ]
          },
          "terms": {
            "summary": [
              {
                "level": "warning",
                "message": "Changes allowed with fee"
              }
            ]
          },
          "cabinClass": "ECONOMY"
        },
        "selectedServices": [
          {
            "serviceId": "g6Rwc2lk2SQwMTlkMDY3NC1hMzQzLTc0OGEtYmYyYS1jMDk4ZmNjMTk2ZGGhcMtAfB6PXCj1w6Fjo1VTRA==",
            "quantity": 1
          }
        ]
      },
      "servicesAttachable": {
        "metadata": {
          "ancillaryExclusions": [
            {
              "type": "selectOne",
              "scope": "perPassenger",
              "reason": "These options are alternatives - select at most one."
            }
          ]
        }
      },
      "creditLine": {
        "remainingCredit": 1250.5,
        "currency": "USD"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.