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
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Bookings tab | /(tabs)/bookings | app/(tabs)/bookings.tsx | Agent, landlord (calendar icon in the tab bar; hidden for lawyers) |
| Reservation details | /payment-requests/[id] | app/payment-requests/[id].tsx | Agent, landlord |
| Incoming Requests, Payment segment | /(tabs)/requests | app/(tabs)/requests.tsx | Agent, 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
landlordIdis the signed-in user. Accepting also requires this: the backend answers403"You do not have permission to confirm this booking" otherwise. - No device permissions are needed.
Flow
Statuses and badges
Booking status | Bookings tab badge | Reservation details badge | Incoming Requests chip | Incoming Requests filter |
|---|---|---|---|---|
requested | Pending | Requested | requested (raw value, grey) | pending |
confirmed | Confirmed | Confirmed | Accepted | accepted |
completed | Completed | Completed | Completed | completed |
cancelled | Declined | Cancelled | Declined | all only |
Transitions the agent can trigger from mobile:
requestedtoconfirmedwith Accept (PATCH /api/v1/booking/:id/confirm).requestedtocancelledwith 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
-
Tap the calendar icon in the tab bar. The screen shows the title Bookings and "Manage inspection schedules and property reservations.".
-
Two requests fire:
GET /api/v1/inspection/agent/requestsandGET /api/v1/booking/landlord/payment-requests?page=1&limit=20. -
A horizontally scrolling row of summary cards is computed on the device from those two responses:
Card Value Sub-label Total Inspections All inspections returned "n pending" (status pending_revieworin_progress)Scheduled Inspections with status scheduled"confirmed slots" Reservations All payment requests returned "n awaiting" (status requested)Completed Completed inspections plus completed reservations "all time" -
Two tabs sit under the cards: Inspections and Reservations. Each shows a small count badge when its pending number is above zero.
-
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. -
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]. -
Pull to refresh refetches only the list for the active tab.
Accept or decline from Reservation details
-
Tap a reservation card. The screen titled Reservation details fires
GET /api/v1/booking/:id. -
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 likeMar 4, 2026 · 2:30 PM.
-
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. -
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/confirmwith body:{ "confirmedDate": "current time as an ISO string" }Success alert: "Done" / "Reservation confirmed.".
-
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/cancelwith 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).
-
Any failure shows an alert titled "Error" with the server message, or "Something went wrong.".
-
Both mutations invalidate the
PaymentRequeststags, 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.
- 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.
- Cards in
requestedshow 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/cancelwithcancellationReason"Declined from mobile requests screen". Success alert: "Updated" / "Payment request declined.". Failure: "Error" / "Failed to decline payment request.".
- Accept fires
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
| Situation | What the user sees |
|---|---|
| Bookings tab loading | Centred 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 fails | No dedicated error state; the empty state is shown |
| Reservation details loading | Header plus a centred spinner |
| Reservation details failed or not found | "Couldn't load this reservation" and Try again |
| Unknown status value | Raw 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.
Phoneon Reservation details shows "—":GET /api/v1/booking/:idpopulates the tenant without the phone field (the list endpoint does include it).- The Incoming Requests chip for
requestedshows 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 (
typeshortlet) 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
confirmedanddates.confirmedDateis saved. The tenant gets a notification with event typepayment_request_accepted, titled "Payment Request Accepted", telling them they can now make payment, plus an email. The tenant's property detail screen updates live throughbooking:updatedand offers payment. - Decline: the booking becomes
cancelledwith the reason, who cancelled and when. For a short-let, the held nights are released so the property is bookable again. The tenant gets abooking_cancellednotification ("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.
HomeLink Hub