8Geri okuyun
/api/v1/flights/bookings/{id}Dar kapsamlı anahtarla da çalışır: flight_booking
pending: true ödemenin yapıldığını ama numaraların henüz çıkmadığını söyler; çıktıklarında bilet webhook'u gelir (Webhook'lar). Burada yalnız rezervasyon API'siyle açılmış rezervasyonlar cevap verir.Parametreler
Yol
iduuidzorunlu
Yanıt · 200
iduuidThe booking id.
statusenumheldwaits for payment,ticketingis paid and waiting for numbers,ticketedis done;cancelled,expiredandfailedare closed.şunlardan biri
pendingheldawaiting_approvalticketingticketedpartially_ticketedcancelledexpiredfailedrecord_locatorstringThe airline booking reference (PNR).
ticketing_time_limitdate-timeWhile
held: ticket before this, or the hold lapses.sale_iduuidThe sale in the agency's books.
totalstringThe sell total of the booking.
currencystringISO 4217 code of
total.pendingbooleanPaid, ticket numbers not issued yet. The ticket webhook fires when they are.
ticketsobject[]One per passenger once issued.
Alanları gösterAlanları gizle
ticket_numberstringThe e-ticket number.
passenger_namestringAs printed on the ticket (SURNAME/GIVEN).
Yanıtlar
401Missing or invalid Bearer token403The key cannot reach the booking API: the account lacks an add-on (addon_required, withdetails.missing), the plan has no API access, or the key's scope is narrow.404Resource not found
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/flights/bookings/2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
"status": "ticketed",
"record_locator": "ABC123",
"ticketing_time_limit": "2026-10-08T18:00:00Z",
"sale_id": "7e6d5c4b-3a2f-4e1d-8c0b-9a8f7e6d5c4b",
"total": "412.50",
"currency": "EUR",
"pending": false,
"tickets": [
{
"ticket_number": "235-1234567890",
"passenger_name": "ARSLAN/DENIZ"
}
]
}