bookings

Update Flight Booking

Apply user corrections to an imported flight booking.

Writes the edited ExtractedFlight into raw_data["data"] — preserving the email_metadata/folded_from envelope via spread — marks the row user_edited so a later re-scan/merge keeps the human values on conflict (merge_or_judge's "current" conflict policy), and re-derives the denormalized event_date + confirmation_number columns that drive list ordering and the conf label.

patch/bookings/{booking_id}

Path parameters

booking_idstring uuid required

Request body

type'one-way' | 'round-trip'
pricenumber nullable

Total cash price if mentioned (null if fully award-booked)

currencystring

ISO 4217 currency code (e.g., USD, EUR, JPY)

confirmation_numberstring nullable
booking_referencestring nullable

Airline PNR / record locator (6-char alphanumeric, e.g., 'ABCDEF'). Different from confirmation_number which may be an OTA/agent booking code.

eticket_numberstring nullable

E-ticket number (typically 13 digits, e.g., '0012345678901')

fare_classstring nullable

Fare/booking class letter (e.g., 'Y', 'B', 'J', 'W')

checked_bagsinteger nullable

Number of checked bags included or purchased

carry_on_bagsinteger nullable

Number of carry-on bags included

check_in_urlstring nullable

Online check-in URL if present in the email

oag_enriched_atstring nullable

ISO timestamp when OAG enrichment was applied

passenger_countinteger nullable

Number of adult passengers on this booking (e.g., 2 passengers)

passenger_namesstring[]

Names of passengers if listed (e.g., ['John Smith', 'Jane Smith'])

childreninteger nullable

Number of child passengers (aged 2-11)

infantsinteger nullable

Number of infant passengers (under 2)

Response

Successful Response

idstring required
event_datestring nullable required
created_atstring required
confirmation_numberstring nullable required
status'active' | 'cancelled'
gmail_linkstring nullable
import_kind'email' | 'image' | 'text' nullable
import_linkstring nullable
source'email_import' | 'first_party'
trip_idstring nullable
trip_titlestring nullable
booking_type'flight'

Changes

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