Prepaid booths
Built: 2026-11-02. For the operator running counters at airports and railway stations, and for whoever maintains the code.
A prepaid booth is a counter where staff sell a ride to a walk-in rider — often without the app, sometimes without data:
- the staff member picks the car and the destination;
- the rider pays the fixed fare on the spot, in cash, by UPI or by card;
- the ride is dispatched from the booth like any other;
- the rider leaves with a slip, and gets an SMS with the ride PIN and a live link to the car.
At the counter (Admin → Prepaid Booths)
- Enter the rider. Type the rider's mobile number; their name is optional. A rider with no account gets one, vouched for by the staff member, as a phone booking would be.
- Choose the trip. Type the destination and pick it from the list. Every ride type is shown with its fixed fare from the booth.
- Take the money. Choose how the rider paid, take the money, then press Take ₹X and book.
- Hand over the slip. It shows the fare, the PIN to read to the driver, the booking code, and whether the SMS went out. Print it if needed.
- Watch the right-hand side. It shows today's sales with the car each one got, and the takings by method for the cash handover. It refreshes every 15 seconds.
What the driver sees. A Prepaid chip on the offer, and on the trip screen "Paid at the booth — don't take money from the rider".
Refunds. A sale whose ride is cancelled or finds no car (status
no_drivers) is a refund the counter owes the rider. The report lists them
separately.
Money
- The fare is what was sold. No meter, no waiting charge and no reroute adjustment.
- Settlement:
- the fare is debited from the
booth_clearingaccount, which holds the booths' takings until handed over; - the driver's earning and the commission are credited as usual;
- there is no "cash in the driver's hand" entry, because the driver collected nothing.
- the fare is debited from the
- Tolls and airport fees inside the fare follow
docs/airports.md.
Setting up (Setup tab, booth.manage)
- Add a booth. It needs a name, an address and its location (lat, lng). Rides start from that point, so put it where cars can stop. A booth inside an airport zone gets the airport fee and the driver queue automatically.
- Staff. List the staff phone numbers. Each must already have an account;
they are given the
booth_agentrole, which can only sell at the booths they are assigned to. - Opening and removing. Close a booth with the toggle. Removing a booth keeps its past sales in the report.
- The takings report. It shows takings per booth, day and payment method, with refunds, and exports to CSV.
Permissions
| Permission | Who has it by default | What it allows |
|---|---|---|
booth.book |
booth_agent, admin, super_admin |
Sell at the booths you are assigned to (managers: any) |
booth.manage |
admin, super_admin |
Set up booths and staff, read the takings report |
Code
| Piece | Where |
|---|---|
| Service (sale, rider by phone, SMS ticket, today, report) | backend/src/booths/booths.service.ts |
| SMS copy (11 languages) | backend/src/booths/booth-sms-copy.ts |
| Prepaid booking and settlement | rides.service.ts (prepaidAtBooth), dispatch.service.ts, wallet.service.ts (BOOTH_CLEARING) |
| Migration | 1700000112000-PrepaidBooths |
| Admin | admin/src/app/(dashboard)/booths/ |
| Driver app | Prepaid chip in OfferSheet.tsx, banner in app/(app)/trip.tsx |
Not built
- No re-dispatch from the counter. When a ride finds no car, the counter refunds; it cannot re-send the same paid ride.
- No card terminal or UPI QR integration. The counter records how the rider paid.
source: docs/prepaid-booths.md (ships identically in the product zip)