Developer Reference

Booking Details API

MK

Written by Mohd Khalid, Founding Engineer at Flyo.ai

khalid@flyo.ai

Overview

The Flyo Booking Details API reads a booking from the airline's own manage-booking page and sends it to you in one common shape, whatever the airline: status, flights, passengers with their seats, meals, baggage and add-ons, payment and contact details.

You send the PNR, the airline, the first flight's date and one passenger's name. Flyo accepts the lookup straight away (HTTP 202) and posts the result to your webhook when the airline has answered, usually within a few minutes.

Access is invite-only. Register with Flyo and agree a proposal for the APIs you need. Once you are onboarded you receive your partner dashboard login, where you create API keys, and the API address (host) for your account. It is the same host and the same keys as the Webcheckin API.

Words used in this guide

Lookup
One request to read one booking. It is identified by its jobId, which every webhook repeats as job_id.
identityId
The booking the lookup is for, as <airline>-<PNR>-<departure date>, for example 6E-ABC123-2026-11-20. Two lookups of the same booking share it; their jobId differs.
Local time
Flight times in the booking data are the airport's own wall clock, without a timezone, as the airline shows them, for example 2026-11-20T06:15.

Quickstart: your first lookup

1. Get access and configure your server

Use the API host and API key from your onboarding, without a trailing slash on the host. If you already use the Webcheckin API, the same key works here.

Ready to integrate?

Get your API key and start sending requests to the Flyo partner API.

Get your API key
Configure your environment
export FLYO_API_BASE_URL='https://<API-host-from-your-onboarding>'
export FLYO_API_KEY='<API-key-from-your-dashboard>'

2. Look up a booking

There is no test environment: every accepted lookup reads a real booking from the airline and uses one credit. Use a booking you own. Replace the example with its PNR, airline, first flight's date and one passenger's name, and point callbackData at an HTTPS endpoint on your server.

Look up a booking
curl -X POST "$FLYO_API_BASE_URL/extPartner/api/bookingdetails" \
  -H "X-API-Key: $FLYO_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "pnr": "ABC123",
  "flights": [
    {
      "airline": "6E",
      "departure_date": "2026-11-20"
    }
  ],
  "passengers": [
    {
      "first_name": "Rahul",
      "last_name": "Sharma"
    }
  ],
  "callbackData": {
    "callbackUrl": "https://partner.example.com/webhooks/flyo",
    "auth_header": "Authorization: Bearer <your-webhook-secret>"
  }
}'
Example response: HTTP 202
{
  "success": true,
  "jobId": "019a4e2b-7c41-7d3a-9b2e-5f1c8a6d4e20",
  "identityId": "6E-ABC123-2026-11-20",
  "status": "QUEUED"
}

3. Receive the result

Answer every webhook with 2xx. The first one (state IN_PROGRESS) confirms the lookup has started; the second carries the result. Branch on status: SUCCESS, NOT_FLOWN and CANCELLED include the booking in data.

See a full SUCCESS webhook

Authentication

Send your API key in the X-API-Key header of every request. Create keys in the partner dashboard; a key stays valid until you revoke it there. These are the same keys the Webcheckin API uses.

A missing, unknown or revoked key returns 401. Keep keys on your server, never in browser or mobile app code or in source control.

Example
POST /extPartner/api/bookingdetails
X-API-Key: flyo_<issued-key>
POST/extPartner/api/bookingdetails

Look Up Booking Details

Authentication
X-API-Key: flyo_<issued-key>

Queues a lookup of one booking and returns its jobId. Uses one credit; see Credits for when it is given back.

The body has the same shape as a Webcheckin subscribe, so you can send the booking you already hold. Only pnr, the first flight's airline and departure_date, the first passenger's first_name and last_name and callbackData are read; any other fields are ignored.

Checks run in this order: your plan and credits (402), the request body (400, the first problem found), whether Flyo supports the airline (422). Nothing is charged for a refused request.

