Bookings
Get Booking
Get details of a specific booking
GET
/bookings/:idRetrieve complete details for a single booking, including boat info, owner details, and any associated review.
This endpoint requires user authentication. Users can only view their own bookings.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The booking's unique identifier (UUID) |
Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Booking ID |
boat_id | string | Boat ID |
status | string | pending, confirmed, cancelled, completed |
start_date | string | Start date |
end_date | string | End date |
start_time | string | Start time |
end_time | string | End time |
guests | integer | Number of guests |
total_price | number | Total price in USD |
message | string | Guest's message to owner |
boat | object | Full boat details including owner |
review | object | Associated review (if completed and reviewed) |
Errors
| Status | Message |
|---|---|
401 | Authentication required |
404 | Booking not found |