example-data.com

bookings / #157

Feb
8
Mon

hotel booking #157

6:31 AM – 6:31 AM

From AED9567.61

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/157"
)
booking = res.json()
{
  "id": 157,
  "userId": 41,
  "kind": "hotel",
  "referenceId": 91,
  "checkInAt": "2027-02-08T06:31:57.652Z",
  "checkOutAt": "2027-02-22T06:31:57.652Z",
  "status": "cancelled",
  "totalAmount": 9567.61,
  "currency": "AED",
  "createdAt": "2027-01-02T06:31:57.652Z"
}
Draftbit