Each request starts a new lookup, even for a booking you looked up before, and each one uses a credit. To refresh a booking, look it up again.

Request

Headers
POST /extPartner/api/bookingdetails
X-API-Key: flyo_<issued-key>
Content-Type: application/json
cURL
curl -X POST "$FLYO_API_BASE_URL/extPartner/api/bookingdetails" \
  -H "X-API-Key: $FLYO_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "pnr": "ABC123",
  "flights": [
    {
      "airline": "6E",
      "departure_date": "2026-11-20"
    }
  ],
  "passengers": [
    {
      "first_name": "Rahul",
      "last_name": "Sharma"
    }
  ],
  "callbackData": {
    "callbackUrl": "https://partner.example.com/webhooks/flyo",
    "auth_header": "Authorization: Bearer <your-webhook-secret>"
  }
}'
Request Body
{
  "pnr": "ABC123",
  "flights": [
    {
      "airline": "6E",
      "departure_date": "2026-11-20"
    }
  ],
  "passengers": [
    {
      "first_name": "Rahul",
      "last_name": "Sharma"
    }
  ],
  "callbackData": {
    "callbackUrl": "https://partner.example.com/webhooks/flyo",
    "auth_header": "Authorization: Bearer <your-webhook-secret>"
  }
}

Request Fields

FieldTypeRequiredDescription
pnrstringYesThe airline booking reference: 6-13 letters or digits. Sent in upper case to the airline.
flightsarrayYesThe booking's flights. Only the first entry is used; send the first flight of the booking.
flights[].airlinestringYesIATA code of the airline holding the booking, for example 6E or AI.
flights[].departure_datestringYesThe first flight's departure date as YYYY-MM-DD (the origin airport's local date). It must be a real calendar date.
passengersarrayYesPassengers on the booking. Only the first entry is used; one name on the booking is enough to read the whole booking.
passengers[].first_namestringYesFirst name as on the booking.
passengers[].last_namestringYesLast name as on the booking. Most airlines look the booking up by PNR and last name.
callbackDataobjectYesWhere to send the result. Results come only by webhook, so it is required.
callbackData.callbackUrlstringYesYour webhook endpoint: an HTTPS URL with a public hostname. No IP addresses, localhost or internal names, no user:password and no #fragment.
callbackData.auth_headerstringYesThe header Flyo sends with every webhook, written as "Header-Name: value". The name must be Authorization or X-API-Key, for example "Authorization: Bearer <your-webhook-secret>". The value can't contain another colon or a line break.

Codes are not case-sensitive: pnr and airline are upper-cased before the lookup.

Response

HTTP 202 Accepted. The lookup is queued; the result is posted to callbackUrl.

Response
{
  "success": true,
  "jobId": "019a4e2b-7c41-7d3a-9b2e-5f1c8a6d4e20",
  "identityId": "6E-ABC123-2026-11-20",
  "status": "QUEUED"
}

Response Fields

FieldTypeDescription
successbooleantrue when the lookup was accepted.
jobIdstringThe lookup's id. Every webhook repeats it as job_id: save it with your own booking reference.
identityIdstringThe booking, as <airline>-<PNR>-<departure date>. Webhooks repeat it as identity_id.
statusstringAlways QUEUED: the lookup is waiting for a worker. The result arrives by webhook.

Errors

HTTP StatusMessage
400VALIDATION_ERROR — a field is missing or malformed; message names it, for example "pnr must be 6-13 letters or digits" or "callbackUrl must be an HTTPS URL with a public hostname".
401Missing, invalid or revoked API key.
402QUOTA_EXHAUSTED — no booking details credits left (quota shows included and consumed units). NO_ENTITLEMENT or ENTITLEMENT_SUSPENDED — the API is not enabled or is suspended for your account.
422REJECTED — Flyo doesn't support this airline yet. Not charged.
429Rate limit exceeded. Wait retryAfter seconds.
503SERVICE_UNAVAILABLE — the lookup service is temporarily unavailable. Not charged; retry shortly.
500INTERNAL_ERROR — unexpected error. Retry later.

