Skip to Content
HomeLink Hub
MobileAgent

Bookings and Payment Requests

The Bookings tab, reservation details, and how agents and landlords accept or decline a tenant's payment request.

A payment request (called a reservation in the UI) is a booking of type reservation or shortlet that a tenant raises against a property. The landlord or agent must accept it before the tenant can pay. The Bookings tab is the agent's home for both inspection bookings and these reservations.

Where it lives

ScreenRouteFileWho sees it
Bookings tab/(tabs)/bookingsapp/(tabs)/bookings.tsxAgent, landlord (calendar icon in the tab bar; hidden for lawyers)
Reservation details/payment-requests/[id]app/payment-requests/[id].tsxAgent, landlord
Incoming Requests, Payment segment/(tabs)/requestsapp/(tabs)/requests.tsxAgent, landlord (deep link only)

Supporting code: services/bookings/booking-api.ts (RTK Query slice bookingApi, tag PaymentRequests).

Before you start

  • Signed in as an agent or landlord, with agent setup complete for agents.
  • The list only returns bookings whose landlordId is the signed-in user. Accepting also requires this: the backend answers 403 "You do not have permission to confirm this booking" otherwise.
  • No device permissions are needed.

Flow

Statuses and badges

Booking statusBookings tab badgeReservation details badgeIncoming Requests chipIncoming Requests filter
requestedPendingRequestedrequested (raw value, grey)pending
confirmedConfirmedConfirmedAcceptedaccepted
completedCompletedCompletedCompletedcompleted
cancelledDeclinedCancelledDeclinedall only

Transitions the agent can trigger from mobile:

  • requested to confirmed with Accept (PATCH /api/v1/booking/:id/confirm).
  • requested to cancelled with Decline (PATCH /api/v1/booking/:id/cancel).

completed is never set by an agent action in the mobile app. Once a booking is confirmed, completed or cancelled, no buttons are shown.

