example-data.com

bookings / #96

Apr
27
Tue

flight booking #96

3:13 PM – 3:13 PM

From AUD5553.12

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/96"
)
booking = res.json()
{
  "id": 96,
  "userId": 237,
  "kind": "flight",
  "referenceId": 336,
  "checkInAt": "2027-04-27T15:13:22.995Z",
  "checkOutAt": "2027-04-27T15:13:22.995Z",
  "status": "pending",
  "totalAmount": 5553.12,
  "currency": "AUD",
  "createdAt": "2027-04-02T15:13:22.995Z"
}
Draftbit