Skip to Content
HomeLink Hub
Bookings

Get a booking by ID

GET
/api/v1/booking/{id}

Access: Bearer token required.

Returns one booking with propertyId populated as the full property document, tenantId and landlordId populated with firstName, lastName, avatar and email, and escrowId populated with the linked EscrowTransaction (or null).

Only the booking's tenant, its landlord, the agent on its property (propertyId.agentId) and admins (ADMIN role) may read it. Anyone else who is signed in gets a 403, checked after the booking is loaded, so an unknown id still answers 404.

A malformed id is not rejected with a 400; it surfaces as the 500 below.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

id*string

ObjectId of the booking.

Response Body

Booking found. The populated property is shown trimmed here; the real response contains the whole property document (description, details, availability, shortLet, amenities, verification, legalStatus and so on).

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/booking/string'
Example Response
{  "status": 200,  "success": true,  "message": "Booking fetched successfully",  "data": {    "_id": "665f1c2e9b1d4a0012ab34cd",    "propertyId": {      "_id": "664a0b7e3f2c1d0012ef5a01",      "landlordId": "6629e4f08a7b3c0012aa9e42",      "agentId": "662b7c3d1f0e9a0012bb4c55",      "title": "3 Bedroom Apartment in Lekki Phase 1",      "type": "APARTMENT",      "status": "listed",      "location": {        "state": "Lagos",        "lga": "Eti-Osa",        "community": "Lekki Phase 1",        "street": "14 Admiralty Way",        "nearestLandmark": "Lekki Phase 1 Gate",        "coordinates": {          "type": "Point",          "coordinates": [            3.4723,            6.4474          ]        }      },      "details": {        "bedrooms": 3,        "bathrooms": 3,        "squareFeet": 1650,        "features": [          "Fitted kitchen"        ]      },      "pricing": {        "rentPrice": 4500000,        "salePrice": null,        "currency": "NGN",        "rentDurationYears": 1      },      "media": {        "images": [          {            "_id": "664a0b7e3f2c1d0012ef5a02",            "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/properties/lekki-3bed-living.jpg",            "metadata": {              "tag": "Living room"            }          }        ],        "videos": []      }    },    "tenantId": {      "_id": "663d9a1c5e4b2a0012cd7f10",      "firstName": "Chinedu",      "lastName": "Okafor",      "avatar": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/avatars/chinedu.jpg",      "email": "chinedu.okafor@example.com"    },    "landlordId": {      "_id": "6629e4f08a7b3c0012aa9e42",      "firstName": "Folake",      "lastName": "Adeyemi",      "avatar": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/avatars/folake.jpg",      "email": "folake.adeyemi@example.com"    },    "status": "requested",    "type": "viewing",    "dates": {      "requestedDate": "2026-12-04T10:00:00.000Z",      "visitDuration": 1    },    "notes": "I would like to see the kitchen and the parking space.",    "escrowId": null,    "createdAt": "2026-11-25T09:14:22.318Z",    "updatedAt": "2026-11-25T09:14:22.318Z",    "__v": 0  }}