example-data.com
Menu
Browse docs and collections

Overview

bookings / #480

Nov
24
Mon

flight booking #480

6:21 AM – 6:21 AM

From JPY 5640.41

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/bookings/480" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/bookings/480"
);
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/480"
);
const booking = (await res.json()) as Booking;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/480"
)
booking = res.json()

Response

{
  "id": 480,
  "userId": 109,
  "kind": "flight",
  "referenceId": 304,
  "checkInAt": "2025-11-24T06:21:37.199Z",
  "checkOutAt": "2025-11-24T06:21:37.199Z",
  "status": "confirmed",
  "totalAmount": 5640.41,
  "currency": "JPY",
  "createdAt": "2025-10-10T06:21:37.199Z"
}