Add a flight
add_flightAdds a flight to the person’s Untap account and returns the UK261 or EU261 verdict, the amount and the airline’s claim link. For past flights Untap checks AeroDataBox flight-status records; the status, delay and actual arrival fields are optional, and when left out Untap looks them up. Takes the airline’s two-letter IATA code (BA, U2, FR) and three-letter airport codes (LHR, BCN). When the airports given differ from the flight-status record, the result says so. Compensation applies to arrival delays of 3 hours or more and to cancellations. Requires sign-in to Untap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Optional. What happened to the flight, if known. When left out, Untap looks the flight up in AeroDataBox flight-status records. | |
| airline_iata | Yes | Two-letter IATA airline code, e.g. "BA" for British Airways, "U2" for easyJet. | |
| arrival_iata | Yes | Three-letter IATA arrival airport code, e.g. "BCN". | |
| delay_minutes | No | Optional. Arrival delay in minutes, if known. | |
| flight_number | Yes | Flight number including the airline prefix, e.g. "BA2551". | |
| actual_arrival | No | Optional. Actual arrival as an ISO 8601 datetime, if known. | |
| departure_iata | Yes | Three-letter IATA departure airport code, e.g. "LHR". | |
| passenger_name | Yes | Passenger name as printed on the ticket, or null if not visible. | |
| booking_reference | Yes | PNR / airline booking reference if available, otherwise null. | |
| scheduled_arrival | Yes | Scheduled arrival as ISO 8601 datetime. | |
| ticket_price_pence | Yes | Total fare paid in pence. | |
| scheduled_departure | Yes | Scheduled departure as ISO 8601 datetime. |