List trips
/api/v1/tripsfull kapsamlı bir anahtar ister.
Ordered by start_date ascending, so the next departure is first.
Parametreler
Sorgu
qstringMatches title or reference number.
statusstringassigned_to_iduuidscopeenumşunlardan biri
activeupcomingin_progressneeds_attentionlimitintegervarsayılan 25Rows per page.
cursorstringOpaque; take it from the previous response's
page.next_cursor.
Yanıt · 200
dataobject[]zorunluAlanları gösterAlanları gizle
iduuidreference_numberstringnull olabilirtitlestringstatusstringtrip_typestringnull olabilirstart_datedatenull olabilirend_datedatenull olabilirduration_nightsintegernull olabilirdestinationsstring[]primary_currencystringnull olabilircover_image_urlstringnull olabilirassigned_advisorobjectnull olabilirA seat on the account, as referenced from other records.
Alanları gösterAlanları gizle
iduuidnamestringnull olabiliremailstringnull olabilir
primary_customerobjectnull olabilirAlanları gösterAlanları gizle
iduuidnamestringnull olabilir
traveler_countintegerdays_untilintegernull olabilirDays from today to departure. Negative once the trip has started.
updated_atdate-time
pageobjectzorunluThe cursor for the list beside it. Re-send the same request with
?cursor=<next_cursor>whilehas_moreis true.next_cursorisnullon the last page.Alanları gösterAlanları gizle
next_cursorstringzorunlunull olabilirhas_morebooleanzorunlulimitintegerzorunlu
Yanıtlar
401Missing or invalid Bearer token403Policy denied or account has no owner429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/trips' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"data": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"reference_number": "TRP-2026-0117",
"title": "Cappadocia, 4 nights",
"status": "confirmed",
"trip_type": "leisure",
"start_date": "2026-03-14",
"end_date": "2026-03-14",
"duration_nights": 1,
"destinations": [
"Cappadocia",
"Istanbul"
],
"primary_currency": "EUR",
"cover_image_url": "https://example.com/asset.pdf",
"assigned_advisor": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"email": "ayse@example.com"
},
"primary_customer": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz"
},
"traveler_count": 3,
"days_until": 1,
"updated_at": "2026-03-14T09:30:00Z"
}
],
"page": {
"next_cursor": "MjAyNi0wMy0xNFQwOTozMDowMC4wMDAwMDBafDk0MQ",
"has_more": true,
"limit": 25
}
}