Webhooks

Flyo posts a bookingdetails.update event to your callbackUrl twice for every lookup: once with state IN_PROGRESS as soon as the lookup is accepted, then once with the result.

The result has state COMPLETED when the airline answered (status says how: SUCCESS, NOT_FLOWN, CANCELLED, INVALID_PNR, LOGIN_REQUIRED, OTP_REQUIRED or NOT_ALLOWED), or FAILED when Flyo couldn't get an answer from the airline (BLOCKED, TIMEOUT, SITE_ERROR or TECHNICAL_ERROR). reason explains it in plain words when there is something to say, and data holds the booking for SUCCESS, NOT_FLOWN and CANCELLED (null otherwise).

Flyo does not sign the body. Every event carries the header you set in callbackData.auth_header, for example Authorization: Bearer <your-webhook-secret>, and Content-Type: application/json: check the header on your server before trusting the event.

Answer 2xx within 10 seconds, then process the event. Flyo retries network errors, timeouts, 5xx and 429 a limited number of times; any other 4xx stops delivery of that event. Redirects are not followed.

Events can arrive more than once, and the IN_PROGRESS event can arrive after the result. Deduplicate by event_id (the same event always has the same id), match events to your lookup by job_id, and never let an IN_PROGRESS event overwrite a result.

First event: lookup accepted
{
  "event": "bookingdetails.update",
  "event_id": "4b1d0c7e9a2f63858e0b5a7c1d9f2e4b6a8c0e2f4d6b8a0c2e4f6a8b0d2c4e6f",
  "occurredAt": "2026-11-02T09:30:01.204Z",
  "job_id": "019a4e2b-7c41-7d3a-9b2e-5f1c8a6d4e20",
  "identity_id": "6E-ABC123-2026-11-20",
  "state": "IN_PROGRESS",
  "status": null,
  "reason": null,
  "data": null
}
Result event: booking found (SUCCESS)
{
  "event": "bookingdetails.update",
  "event_id": "c3e5a7b9d1f3e5c7a9b1d3f5e7c9a1b3d5f7e9c1a3b5d7f9e1c3a5b7d9f1e3a5",
  "occurredAt": "2026-11-02T09:31:12.876Z",
  "job_id": "019a4e2b-7c41-7d3a-9b2e-5f1c8a6d4e20",
  "identity_id": "6E-ABC123-2026-11-20",
  "state": "COMPLETED",
  "status": "SUCCESS",
  "reason": null,
  "data": {
    "pnr": "ABC123",
    "airline_code": "6E",
    "booking_status": "CONFIRMED",
    "booking_status_raw": "Confirmed",
    "booking_date": "2026-10-02",
    "pax_count": 2,
    "lead_passenger": "Rahul Sharma",
    "journeys": [
      {
        "index": 0,
        "direction": "OUTBOUND",
        "origin": "DEL",
        "destination": "BOM",
        "departure_date": "2026-11-20",
        "duration": "2h 10m",
        "stops": 0,
        "segments": [
          {
            "segment_id": "0-DEL-BOM",
            "carrier": "6E",
            "flight_number": "6E 2135",
            "aircraft": "A321",
            "origin": "DEL",
            "origin_name": "Indira Gandhi International Airport",
            "origin_terminal": "1",
            "destination": "BOM",
            "destination_name": "Chhatrapati Shivaji Maharaj International Airport",
            "destination_terminal": "2",
            "departure_local": "2026-11-20T06:15",
            "arrival_local": "2026-11-20T08:25",
            "duration": "2h 10m",
            "checkin_closes": "2026-11-20T05:15",
            "layover_after": null,
            "cabin_baggage_kg": 7,
            "checkin_baggage_kg": 15,
            "cabin": "Economy",
            "fare_class": "Saver",
            "status_raw": "Confirmed"
          }
        ]
      }
    ],
    "passengers": [
      {
        "full_name": "Rahul Sharma",
        "title": "Mr",
        "first_name": "Rahul",
        "last_name": "Sharma",
        "pax_type": "ADULT",
        "gender": "Male",
        "age": null,
        "loyalty": {
          "number": "1234567890",
          "tier": "BluChip"
        },
        "segments": [
          {
            "segment_id": "0-DEL-BOM",
            "flight_status": "NOT_CHECKED_IN",
            "flight_status_raw": "Not checked in",
            "seat": "12A",
            "meals": [
              "Veg sandwich"
            ],
            "cabin_baggage_kg": 7,
            "checkin_baggage_kg": 15,
            "baggage": [
              "15 kg check-in"
            ],
            "services": [
              "VGML"
            ],
            "addons": [
              "Fast Forward"
            ]
          }
        ]
      },
      {
        "full_name": "Priya Sharma",
        "title": "Mrs",
        "first_name": "Priya",
        "last_name": "Sharma",
        "pax_type": "ADULT",
        "gender": "Female",
        "age": null,
        "loyalty": {
          "number": null,
          "tier": null
        },
        "segments": [
          {
            "segment_id": "0-DEL-BOM",
            "flight_status": "NOT_CHECKED_IN",
            "flight_status_raw": "Not checked in",
            "seat": "12B",
            "meals": [],
            "cabin_baggage_kg": 7,
            "checkin_baggage_kg": 15,
            "baggage": [
              "15 kg check-in"
            ],
            "services": [],
            "addons": []
          }
        ]
      }
    ],
    "payment": {
      "currency": "INR",
      "total_paid": 11840,
      "balance_due": 0,
      "refund_amount": null,
      "lines": [
        {
          "label": "Base fare",
          "value": "9,600"
        },
        {
          "label": "Taxes and fees",
          "value": "1,890"
        },
        {
          "label": "Seats",
          "value": "350"
        }
      ]
    },
    "contact": {
      "email": "rahul.sharma@example.com",
      "phone": "+91 98765 43210"
    },
    "raw": {}
  }
}
Result event: no answer from the airline (FAILED, refunded)
{
  "event": "bookingdetails.update",
  "event_id": "e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e3a5c7b9d1f3e5a7c9b1d3f5e7a9",
  "occurredAt": "2026-11-02T09:33:40.512Z",
  "job_id": "019a4e2b-7c41-7d3a-9b2e-5f1c8a6d4e20",
  "identity_id": "6E-ABC123-2026-11-20",
  "state": "FAILED",
  "status": "TIMEOUT",
  "reason": "The airline website did not respond in time",
  "data": null
}

