Inspection Requests
How agents and landlords review, approve and reject tenant inspection requests in the mobile app.
An inspection request is created when a tenant asks to view one of your properties. The mobile app gives agents and landlords two places to work with them: a detail screen opened from the Bookings tab, and a combined "Incoming Requests" screen that also lists payment requests.
Where it lives
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Incoming Requests | /(tabs)/requests | app/(tabs)/requests.tsx | Agent, landlord (hidden tab, no tab bar icon) |
| Inspection request detail | /requests/[id] | app/requests/[id].tsx | Agent, landlord who owns the property |
| Entry list | /(tabs)/bookings (Inspections tab) | app/(tabs)/bookings.tsx | Agent, landlord |
Supporting code: services/requests/inspections-api.ts (RTK Query slice inspectionsApi, tag InspectionRequests) and interface/inspections.types.ts.
Incoming Requests has no in-app entry point
requests is registered in app/(tabs)/_layout.tsx with href: null, so it has no tab icon, and no screen in the app calls router.push("/requests"). It can only be reached by a deep link to /requests. The day-to-day path is Bookings tab, then the Inspections list, then the detail screen.
Before you start
- Signed in as an agent or landlord. Agents must have finished agent setup, otherwise the tabs layout redirects to
/agent-onboarding(see Agent onboarding and KYC). - You only see requests for properties where you are the
landlordIdoragentId. The backend returns403with "You are not authorised to review this inspection" for anything else. - No device permissions are needed.
Flow
Statuses and badges
The inspection status field has five values. Each screen labels them differently:
| Status value | Detail screen badge | Bookings tab badge | Incoming Requests chip | Incoming Requests filter |
|---|---|---|---|---|
pending_review | Pending review | Pending Review | Pending | pending |
scheduled | Scheduled | Scheduled | Accepted | accepted |
in_progress | In progress | In Progress | Accepted | accepted |
completed | Completed | Completed | Completed | completed |
cancelled | Cancelled | Cancelled | Declined | all only |
Transitions, as implemented in the backend (service/src/controllers/inspection.controller.ts and transaction.controller.ts):
- Tenant submits
POST /api/v1/inspection/request. The inspection is created aspending_review. - When the tenant's inspection fee payment is verified, the backend sets the status to
scheduled. - Agent approves with
PATCH /api/v1/inspection/:id/review. Status becomesin_progressandapproval.statusbecomesapproved. - Agent rejects with the same endpoint. Status becomes
cancelled,cancellationReasonis set to the rejection reason, and the inspection is removed from the calendar.
Action buttons only appear while the status is pending_review.
Review a request from the detail screen
-
Open the Bookings tab and stay on Inspections. Tap a card. The app pushes
/requests/[id]. -
The screen titled Inspection request fires
GET /api/v1/inspection/:id. The backend addsagentInspectionFeeto the response (the owner's own inspection fee, else the platform default inspection fee). -
Three cards are shown:
- Property: first image, title (or "Unknown property"), status badge, and location built from street, community, LGA and state.
- Inspector:
Name,Email(the tenant who asked for the inspection). - Inspection:
Scheduled,Completed(only when set),Inspection fee,Requested,Notes(only when set),Cancellation reason(only when set). Dates are formatted likeMar 4, 2026 · 2:30 PM.
-
When the status is
pending_review, two buttons appear: Reject (red outline) and Approve. -
Tapping Approve opens a native alert titled "Approve request?" with the text "The inspector will be notified that this inspection is approved." and buttons Cancel and Approve.
-
Confirming fires
PATCH /api/v1/inspection/:id/reviewwith body:{ "action": "approve" } -
On success an alert shows "Done" with "Inspection request approved.". The mutation invalidates the
InspectionRequeststags, so the detail and every list refetch, the badge changes to In progress and the buttons disappear. -
Tapping Reject opens "Reject request?" with "The inspector will be notified that this inspection was rejected." and buttons Cancel and Reject. Confirming sends the same endpoint with
actionset toreject. Success shows "Done" with "Inspection request rejected.". -
Any failure shows an alert titled "Error" with the server message, or "Something went wrong." when there is none.
Reject from the detail screen is sent without a reason
app/requests/[id].tsx calls the review mutation with only id and action. The backend validation (reviewInspectionValidation) requires rejectionReason whenever action is reject, so this request is refused with a 400 and the user sees the "Error" alert. There is no input for a reason on this screen. Rejecting from the Incoming Requests screen works because that screen sends a hardcoded reason.
Review from the Incoming Requests screen
- The screen loads two lists at once:
GET /api/v1/inspection/agent/requestsandGET /api/v1/booking/landlord/payment-requests?page=1&limit=50. - Header: Incoming Requests, subtitle "Review and manage inspection and payment requests.", and a download icon button.
- A two-part segment switches the list: Inspection (n) and Payment (n). The numbers count inspections in
pending_reviewand bookings inrequested. Switching segment resets the filter to all. - Filter chips: all, pending, accepted, completed (see the mapping table above). Cancelled items only appear under all.
- Each inspection card shows the tenant avatar, name and email, a status chip, the property thumbnail, title and "community, state", an Inquiry box with the request notes (or "No inquiry note provided.") and "Scheduled: " followed by the date.
- Cards in
pending_reviewshow Reject and Accept. There is no confirmation dialog on this screen; the request is sent immediately.- Accept sends
PATCH /api/v1/inspection/:id/reviewwithactionset toapprove. Success alert: "Success" / "Inspection request approved.". Failure alert: "Error" / "Failed to approve inspection request.". - Reject sends the same endpoint with
actionset torejectandrejectionReasonset to the fixed text "Declined from mobile requests screen". Success alert: "Updated" / "Inspection request rejected.". Failure alert: "Error" / "Failed to reject inspection request.".
- Accept sends
- While any inspection review is in flight, the Reject and Accept buttons on every inspection card are disabled.
- Cards on this screen are not tappable; they do not open the detail screen.
The Payment segment of this screen is covered in Bookings and payment requests.
No reschedule on mobile
The mobile app has no reschedule action for inspections. The agent can only approve or reject. The backend routes POST /api/v1/inspection/schedule and PATCH /api/v1/inspection/:id/complete currently return a "coming soon" message, so there is also no agent action that marks an inspection as completed.
States and edge cases
| Situation | What the user sees |
|---|---|
| Detail loading | Header plus a centred spinner |
| Detail failed, not found, or not your property | Alert icon, "Couldn't load this request" and a Try again button that refetches |
| Incoming Requests loading | Spinner with "Loading requests..." |
| Incoming Requests failed | "Failed to load requests" and Try again (refetches both lists) |
| Incoming Requests empty | "No inspection Requests" (the segment name is inserted in lower case) and "Requests that match your current filters will appear here." |
| Pull to refresh | Both screens support it; Incoming Requests refetches inspections and payment requests together |
| Missing avatar or property image | Incoming Requests falls back to placeholder images loaded from external URLs |
| Unknown status value | The raw status string is shown in a grey badge |
Things that look unfinished
The three items below are visible in the code today and are worth knowing when testing or answering support questions.
- The download icon in the Incoming Requests header has no
onPresshandler. It does nothing. - Tenant notes may not appear under Inquiry or Notes. When a tenant submits a note, the backend currently stores it in
cancellationReasonon the new inspection, so on the detail screen it shows up in the Cancellation reason row even for requests that were never cancelled. - A request that has already moved to
scheduled(the tenant paid before the agent reviewed) shows no Approve or Reject buttons on either screen.
What happens next
- The tenant (the "inspector" on the record) receives an in-app notification with event type
inspection_reviewed, titled "Inspection Request Approved" or "Inspection Request Rejected". The rejection body includes the reason. An email with a "View Inspection" button is sent as well. - On rejection the backend removes the inspection from the calendar (
CalendarService.removeInspection). - The Bookings tab summary cards and the dashboard "Pending Requests" stat change on their next refetch, because they count inspections by status.