1.2 Attach services to prebook (Optional)

Overview

Add ancillary services such as seat selection or extra baggage to an existing prebook before confirming the final booking.

When to Use

  • Seat selection - Allow users to choose specific seats after prebook
  • Extra baggage - Let users add additional luggage allowance
  • Price update - Required when services change the total booking cost

What You Get

  • Updated prebook with the selected services attached
  • New payment intent (transactionId, secretKey) reflecting the updated total price
  • Same response format as the prebook endpoint for easy integration

Key Features

  • Seat selection: Assign specific seats to each passenger and segment
  • Extra baggage: Add checked baggage or overweight allowances
  • Updated payment: Automatically creates a new Stripe payment intent with the adjusted price
  • Modifies in place: Updates the existing prebook record in the database

Quick Start

Provide the prebookId in the URL path and a services array in the request body. Use the new transactionId from the response when completing the booking at POST /flights/bookings.

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here!