May
1
Sat
hotel booking #43
2:38 PM – 2:38 PM
From JPY 3753.74
Overview
bookings / #43
2:38 PM – 2:38 PM
From JPY 3753.74
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/43" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/43" ); const booking = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking } from "./types/bookings";
const res = await fetch(
"https://example-data.com/api/v1/bookings/43"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/43"
)
booking = res.json() Response
{
"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"
}