Get a booking by 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.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the booking.
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- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/booking/string'{ "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 }}Get my latest payment request for a property GET
Returns the caller's most recent reservation or shortlet booking on the given property, in any status, or data: null when they have never made one (still HTTP 200).
Confirm a booking PATCH
Accepts a booking: sets status to confirmed, stores dates.confirmedDate and, when sent, overwrites dates.visitDuration.
HomeLink Hub