Skip to Content
HomeLink Hub

Bookings and payment requests

The Bookings overview, the Payment Requests tab, and how a lister accepts or declines a buyer's request to pay.

Where it lives

RouteView fileAccess
/bookingssrc/views/app/bookings/bookings.tsxagent, landlord
/bookings?tab=reservationssame file, Property Reservations tabagent, landlord
/requests?tab=paymentssrc/views/app/requests/requests.tsx, src/views/app/requests/components/payment-requests-table.tsxagent, landlord
/payment-requests/:idsrc/views/app/requests/payment-request-detail.tsxthe booking's landlord

API calls are in src/services/bookings/booking-api.ts (base path /api/v1/booking).

Before you start

  • Signed in as an agent or landlord.
  • A payment request is a booking of type reservation or shortlet that a buyer or tenant raised from the consumer app. The lister must accept it before the buyer can pay into escrow.
  • The list only returns bookings whose landlordId is the signed-in user, and only that user may accept one.

Status names

API statusRequests tab and detail pageBookings page
requestedPendingPending
confirmedAcceptedConfirmed
completedCompletedCompleted
cancelledDeclinedDeclined

Flow

Bookings overview

/bookings is a read-only overview of everything clients have booked. It fires GET /api/v1/inspection/agent/requests and GET /api/v1/booking/landlord/payment-requests?page=1&limit=20.

  1. Four summary cards:

    CardValueSub-text
    Total InspectionsAll inspections"N pending" (pending_review plus in_progress)
    ScheduledInspections in scheduled"confirmed slots"
    ReservationsAll payment requests loaded"N awaiting confirmation" (requested)
    CompletedCompleted inspections plus completed reservations"all time"
  2. Two tabs: Inspection Bookings and Property Reservations, each with a count badge of pending items. The tab is kept in the URL as ?tab=reservations.

  3. A Status filter per tab, applied in the browser. Inspections: All Status, Pending Review, In Progress, Scheduled, Completed, Cancelled. Reservations: All Status, Pending, Confirmed, Completed, Declined. The card also shows "Showing N inspections" or "Showing N reservations".

  4. Inspection rows show Inspector, Property, Scheduled, Notes and Status. Clicking a row opens /requests/{id}, see Inspection requests.

  5. Reservation rows show Buyer / Tenant, Property, Date (requested date, plus "Confirmed (date)" once accepted), Price and Status. Clicking a row opens /payment-requests/{id}.

Bookings: summary cards and the Inspection Bookings tab.
Bookings: summary cards and the Inspection Bookings tab.

Payment Requests tab

  1. Open Requests and choose Payment Requests (/requests?tab=payments). The amber badge counts requests in requested.
  2. The Status filter (All Status, Pending, Accepted, Declined, Completed) is sent to the API: GET /api/v1/booking/landlord/payment-requests?page=1&limit=20&status=requested.
  3. Columns: Buyer / Tenant (name and email), Property, Amount (the listing's sale price, else its rent price, labelled "Purchase" or "Rent"), Status, Requested, and a Review link.
  4. Six rows per page in the browser, with ?page= in the URL. The footer reads "Showing X–Y of Z requests" and "page / pages".
  5. Review opens /payment-requests/{id}.

Only the first 20 are loaded

Both pages ask the API for page 1 with a limit of 20 and never request page 2. A lister with more than 20 payment requests sees only the first 20, and the summary counts are based on those. Export CSV and the Date Range button do nothing.

Review a payment request

  1. The page loads GET /api/v1/booking/{id} and is headed "Payment Request" with "Review and respond to the buyer's payment intent" and the status badge.
  2. The property card shows the photo, title, full address and a Rent or Purchase badge. It is "Rent" when the listing has a rent price and no sale price. Below are "Annual Rent" or "Sale Price" and the Requested date.
  3. Buyer's Notes appears when the buyer wrote any.
  4. Timeline lists "Request submitted", then "Request accepted" (with the confirmed date) or "Request declined".
  5. Client Information shows the name, email, phone and "Submitted (date)". The "Verified Buyer" line is fixed text, not a check.
  6. Respond to Request shows only while the status is requested.
A pending payment request, with Accept Payment Request and Decline.
A pending payment request, with Accept Payment Request and Decline.

Accept

  1. Press Accept Payment Request. The button reads "Accepting…" while it runs.
  2. The app sends PATCH /api/v1/booking/{id}/confirm with { "confirmedDate": "(now, ISO)" }.
  3. Toast: "Payment request accepted. The buyer can now proceed to payment."
  4. The status moves from requested to confirmed. The badge reads Accepted, the action card is replaced by a green "Request Accepted" card ("The buyer has been notified and can now proceed to escrow payment."), and the timeline gains "Request accepted".
  5. On failure the toast shows the API message, or "Failed to accept request". The API answers "You do not have permission to confirm this booking" for anyone other than the booking's landlord.

Decline

  1. Press Decline. The "Decline Payment Request" dialog asks for a reason.
  2. Validation: an empty reason shows "Please provide a reason for declining." under the box. The API additionally requires 5 to 500 characters, and a shorter reason comes back as an error toast.
  3. Press Confirm Decline ("Declining…" while it runs). The app sends PATCH /api/v1/booking/{id}/cancel with { "cancellationReason": "..." }.
  4. Toast: "Payment request declined." The dialog closes.
  5. The status becomes cancelled. The badge reads Declined, a red "Request Declined" card appears and the timeline gains "Request declined". Cancel closes the dialog and clears the text.

Short-let stays

Short-let bookings use the same lists and the same detail page, because the API treats both reservation and shortlet bookings as payment requests.

No short-let specific fields

The screens do not show check-in, check-out or the number of nights, and there is no separate short-let action. Accept and Decline call the same two endpoints. When a short-let stay is declined, the API hands the nights back so the property can be booked again.

States and edge cases

SituationWhat the user sees
Payment Requests tab loadingSpinner with "Loading payment requests..."
No payment requests"No payment requests found."
Bookings page loadingCentred spinner in the table card
Empty Bookings tabs"No inspection bookings found." or "No reservation bookings found."
Detail loadingSpinner with "Loading payment request…"
Unknown id or failed load"Payment request not found." with a Go Back button
Status is not requestedNo action buttons, only the status card
A new request arrivesAppears after a reload. These screens have no realtime update

What happens next

  • Accepted: the buyer gets an in-app notification and email titled "Payment Request Accepted", saying they can now make payment. Their payment creates or funds an escrow, see Escrow.
  • Declined: the buyer gets a notification ending in "Declined" with the reason the lister typed.
  • Completed: once the deal's escrow completes, the money shows on /earnings, see Earnings and withdrawals.

On this page