example-data.com

bookings / #218

Jun
5
Thu

flight booking #218

9:24 AM – 9:24 AM

From AUD3124.31

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/bookings/218" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/bookings/218"
);
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/218"
);
const booking = (await res.json()) as Booking;
import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/218"
)
booking = res.json()
{
  "id": 218,
  "userId": 31,
  "kind": "flight",
  "referenceId": 115,
  "checkInAt": "2025-06-05T09:24:17.092Z",
  "checkOutAt": "2025-06-05T09:24:17.092Z",
  "status": "completed",
  "totalAmount": 3124.31,
  "currency": "AUD",
  "createdAt": "2025-04-02T09:24:17.092Z"
}
Draftbit