Skip to Content
HomeLink Hub
Tenant Experience

Short-let Booking

Choosing check-in and check-out dates for a short-let, sending the stay request to the host, and paying once it is confirmed.

A short-let is booked by the night. The tenant picks dates on a calendar that shows which nights are already taken, sends a stay request, and waits for the host to accept. Payment happens afterwards on the shared payment screen.

Where it lives

ScreenRouteFileWho sees it
Choose your dates/property/short-let-bookingapp/property/short-let-booking.tsxTenants viewing a SHORTLET listing
Calendarnone (component)components/app/short-let-date-picker.tsxSame
Stay Payment/property/paymentapp/property/payment.tsxTenants with a confirmed stay

API calls are the getShortLetAvailability and createPaymentRequest endpoints of propertyApi in services/property/property-thunk.ts.

Before you start

  • Signed in as a tenant.
  • The listing type must be SHORTLET. On the property detail screen the right-hand button "Request Payment" opens this screen for short-lets, passing params id (property id) and title. See Property details.
  • No device permissions are needed.

Flow

Choosing dates

  1. The screen opens from the bottom, titled "Choose your dates", and fires GET /api/v1/property/:id/availability. The response supplies nightlyPrice, currency, minNights, maxNights and bookedRanges (pairs of checkIn and checkOut).
  2. Under the header the listing title is shown (when passed), then the nightly price as "₦N per night". If the listing has a maximum stay, the range is appended, for example "· 2–14 nights".
  3. The calendar starts on the current month. The left arrow is disabled on the current month; the right arrow moves forward without limit. All dates are handled in UTC to match how the server counts a night.
  4. Day cells:
CellAppearanceTappable
Past dayGreyedNo
Already booked nightGreyed with a strike-throughNo
Check-in or check-outFilled circleYes
Night inside the selectionTinted backgroundYes

A legend under the grid reads "Your stay" and "Already booked". 5. Booked ranges are half-open: the check-in night is taken, the check-out day is free, so a guest can arrive on the day another leaves. 6. First tap sets check-in. The hint under the calendar reads "Pick your check-in date, then your check-out date." until both are chosen. 7. Second tap sets check-out, subject to these rules. A tap that breaks a rule is ignored silently; no message is shown.

RuleBehaviour
Same day as check-in, or earlierMoves check-in to that day
Fewer nights than minNights (default 1)Ignored
More nights than maxNights, when setIgnored
Range crosses a booked nightIgnored
  1. After a complete selection, tapping any free day starts over with a new check-in.
  2. With both dates set, a summary shows "Check in" and "Check out" (formatted like 5 Mar 2026), the line "₦N × X nights" and the total (nights times nightly price).

Sending the request

  1. The bottom button reads "Select dates" and is disabled until a range is chosen. It then reads "Request N night" or "Request N nights".
  2. Tapping it fires POST /api/v1/booking/create:
{
  "propertyId": "...",
  "type": "shortlet",
  "checkIn": "YYYY-MM-DD",
  "checkOut": "YYYY-MM-DD"
}
  1. The button shows a spinner while the request is in flight.
  2. Success shows the alert "Request sent" / "The host has been asked to confirm your stay. You'll hear back shortly." with "OK", which goes back to the property detail screen. The mutation invalidates the Property cache tag.
  3. A 409 response means someone else took those nights after the calendar loaded. The app refetches availability so the calendar updates, and shows "Dates just taken" with the server message ("Those dates have just been taken. Please choose others.").
  4. Any other failure shows "Could not book" with the server message or "Something went wrong. Please try again.". Server-side rules that can trigger it: "Check-in cannot be in the past", "Check-out must be at least one night after check-in", "This property has a minimum stay of N nights", "This property can be booked for at most N nights".

Paying for a confirmed stay

  1. The host accepts or declines the request on their side. The tenant's property detail screen listens for the booking:updated socket event and refetches GET /api/v1/booking/property/:propertyId/payment-request.
  2. When the request is confirmed, the detail screen's button becomes "Make Payment" and opens /property/payment with the propertyId.
  3. That screen is titled "Stay Payment". The base amount is the totalPrice stored on the confirmed request, and the breakdown line reads "Stay (N nights)".
  4. From there the flow is identical to rent and purchase payments. See Paying for a property.

Reaching Make Payment depends on a known mismatch

The property detail screen reads the request status from a field the backend does not send (see the callout in Property details). Until that is fixed, a confirmed stay may not switch the button to "Make Payment".

States and edge cases

  • Loading. The header with a centred spinner.
  • Availability fails to load, or the listing has no short-let terms. "Could not load availability" with a "Retry" button that refetches.
  • No id param. The availability request is skipped and the screen stays in the error state.
  • Calendar is advisory. Dates can be taken between loading and confirming. The booking request is what decides, which is why a 409 refetches instead of only showing an error.
  • Declined or cancelled request. The backend gives the nights back, so they show as free the next time availability loads.
  • Offline. The request fails and "Could not book" / "Something went wrong. Please try again." is shown.
  • Session expired. A 401 triggers one silent token refresh; if that fails the app returns to sign in.

What happens next

  • The backend claims the nights atomically and stores the booking with dates.checkIn, dates.checkOut, dates.nights and totalPrice (nights times the nightly price).
  • The listing's agent, or the landlord when there is no agent, receives a notification titled "New Stay Request" with the guest's name, number of nights and property title.
  • When the host accepts, the tenant receives "Payment Request Accepted" with "Your payment request for PROPERTY was accepted. You can now make payment.".
  • Short-lets never change to rented or sold after payment; they stay bookable for other dates.

On this page