example-data.com

bookings / #21

Aug
4
Mon

flight booking #21

2:20 PM – 2:20 PM

From AED6522.10

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/21"
)
booking = res.json()
{
  "id": 21,
  "userId": 147,
  "kind": "flight",
  "referenceId": 134,
  "checkInAt": "2025-08-04T14:20:51.214Z",
  "checkOutAt": "2025-08-04T14:20:51.214Z",
  "status": "completed",
  "totalAmount": 6522.1,
  "currency": "AED",
  "createdAt": "2025-07-20T14:20:51.214Z"
}
Draftbit