example-data.com

bookings / #72

May
4
Tue

flight booking #72

11:38 PM – 11:38 PM

From JPY8194.81

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/72"
)
booking = res.json()
{
  "id": 72,
  "userId": 89,
  "kind": "flight",
  "referenceId": 275,
  "checkInAt": "2027-05-04T23:38:39.214Z",
  "checkOutAt": "2027-05-04T23:38:39.214Z",
  "status": "confirmed",
  "totalAmount": 8194.81,
  "currency": "JPY",
  "createdAt": "2027-04-18T23:38:39.214Z"
}
Draftbit