example-data.com

bookings / #210

Apr
15
Thu

hotel booking #210

12:25 AM – 12:25 AM

From AED8648.82

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/210"
)
booking = res.json()
{
  "id": 210,
  "userId": 142,
  "kind": "hotel",
  "referenceId": 83,
  "checkInAt": "2027-04-15T00:25:37.033Z",
  "checkOutAt": "2027-04-24T00:25:37.033Z",
  "status": "completed",
  "totalAmount": 8648.82,
  "currency": "AED",
  "createdAt": "2027-02-03T00:25:37.033Z"
}
Draftbit