US: airport permits, fees and remittances
Built: 2026-11-04 (remittances and the trip log; the rest existed). Written for US operators and whoever maintains the code.
A US airport lets a ride platform operate under a permit agreement. The agreement typically requires:
- permitted drivers;
- pickups only in designated lots;
- a fee on every trip, which the platform collects and pays the airport each month;
- a monthly file listing every trip.
What an airport needs, and where it lives
| Requirement | Where |
|---|---|
| The airport's boundary, fee and who pays it | An airport zone (Admin → Zones). feePayer is platform when the operator pays the airport, or driver when the driver pays at the gate and is repaid. The fee is charged on pickups and drop-offs. |
| Driver airport permit | permitRequired. Pickups there go only to drivers holding an approved, unexpired airport_permit document. |
| Designated pickup lots | The airport's pickup points. Riders can only book from them, and they show on the receipt. |
| Staging lot and queue | A holding-area zone with a first-in-first-out queue and a short-trip pass. |
| Eligibility | eligibility.maxCancelRatePct and the related settings |
| Monthly remittance | Admin → Remittances (new) |
| Per-trip file | Trip log on that page (new) |
Airport fees carry no commission. A fee the platform pays the airport is held
in the ledger account airport_fee_payable. A fee the driver pays at the gate
is repaid to the driver in full.
Remittances (Admin → Configuration → Remittances)
The page lists everyone the operator owes from riders' fares. It opens on last month, which is the one due now:
- each airport the platform pays;
- each authority behind a regulatory fee.
For each payee it shows the trips and the amount owed. Record payment saves the transfer, ACH or check reference and the payment date, under these rules:
- a month can be paid only once it has ended;
- the amount saved is what completed trips owed at that moment;
- each payee and month is recorded once;
- a payment date cannot be in the future.
Recording a payment needs the payout.approve permission and is audited as
remittance.record. Viewing the page needs tax.view. Fees that drivers pay
at the gate themselves are not listed.
The airport trip log
Trip log downloads one airport's month as one row per trip:
- trip, start and completion time;
- whether the trip was a pickup or a drop-off at the airport;
- the pickup point;
- the car's plate;
- the driver and their airport permit number and expiry;
- who paid the fee, and the amount.
The file contains drivers' names and permit numbers, so each download is
audited as airport_trips.export.
Each airport's permit agreement sets its own fee, report format and payment deadline. Check the agreement and map its columns from this file.
Code
backend/src/airports/remittances.service.ts: the owed amounts, recording a payment, and the airport trip log.- Migration
1700000190000-FeeRemittancesadds thefee_remittancestable. - Airport rules:
geo/airport-rules.ts. Monthly airport fee report:airports/airport-fees.service.ts. - Admin:
app/(dashboard)/remittances/page.tsx.