Browse the Bookings tab

  1. Tap the calendar icon in the tab bar. The screen shows the title Bookings and "Manage inspection schedules and property reservations.".

  2. Two requests fire: GET /api/v1/inspection/agent/requests and GET /api/v1/booking/landlord/payment-requests?page=1&limit=20.

  3. A horizontally scrolling row of summary cards is computed on the device from those two responses:

    CardValueSub-label
    Total InspectionsAll inspections returned"n pending" (status pending_review or in_progress)
    ScheduledInspections with status scheduled"confirmed slots"
    ReservationsAll payment requests returned"n awaiting" (status requested)
    CompletedCompleted inspections plus completed reservations"all time"
  4. Two tabs sit under the cards: Inspections and Reservations. Each shows a small count badge when its pending number is above zero.

  5. Inspections list: each card shows the property title (or "Unknown Property"), "community, state", a status badge, the tenant's name and the scheduled date (MMM D, YYYY). Tapping a card opens /requests/[id], covered in Inspection requests.

  6. Reservations list: each card shows the property title, "First Last · email" of the tenant, a status badge, the amount (the property's sale price, else its rent price) and the requested date. Tapping a card opens /payment-requests/[id].

  7. Pull to refresh refetches only the list for the active tab.

Accept or decline from Reservation details

  1. Tap a reservation card. The screen titled Reservation details fires GET /api/v1/booking/:id.

  2. Three cards are shown:

    • Property: first image, title (or "Unknown property"), status badge, full location, and the amount.
    • Customer: Name, Email, Phone.
    • Reservation: Requested, Confirmed (only when set), Created, Notes (only when set). Dates are formatted like Mar 4, 2026 · 2:30 PM.
  3. When the status is requested, two buttons appear: Decline and Accept. Both are disabled while either request is in flight, and Accept shows a spinner.

  4. Accept opens a native alert "Accept reservation?" with "The tenant will be notified that their reservation is confirmed." and buttons Cancel and Accept. Confirming fires PATCH /api/v1/booking/:id/confirm with body:

    { "confirmedDate": "current time as an ISO string" }

    Success alert: "Done" / "Reservation confirmed.".

  5. Decline opens "Decline reservation?" with "The tenant will be notified that their reservation was declined." and buttons Cancel and Decline. Confirming fires PATCH /api/v1/booking/:id/cancel with body:

    { "cancellationReason": "Declined by agent" }

    Success alert: "Done" / "Reservation declined.". The reason is fixed text; there is no input for a custom reason (the backend requires 5 to 500 characters).

  6. Any failure shows an alert titled "Error" with the server message, or "Something went wrong.".

  7. Both mutations invalidate the PaymentRequests tags, so the detail screen, the Bookings tab and the Incoming Requests screen refetch and show the new status.

Accept or decline from Incoming Requests (Payment segment)

The hidden /(tabs)/requests screen (see Inspection requests for how it is reached) lists the same payment requests under its Payment (n) segment, using limit=50.

  1. Each card shows the tenant avatar, name and email, a status chip, the property thumbnail, title and "community, state", the amount (rent price, else sale price) and "Requested " followed by the creation date.
  2. Cards in requested show Decline and Accept. There is no confirmation dialog here.
    • Accept fires PATCH /api/v1/booking/:id/confirm. Success alert: "Success" / "Payment request accepted.". Failure: "Error" / "Failed to accept payment request.".
    • Decline fires PATCH /api/v1/booking/:id/cancel with cancellationReason "Declined from mobile requests screen". Success alert: "Updated" / "Payment request declined.". Failure: "Error" / "Failed to decline payment request.".

Realtime updates

The backend announces every booking change on the socket event booking:updated to both the tenant and the landlord. In the mobile app only the tenant's property detail screen listens for it (hooks/use-booking-updates.ts). The agent screens on this page do not subscribe: they change after the agent's own action (tag invalidation) or on pull to refresh.

States and edge cases

SituationWhat the user sees
Bookings tab loadingCentred spinner under the header (for the active tab's query)
No inspections"No Inspection Bookings" / "Inspection requests from clients will appear here."
No reservations"No Property Reservations" / "Tenant payment and reservation requests will appear here."
Bookings tab request failsNo dedicated error state; the empty state is shown
Reservation details loadingHeader plus a centred spinner
Reservation details failed or not found"Couldn't load this reservation" and Try again
Unknown status valueRaw status string in a grey badge

Known gaps and inconsistencies

The items below come straight from the current code and backend responses.

  • The Bookings tab requests only the first 20 payment requests and has no paging, so older reservations and their counts are not included.
  • Phone on Reservation details shows "—": GET /api/v1/booking/:id populates the tenant without the phone field (the list endpoint does include it).
  • The Incoming Requests chip for requested shows the raw word "requested" in grey, because that status has no entry in the chip mapping.
  • The amount uses sale price first on the Bookings tab and Reservation details, but rent price first on Incoming Requests. A property with both prices shows different amounts.
  • The backend also returns short-let stays (type shortlet) in this list. The mobile screens show them like any other reservation and do not display check-in or check-out dates.

Escrow actions are not on the agent side of the mobile app

None of the screens on this page show escrow status, and there is no agent action to mark a payment as received, enter a release OTP or complete an escrow. Those controls live on app/property/escrow/[id].tsx, which is the buyer's screen in the tenant payment flow. The escrowApi slice (GET /api/v1/escrow/property/:propertyId) is defined in services/escrow/escrow-api.ts but no screen uses it yet.

What happens next

  • Accept: the booking becomes confirmed and dates.confirmedDate is saved. The tenant gets a notification with event type payment_request_accepted, titled "Payment Request Accepted", telling them they can now make payment, plus an email. The tenant's property detail screen updates live through booking:updated and offers payment.
  • Decline: the booking becomes cancelled with the reason, who cancelled and when. For a short-let, the held nights are released so the property is bookable again. The tenant gets a booking_cancelled notification ("Payment request Declined" or "Stay Declined") with the reason, plus an email.
  • Once the tenant pays through escrow, the transaction appears on the Earnings screen, where the signed-in user is the seller.

On this page