Event fields

FieldTypeDescription
eventstringAlways bookingdetails.update.
event_idstringUnique id of this event; repeated deliveries of the same event keep it. Use it to deduplicate.
occurredAtstringWhen Flyo sent the event, as a UTC ISO-8601 timestamp.
job_idstringThe jobId returned by your lookup request.
identity_idstringThe identityId returned by your lookup request.
statestringIN_PROGRESS (lookup accepted), COMPLETED (the airline answered) or FAILED (no answer from the airline).
statusstring | nullThe result: see Result statuses. null while IN_PROGRESS.
reasonstring | nullWhy, in plain words, when there is something to explain: for example what is missing from a SUCCESS, or why the lookup failed. Show it to your team; don't parse it.
dataobject | nullThe booking (see Booking data) for SUCCESS, NOT_FLOWN and CANCELLED; null for every other status and while IN_PROGRESS.

Result statuses

status in the result event says what the airline answered. state is COMPLETED for an answer from the airline and FAILED when Flyo couldn't get one; FAILED lookups give their credit back.

statusstatedataChargedMeaning
SUCCESSCOMPLETEDYesYesBooking found. If the airline page left part of it out, the booking is still returned and reason says what is missing.
NOT_FLOWNCOMPLETEDYesYesBooking found, but the airline marks the passenger you sent as a no-show and shows no flown flight for them. reason names the passengers and flights.
CANCELLEDCOMPLETEDYesYesBooking found, but it is cancelled, or no flights are left on it (cancelled or refunded).
INVALID_PNRCOMPLETEDNoYesThe airline found no booking for this PNR and name. Check the PNR, last name and airline before looking it up again.
LOGIN_REQUIREDCOMPLETEDNoYesThe airline only shows this booking after logging in to the account it was booked with.
OTP_REQUIREDCOMPLETEDNoYesThe airline asks for a one-time password before showing this booking.
NOT_ALLOWEDCOMPLETEDNoYesThe airline won't show this booking on its website, for example a booking that must be retrieved on a partner airline's site or through the travel agent that made it. reason says which.
BLOCKEDFAILEDNoNo, refundedThe airline's website blocked the lookup. Retry later.
TIMEOUTFAILEDNoNo, refundedThe airline's website didn't respond in time. Retry later.
SITE_ERRORFAILEDNoNo, refundedThe airline's website showed an error. Retry later.
TECHNICAL_ERRORFAILEDNoNo, refundedFlyo couldn't complete the lookup. Retry later; contact Flyo if it keeps happening.

