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
}