prechargeFlightExtraCharges
Overview
Creates a pending post-booking extra-charge batch for an existing flight booking and returns an opaque chargesId. For Stripe-paid bookings, also creates a PaymentIntent (transactionId + secretKey) when usePaymentSdk is true.
Access
Requires Flights API access. Post-booking extra charges are not enabled by default — contact the LiteAPI support team to request access.
When to Use
Attach fees after confirmation (seat change, baggage, admin adjustment)
Obtain a Stripe client secret so the customer can confirm payment before
POST .../extra-charges/charges
What You Get
chargesId— Opaque token required by/extra-charges/charges(do not re-send charge lines)paymentTypes— Locked to the booking's original payment (TRANSACTION_IDorCREDIT)transactionId/secretKey— Present for Stripe bookings whenusePaymentSdkis trueExisting extras totals plus pending batch totals
Constraints
Booking status must be
CONFIRMEDorPENDING_CONFIRMATIONAll lines in one request must share the same currency
Payment method on
/chargesmust match the original booking payment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| charges | Yes | Charge lines to attach. All lines must use the booking sellingCurrency. | |
| bookingId | Yes | Flight booking identifier | |
| usePaymentSdk | No | Required true for Stripe bookings so a PaymentIntent is created. Ignored for CREDIT bookings. |