Booking data

Every airline's booking comes back in this shape. A field the airline doesn't show is null (or an empty list); it is never left out. Times are the airport's local time without a timezone, as the airline shows them (for example 2026-11-20T06:15), and durations, dates and other text are as the airline writes them.

Each passenger's segments point to a flight segment by segment_id, so you can join a passenger's seat, meals and baggage to the flight they belong to.

Booking

FieldTypeDescription
pnrstringThe booking reference.
airline_codestringIATA code of the airline, for example 6E.
booking_statusstringCONFIRMED, COMPLETED (travel is over), CANCELLED, ON_HOLD or UNKNOWN.
booking_status_rawstring | nullThe status as the airline writes it.
booking_datestring | nullWhen the booking was made, as the airline shows it.
pax_countnumber | nullNumber of passengers on the booking.
lead_passengerstring | nullName of the lead passenger.
journeysarrayThe booking's journeys (outbound, return), each with its flight segments.
passengersarrayEvery passenger on the booking, with what they have on each segment.
paymentobjectWhat was paid, what is due and any refund.
contactobjectThe booking's contact details as the airline holds them.
rawobjectAirline-specific extras that don't fit the common shape. Its contents differ by airline: don't rely on them.

journeys[]

FieldTypeDescription
indexnumberPosition of the journey in the booking, starting at 0.
directionstring | nullOUTBOUND or RETURN when the airline says so.
originstring | nullFirst airport of the journey (IATA).
destinationstring | nullLast airport of the journey (IATA).
departure_datestring | nullDeparture date of the journey.
durationstring | nullTotal journey time, as the airline shows it.
stopsnumber | nullNumber of stops.
segmentsarrayThe flights in this journey; fields below.

journeys[].segments[]

FieldTypeDescription
segment_idstring<journey index>-<origin>-<destination>, for example 0-DEL-BOM. Passenger segments refer to it.
carrierstring | nullOperating airline code.
flight_numberstring | nullFlight number, for example 6E 2135.
aircraftstring | nullAircraft type.
origin / destinationstring | nullAirport codes (IATA).
origin_name / destination_namestring | nullAirport names.
origin_terminal / destination_terminalstring | nullDeparture and arrival terminals.
departure_local / arrival_localstring | nullDeparture and arrival times, local to each airport, for example 2026-11-20T06:15.
durationstring | nullFlight time.
checkin_closesstring | nullWhen check-in closes for this flight, as the airline shows it.
layover_afterstring | nullConnection time before the next segment.
cabin_baggage_kg / checkin_baggage_kgnumber | nullBaggage allowance in kg for the segment.
cabinstring | nullCabin as the airline names it, for example Economy or Business.
fare_classstring | nullBooking class code or fare name, for example Y or Saver.
status_rawstring | nullThe segment's status as the airline writes it.

