example-data.com

bookings / #143

May
15
Sat

flight booking #143

3:25 PM – 3:25 PM

From CAD2538.37

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/143"
)
booking = res.json()
{
  "id": 143,
  "userId": 109,
  "kind": "flight",
  "referenceId": 98,
  "checkInAt": "2027-05-15T15:25:10.263Z",
  "checkOutAt": "2027-05-15T15:25:10.263Z",
  "status": "completed",
  "totalAmount": 2538.37,
  "currency": "CAD",
  "createdAt": "2027-04-24T15:25:10.263Z"
}
Draftbit