example-data.com

bookings / #169

Jan
28
Thu

hotel booking #169

2:13 AM – 2:13 AM

From AED995.34

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/169"
)
booking = res.json()
{
  "id": 169,
  "userId": 27,
  "kind": "hotel",
  "referenceId": 2,
  "checkInAt": "2027-01-28T02:13:17.768Z",
  "checkOutAt": "2027-02-04T02:13:17.768Z",
  "status": "cancelled",
  "totalAmount": 995.34,
  "currency": "AED",
  "createdAt": "2027-01-13T02:13:17.768Z"
}
Draftbit