passengers[]

FieldTypeDescription
full_namestring | nullName as the airline shows it.
title / first_name / last_namestring | nullName parts, when the airline shows them separately.
pax_typestringADULT, CHILD, INFANT, SENIOR, STUDENT or UNKNOWN.
genderstring | nullAs the airline shows it.
agenumber | nullAge, when shown.
loyaltyobjectFrequent-flyer number and tier: { number, tier }.
segmentsarrayWhat this passenger has on each flight; fields below.

passengers[].segments[]

FieldTypeDescription
segment_idstringThe flight segment this belongs to.
flight_statusstringFLOWN, NO_SHOW, CHECKED_IN, NOT_CHECKED_IN or UNKNOWN.
flight_status_rawstring | nullThe passenger's flight status as the airline writes it.
seatstring | nullSeat number, for example 12A.
mealsstring[]Meals booked.
cabin_baggage_kg / checkin_baggage_kgnumber | nullThis passenger's baggage allowance in kg.
baggagestring[]Baggage items or extras, as the airline describes them.
servicesstring[]Airline service (SSR) codes, as the airline shows them, for example VGML.
addonsstring[]Other add-ons, for example priority boarding or insurance.

payment and contact

FieldTypeDescription
payment.currencystring | nullCurrency code, for example INR.
payment.total_paidnumber | nullTotal amount paid.
payment.balance_duenumber | nullAmount still to pay.
payment.refund_amountstring | nullRefund amount, as the airline shows it (text, not a number).
payment.linesarrayThe price breakdown as the airline lists it: { label, value } pairs, both text.
contact.emailstring | nullContact email on the booking.
contact.phonestring | nullContact phone on the booking.
Example data
{
  "pnr": "ABC123",
  "airline_code": "6E",
  "booking_status": "CONFIRMED",
  "booking_status_raw": "Confirmed",
  "booking_date": "2026-10-02",
  "pax_count": 2,
  "lead_passenger": "Rahul Sharma",
  "journeys": [
    {
      "index": 0,
      "direction": "OUTBOUND",
      "origin": "DEL",
      "destination": "BOM",
      "departure_date": "2026-11-20",
      "duration": "2h 10m",
      "stops": 0,
      "segments": [
        {
          "segment_id": "0-DEL-BOM",
          "carrier": "6E",
          "flight_number": "6E 2135",
          "aircraft": "A321",
          "origin": "DEL",
          "origin_name": "Indira Gandhi International Airport",
          "origin_terminal": "1",
          "destination": "BOM",
          "destination_name": "Chhatrapati Shivaji Maharaj International Airport",
          "destination_terminal": "2",
          "departure_local": "2026-11-20T06:15",
          "arrival_local": "2026-11-20T08:25",
          "duration": "2h 10m",
          "checkin_closes": "2026-11-20T05:15",
          "layover_after": null,
          "cabin_baggage_kg": 7,
          "checkin_baggage_kg": 15,
          "cabin": "Economy",
          "fare_class": "Saver",
          "status_raw": "Confirmed"
        }
      ]
    }
  ],
  "passengers": [
    {
      "full_name": "Rahul Sharma",
      "title": "Mr",
      "first_name": "Rahul",
      "last_name": "Sharma",
      "pax_type": "ADULT",
      "gender": "Male",
      "age": null,
      "loyalty": {
        "number": "1234567890",
        "tier": "BluChip"
      },
      "segments": [
        {
          "segment_id": "0-DEL-BOM",
          "flight_status": "NOT_CHECKED_IN",
          "flight_status_raw": "Not checked in",
          "seat": "12A",
          "meals": [
            "Veg sandwich"
          ],
          "cabin_baggage_kg": 7,
          "checkin_baggage_kg": 15,
          "baggage": [
            "15 kg check-in"
          ],
          "services": [
            "VGML"
          ],
          "addons": [
            "Fast Forward"
          ]
        }
      ]
    },
    {
      "full_name": "Priya Sharma",
      "title": "Mrs",
      "first_name": "Priya",
      "last_name": "Sharma",
      "pax_type": "ADULT",
      "gender": "Female",
      "age": null,
      "loyalty": {
        "number": null,
        "tier": null
      },
      "segments": [
        {
          "segment_id": "0-DEL-BOM",
          "flight_status": "NOT_CHECKED_IN",
          "flight_status_raw": "Not checked in",
          "seat": "12B",
          "meals": [],
          "cabin_baggage_kg": 7,
          "checkin_baggage_kg": 15,
          "baggage": [
            "15 kg check-in"
          ],
          "services": [],
          "addons": []
        }
      ]
    }
  ],
  "payment": {
    "currency": "INR",
    "total_paid": 11840,
    "balance_due": 0,
    "refund_amount": null,
    "lines": [
      {
        "label": "Base fare",
        "value": "9,600"
      },
      {
        "label": "Taxes and fees",
        "value": "1,890"
      },
      {
        "label": "Seats",
        "value": "350"
      }
    ]
  },
  "contact": {
    "email": "rahul.sharma@example.com",
    "phone": "+91 98765 43210"
  },
  "raw": {}
}

