Apr
19
Mon
flight booking #85
5:54 AM – 5:54 AM
From SGD9710.80
bookings / #85
5:54 AM – 5:54 AM
From SGD9710.80
curl -sS \
"https://example-data.com/api/v1/bookings/85" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/85"
);
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/85"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/85"
)
booking = res.json() {
"id": 85,
"userId": 29,
"kind": "flight",
"referenceId": 137,
"checkInAt": "2027-04-19T05:54:38.907Z",
"checkOutAt": "2027-04-19T05:54:38.907Z",
"status": "completed",
"totalAmount": 9710.8,
"currency": "SGD",
"createdAt": "2027-03-18T05:54:38.907Z"
}