Mar
8
Mon
flight booking #161
1:56 PM – 1:56 PM
From SGD9043.20
bookings / #161
1:56 PM – 1:56 PM
From SGD9043.20
curl -sS \
"https://example-data.com/api/v1/bookings/161" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/161"
);
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/161"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/161"
)
booking = res.json() {
"id": 161,
"userId": 111,
"kind": "flight",
"referenceId": 224,
"checkInAt": "2027-03-08T13:56:53.440Z",
"checkOutAt": "2027-03-08T13:56:53.440Z",
"status": "completed",
"totalAmount": 9043.2,
"currency": "SGD",
"createdAt": "2027-02-17T13:56:53.440Z"
}