GET /api/Bookings/{id}/invoice

Path parameters

  • id string(uuid) Required

    The booking id

Responses

  • Returns the invoice with the given id

    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • totalPrice number(double)
    • totalPriceAfterDiscount number(double)
    • rooms array[object] | null
      Hide rooms attributes Show rooms attributes object
      • id string(uuid)
      • roomNumber integer(int32)
      • adultsCapacity integer(int32)
      • childrenCapacity integer(int32)
      • roomType string

        Values are Standard, Luxury, Budget, or Boutique.

      • pricePerNight number(double)
      • pricePerNightAfterDiscount number(double)
      • numberOfNights integer(int32)
      • totalRoomPrice number(double)
      • totalRoomPriceAfterDiscount number(double)
      • Additional properties are NOT allowed
    • hotel object
      Hide hotel attributes Show hotel attributes object
      • id string(uuid)
      • name string | null
      • cityName string | null
      • street string | null
      • latitude number(double)
      • longitude number(double)
      • Additional properties are NOT allowed
    • guestId string(uuid)
    • guestFullName string | null
    • checkInDate string(date)
    • checkOutDate string(date)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • totalPrice number(double)
    • totalPriceAfterDiscount number(double)
    • rooms array[object] | null
      Hide rooms attributes Show rooms attributes object
      • id string(uuid)
      • roomNumber integer(int32)
      • adultsCapacity integer(int32)
      • childrenCapacity integer(int32)
      • roomType string

        Values are Standard, Luxury, Budget, or Boutique.

      • pricePerNight number(double)
      • pricePerNightAfterDiscount number(double)
      • numberOfNights integer(int32)
      • totalRoomPrice number(double)
      • totalRoomPriceAfterDiscount number(double)
      • Additional properties are NOT allowed
    • hotel object
      Hide hotel attributes Show hotel attributes object
      • id string(uuid)
      • name string | null
      • cityName string | null
      • street string | null
      • latitude number(double)
      • longitude number(double)
      • Additional properties are NOT allowed
    • guestId string(uuid)
    • guestFullName string | null
    • checkInDate string(date)
    • checkOutDate string(date)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • confirmationId string(uuid)
    • totalPrice number(double)
    • totalPriceAfterDiscount number(double)
    • rooms array[object] | null
      Hide rooms attributes Show rooms attributes object
      • id string(uuid)
      • roomNumber integer(int32)
      • adultsCapacity integer(int32)
      • childrenCapacity integer(int32)
      • roomType string

        Values are Standard, Luxury, Budget, or Boutique.

      • pricePerNight number(double)
      • pricePerNightAfterDiscount number(double)
      • numberOfNights integer(int32)
      • totalRoomPrice number(double)
      • totalRoomPriceAfterDiscount number(double)
      • Additional properties are NOT allowed
    • hotel object
      Hide hotel attributes Show hotel attributes object
      • id string(uuid)
      • name string | null
      • cityName string | null
      • street string | null
      • latitude number(double)
      • longitude number(double)
      • Additional properties are NOT allowed
    • guestId string(uuid)
    • guestFullName string | null
    • checkInDate string(date)
    • checkOutDate string(date)
    • numberOfAdults integer(int32)
    • numberOfChildren integer(int32)
    • Additional properties are NOT allowed
  • 404

    If there is no booking related to the given id

GET /api/Bookings/{id}/invoice
curl \
 -X GET http://api.example.com/api/Bookings/{id}/invoice \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "confirmationId": "string",
  "totalPrice": 42.0,
  "totalPriceAfterDiscount": 42.0,
  "rooms": [
    {
      "id": "string",
      "roomNumber": 42,
      "adultsCapacity": 42,
      "childrenCapacity": 42,
      "roomType": "Standard",
      "pricePerNight": 42.0,
      "pricePerNightAfterDiscount": 42.0,
      "numberOfNights": 42,
      "totalRoomPrice": 42.0,
      "totalRoomPriceAfterDiscount": 42.0
    }
  ],
  "hotel": {
    "id": "string",
    "name": "string",
    "cityName": "string",
    "street": "string",
    "latitude": 42.0,
    "longitude": 42.0
  },
  "guestId": "string",
  "guestFullName": "string",
  "checkInDate": "2024-05-04",
  "checkOutDate": "2024-05-04",
  "numberOfAdults": 42,
  "numberOfChildren": 42
}
Response examples (200)
{
  "confirmationId": "string",
  "totalPrice": 42.0,
  "totalPriceAfterDiscount": 42.0,
  "rooms": [
    {
      "id": "string",
      "roomNumber": 42,
      "adultsCapacity": 42,
      "childrenCapacity": 42,
      "roomType": "Standard",
      "pricePerNight": 42.0,
      "pricePerNightAfterDiscount": 42.0,
      "numberOfNights": 42,
      "totalRoomPrice": 42.0,
      "totalRoomPriceAfterDiscount": 42.0
    }
  ],
  "hotel": {
    "id": "string",
    "name": "string",
    "cityName": "string",
    "street": "string",
    "latitude": 42.0,
    "longitude": 42.0
  },
  "guestId": "string",
  "guestFullName": "string",
  "checkInDate": "2025-05-04",
  "checkOutDate": "2025-05-04",
  "numberOfAdults": 42,
  "numberOfChildren": 42
}