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
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Choose your dates | /property/short-let-booking | app/property/short-let-booking.tsx | Tenants viewing a SHORTLET listing |
| Calendar | none (component) | components/app/short-let-date-picker.tsx | Same |
| Stay Payment | /property/payment | app/property/payment.tsx | Tenants 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 paramsid(property id) andtitle. See Property details. - No device permissions are needed.
Flow
Choosing dates
- The screen opens from the bottom, titled "Choose your dates", and fires
GET /api/v1/property/:id/availability. The response suppliesnightlyPrice,currency,minNights,maxNightsandbookedRanges(pairs ofcheckInandcheckOut). - 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".
- 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.
- Day cells:
| Cell | Appearance | Tappable |
|---|---|---|
| Past day | Greyed | No |
| Already booked night | Greyed with a strike-through | No |
| Check-in or check-out | Filled circle | Yes |
| Night inside the selection | Tinted background | Yes |
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.
| Rule | Behaviour |
|---|---|
| Same day as check-in, or earlier | Moves check-in to that day |
Fewer nights than minNights (default 1) | Ignored |
More nights than maxNights, when set | Ignored |
| Range crosses a booked night | Ignored |
- After a complete selection, tapping any free day starts over with a new check-in.
- 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
- The bottom button reads "Select dates" and is disabled until a range is chosen. It then reads "Request N night" or "Request N nights".
- Tapping it fires
POST /api/v1/booking/create:
{
"propertyId": "...",
"type": "shortlet",
"checkIn": "YYYY-MM-DD",
"checkOut": "YYYY-MM-DD"
}- The button shows a spinner while the request is in flight.
- 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
Propertycache tag. - A
409response 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."). - 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
- The host accepts or declines the request on their side. The tenant's property detail screen listens for the
booking:updatedsocket event and refetchesGET /api/v1/booking/property/:propertyId/payment-request. - When the request is confirmed, the detail screen's button becomes "Make Payment" and opens
/property/paymentwith thepropertyId. - That screen is titled "Stay Payment". The base amount is the
totalPricestored on the confirmed request, and the breakdown line reads "Stay (N nights)". - 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
idparam. 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.nightsandtotalPrice(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
rentedorsoldafter payment; they stay bookable for other dates.
Paying for a Property
The rent, purchase and stay payment screen, its two payment modes (escrow and direct Paystack), the Paystack webview and verification screens, and the prototype bank-transfer screens.
Escrow and Receipts
Tracking an escrow transaction, reporting a payment with proof, releasing funds with an OTP, and the prototype escrow status, contract and receipt screens.
HomeLink Hub