Errors

An error answers with an HTTP status and the same JSON body as the Webcheckin API: success false, an error code and a readable message. A 400 names the first problem found; fix it and resend. A 429 adds retryAfter; a 402 QUOTA_EXHAUSTED adds quota.

Branch on the HTTP status and the error code, and show message to your team. A refused request never uses a credit.

Example: HTTP 400
{
  "success": false,
  "error": "VALIDATION_ERROR",
  "message": "pnr must be 6-13 letters or digits"
}
Example: HTTP 422
{
  "success": false,
  "error": "REJECTED",
  "message": "We don't support this airline yet. Please contact the Flyo team."
}
HTTP status / errorWhat to do
400 VALIDATION_ERRORFix the field message names and resend.
401Check that X-API-Key holds an active key from your dashboard.
402 QUOTA_EXHAUSTEDYou have no booking details credits left. Contact Flyo to add more.
402 NO_ENTITLEMENT / ENTITLEMENT_SUSPENDEDContact Flyo to enable or restore the API for your account.
422 REJECTEDFlyo doesn't support this airline yet. Don't retry; contact Flyo about coverage.
429Wait retryAfter seconds, then retry.
503 SERVICE_UNAVAILABLERetry shortly with the same request. Nothing was charged.

Rate Limits

Each API key can make up to 60 requests per minute and 1,000 per hour, counted across every Flyo API it calls. Over the limit you get 429 with retryAfter: wait that many seconds, then retry.

Credits

Every lookup uses one booking details credit, taken when the lookup is accepted (HTTP 202). New accounts get 100 free credits.

The credit is given back automatically when Flyo can't get an answer from the airline: the result is FAILED with BLOCKED, TIMEOUT, SITE_ERROR or TECHNICAL_ERROR. A request refused with 400, 402, 422 or 503 never uses a credit.

Every answer from the airline is charged, including INVALID_PNR, LOGIN_REQUIRED, OTP_REQUIRED and NOT_ALLOWED, as well as SUCCESS, NOT_FLOWN and CANCELLED.

Lookups are checked against your credits before anything else, so with no credits left every lookup returns 402 QUOTA_EXHAUSTED.

Example: HTTP 402
{
  "success": false,
  "error": "QUOTA_EXHAUSTED",
  "message": "bookingDetails quota exhausted. Contact Flyo to increase your limit.",
  "quota": {
    "included_units": 100,
    "consumed_units": 100
  }
}

Changelog

Changes to the API, newest first.

3 Nov 2026

  • New: POST /extPartner/api/bookingdetails looks up a booking on the airline's site and posts the result to your webhook as bookingdetails.update.