example-data.com

bookings / #43

May
1
Sat

hotel booking #43

2:38 PM – 2:38 PM

From JPY3753.74

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/43"
)
booking = res.json()
{
  "id": 43,
  "userId": 196,
  "kind": "hotel",
  "referenceId": 131,
  "checkInAt": "2027-05-01T14:38:52.900Z",
  "checkOutAt": "2027-05-09T14:38:52.900Z",
  "status": "pending",
  "totalAmount": 3753.74,
  "currency": "JPY",
  "createdAt": "2027-02-27T14:38:52.900Z"
}
Draftbit