Endpoint
Description
Retrieves a specific reservation by its unique identifier. See implementation inserver/src/modules/reservations/reservations.controller.ts:145-155.
Authentication
This endpoint requires Bearer token authentication. Include your access token in the
Authorization header.Path Parameters
The unique identifier of the reservation to retrieveExample:
res789Response
Unique identifier for the reservation
ID of the client who made the reservation
ID of the professional for the reservation
Start time of the reservation in ISO 8601 format
End time of the reservation in ISO 8601 format
Reservation status:
PENDING, CONFIRMED, or CANCELLEDType of session:
Virtual, Presencial, or empty stringWhen the reservation was created (ISO 8601 format)
Example Request
Example Response
Error Responses
Not Found
If the reservation doesn’t exist:Unauthorized
Use Cases
- Display reservation details to users
- Verify reservation information before making changes
- Show confirmation details after booking
- Retrieve reservation data for cancellation or modification
Related Endpoints
- Get By User - Get all reservations for a user
- Get By Professional - Get all reservations for a professional
- Delete Reservation - Delete a reservation
Notes
- Returns a 404 error if the reservation doesn’t exist
- The response does not include a wrapper object (status, message) like other endpoints
- Useful for displaying individual reservation details or confirmations