GET /api/Bookings/{id}

Path parameters

  • id string(uuid) Required

    The id of the booking

Responses

  • Returns the booking with the given id

    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • checkInDate string(date)
    • checkOutDate string(date)
    • price number(double)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • roomNumbers array[integer(int32)] | null
    • guestFullName string | null
    • guestId string(uuid)
    • hotelName string | null
    • hotelId string(uuid)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • checkInDate string(date)
    • checkOutDate string(date)
    • price number(double)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • roomNumbers array[integer(int32)] | null
    • guestFullName string | null
    • guestId string(uuid)
    • hotelName string | null
    • hotelId string(uuid)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • checkInDate string(date)
    • checkOutDate string(date)
    • price number(double)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • roomNumbers array[integer(int32)] | null
    • guestFullName string | null
    • guestId string(uuid)
    • hotelName string | null
    • hotelId string(uuid)
    • Additional properties are NOT allowed
  • 404

    If the booking is not found

GET /api/Bookings/{id}
curl \
 -X GET http://api.example.com/api/Bookings/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "confirmationId": "string",
  "checkInDate": "2024-05-04",
  "checkOutDate": "2024-05-04",
  "price": 42.0,
  "numberOfAdults": 42,
  "numberOfChildren": 42,
  "roomNumbers": [
    42
  ],
  "guestFullName": "string",
  "guestId": "string",
  "hotelName": "string",
  "hotelId": "string"
}
Response examples (200)
{
  "confirmationId": "string",
  "checkInDate": "2025-05-04",
  "checkOutDate": "2025-05-04",
  "price": 42.0,
  "numberOfAdults": 42,
  "numberOfChildren": 42,
  "roomNumbers": [
    42
  ],
  "guestFullName": "string",
  "guestId": "string",
  "hotelName": "string",
  "hotelId": "string"
}