Jul
22
Tue
flight booking #30
8:08 PM – 8:08 PM
From GBP5409.58
bookings / #30
8:08 PM – 8:08 PM
From GBP5409.58
curl -sS \
"https://example-data.com/api/v1/bookings/30" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/30"
);
const booking = await res.json();import type { Booking } from "https://example-data.com/types/bookings.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/bookings/30"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/30"
)
booking = res.json() {
"id": 30,
"userId": 158,
"kind": "flight",
"referenceId": 316,
"checkInAt": "2025-07-22T20:08:54.612Z",
"checkOutAt": "2025-07-22T20:08:54.612Z",
"status": "completed",
"totalAmount": 5409.58,
"currency": "GBP",
"createdAt": "2025-06-23T20:08:54.612Z"
}