Sep
30
Tue
flight booking #41
8:12 PM – 8:12 PM
From AUD3619.79
bookings / #41
8:12 PM – 8:12 PM
From AUD3619.79
curl -sS \
"https://example-data.com/api/v1/bookings/41" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/41"
);
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/41"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/41"
)
booking = res.json() {
"id": 41,
"userId": 230,
"kind": "flight",
"referenceId": 80,
"checkInAt": "2025-09-30T20:12:29.965Z",
"checkOutAt": "2025-09-30T20:12:29.965Z",
"status": "cancelled",
"totalAmount": 3619.79,
"currency": "AUD",
"createdAt": "2025-09-11T20:12:29.965Z"
}