example-data.com

bookings / #140

May
18
Tue

flight booking #140

7:20 PM – 7:20 PM

From USD205.60

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/140"
)
booking = res.json()
{
  "id": 140,
  "userId": 96,
  "kind": "flight",
  "referenceId": 252,
  "checkInAt": "2027-05-18T19:20:57.690Z",
  "checkOutAt": "2027-05-18T19:20:57.690Z",
  "status": "confirmed",
  "totalAmount": 205.6,
  "currency": "USD",
  "createdAt": "2027-03-25T19:20:57.690Z"
}
Draftbit