Flight Bookings

Select services on a ticketed booking

Overview

Selects seats / bags to sell on a ticketed booking (status CONFIRMED, canAddServicesAfterTicketing: true) and prepares their payment. Nothing is sold yet: confirm with POST /flights/bookings/{bookingId}/services/confirm.

Payment

The services are paid with the booking's own method:

  • Stripe bookings (TRANSACTION_ID) - a new payment intent is created for pendingTotal (transactionId, secretKey). Confirm it with the Stripe SDK; it is captured only once the airline sells the services.
  • Credit-line bookings (CREDIT) - the credit line is checked now and billed after the sale.

Bookings paid otherwise (partner card, account card, third party) cannot buy services after ticketing.

Changing the selection

Calling this endpoint again replaces the pending selection (its payment intent is cancelled). Send selectedServices: [] to clear it.

Access

Not enabled by default — contact the LiteAPI team. System admins and operations users (Connect dashboard) can act on any account's booking; the request then uses the booking owner's markups and payment settings.

post/flights/bookings/{bookingId}/services

Request

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

Path parameters

bookingIdstring uuid required

Flight booking identifier

Request body

Example request

{
  "selectedServices": [
    {
      "serviceId": "g6Rwc2lk2SQwMTlkMDY3NC1hMzQzLTc0OGEtYmYyYS1jMDk4ZmNjMTk2ZGGhcMtAfB6PXCj1w6Fjo1VTRA==",
      "quantity": 1
    }
  ]
}

Response

Selection stored and payment prepared

Example response

{
  "data": {
    "selectedServices": [
      {
        "serviceId": "g6Rwc2lk2SQwMTlkMDY3NC1hMzQzLTc0OGEtYmYyYS1jMDk4ZmNjMTk2ZGGhcMtAfB6PXCj1w6Fjo1VTRA==",
        "quantity": 1
      }
    ]
  }
}

Changes

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