Skip to Content
HomeLink Hub
Bookings

Cancel or decline a booking

PATCH
/api/v1/booking/{id}/cancel

Access: Bearer token required. Also requires: Caller must be the booking's tenant or its landlordId.

Sets status to cancelled and records cancellationReason, cancellationBy (the caller) and cancellationDate. Either the tenant (cancel) or the booking's landlordId (decline) may call it.

Side effects: booking:updated is pushed over SSE and Socket.IO to both parties; for a shortlet booking the held nights are removed from the property's shortLet.bookedRanges so they can be booked again; and the other side receives a booking_cancelled notification. When the tenant cancels, the listing agent (or the landlord if there is none) is told the viewing / stay / payment request was Cancelled; when the landlord cancels, the tenant is told it was Declined. The reason is included in the notification body.

The current status is not checked: a confirmed, completed or already cancelled booking can be cancelled, and no refund or escrow action is triggered by this endpoint.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

id*string

ObjectId of the booking to cancel.

Request Body

application/json
  1. body
cancellationReason*string

Why the booking is being cancelled or declined (5 to 500 characters). Shown to the other party.

Length5 <= length <= 500

Response Body

Booking cancelled. data is the updated booking (ids not populated).

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PATCH 'http://localhost:4000/api/v1/booking/string/cancel' \  -H 'Content-Type: application/json' \  -d '{  "cancellationReason": "I have found another apartment closer to work."}'
Example Response
{  "status": 200,  "success": true,  "message": "Booking cancelled successfully",  "data": {    "_id": "665f1c2e9b1d4a0012ab34cd",    "propertyId": "664a0b7e3f2c1d0012ef5a01",    "tenantId": "663d9a1c5e4b2a0012cd7f10",    "landlordId": "6629e4f08a7b3c0012aa9e42",    "status": "cancelled",    "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-26T08:45:10.551Z",    "__v": 0,    "cancellationReason": "I have found another apartment closer to work.",    "cancellationBy": "663d9a1c5e4b2a0012cd7f10",    "cancellationDate": "2026-11-26T08:45:10.551Z"  }}