RideKit
Docs/Reference/Teen accounts

Teen accounts

Built: 2026-11-04.

This is for operators, and for whoever maintains the code.

Overview

A parent adds their teenager, aged 13 to 17, to a family. The teen books their own rides in the rider app. The fare comes out of the parent's wallet, and the parent follows every ride live.

A teen's ride has rules an adult's ride does not:

Rule How
Only well-rated, experienced drivers Dispatch offers the ride only to drivers whose rating and number of completed trips meet both thresholds.
A PIN starts every ride The start PIN is required on every teen ride, whatever the market's PIN setting.
The parent pays Payment is forced to wallet, and the parent's wallet is charged. A teen cannot ride on a company account.
The parent is told at each step Push notifications go out when the ride is requested, accepted, started, completed and cancelled. On acceptance, the push carries a live tracking link.
Adulthood ends it On their 18th birthday the teen leaves the family, and from then on rides as an adult who pays for themselves.

Teen accounts are on by default in the US and off everywhere else.

Settings

Admin → Markets → (country) → KYC → Teen accounts. Saved as the market config section teenAccounts.

Field Default Meaning
enabled US on; elsewhere off Parents can add teens.
minAge / maxAge 13 / 17 The ages allowed, as whole years on the day the parent sends the invite and the day the teen accepts it. Each must be from 10 to 17.
minDriverRating 4.85 The lowest driver rating that is offered teen rides.
minDriverTrips 100 The fewest completed trips a driver needs before they are offered teen rides.

Confirm locally. The 13–17 age range and the driver thresholds follow the large US apps, but no US law sets them. Confirm them with counsel, along with the terms of service and parental consent wording for minors (for example COPPA for under-13s, and each state's rules on contracts with minors).

Flow

  1. Parent: Menu → Family → Add a teen. They enter the teen's name, phone number and date of birth. An age outside the range is refused, as is a parent known to be under 18.
  2. Teen: sees the invite on their own Family screen and taps Accept. The date of birth the parent entered is copied to the teen's account if the account had none. A teen can belong to only one family, and cannot invite anyone.
  3. Teen books. The booking is checked against the parent's wallet: if it cannot cover the estimate, the booking is refused with family_wallet_low, naming the parent.
  4. The ride:
    • dispatch offers it only to drivers who meet both thresholds;
    • the driver needs the teen's PIN to start;
    • the parent gets each notice, with the live link on acceptance;
    • on completion the fare is charged to the parent's wallet.
  5. History:
    • the parent's Family screen lists the teen's rides;
    • the parent's wallet labels each charge with the teen's name, for example "Ride fare · Aanya";
    • Admin → Trips → (trip) badges the rider Teen and says who paid.
  6. Ending:
    • the parent can remove the teen, or the teen can leave;
    • turning 18 ends the membership automatically the next time it is read (ended_reason = 'aged_out');
    • from then on the teen's rides are their own;
    • the parent still sees the past rides they paid for.

Error codes

Code When
teen_accounts_off The market has teen accounts off.
teen_dob_required, teen_too_young, teen_too_old The date of birth is missing, or outside the range.
parent_not_adult The parent's own date of birth says they are under 18.
teen_name_required, teen_phone_invalid The invite is incomplete.
teen_already_member The teen is already in a family.
teen_cannot_add A teen tried to add family members.
teen_no_org A teen tried to ride on a company account.
family_wallet_low The parent's wallet cannot cover the ride.

Code

Area Where
Rules (no I/O) backend/src/family/teen-accounts.ts (+ spec)
Service and routes backend/src/family/family.service.ts: GET /family, POST /family/teens, POST /family/invites/:id/accept, DELETE /family/members/:id, GET /family/rides
Data Migration 1700000204000-TeenFamily: families, family_members, rides.payer_id, rides.teen_ride
Booking rides.service.ts book(): resolves the teen, forces wallet and PIN, checks the payer's wallet, notifies the parent
Dispatch drivers.service.ts findNearby (minDriverRating, minDriverTrips); dispatch.service.ts settles on payerId ?? riderId
Cancellation fees cancellation.service.ts charges the payer
Push copy notifications/push-copy.ts: teen_ride_*, in 11 languages
Rider app mobile/rider/app/(app)/family.tsx; push.ts routes teen_ride; wallet rows use forName
Admin components/markets/TeenAccountsCard.tsx; TripParties teen badge; TripMoney "from the parent's family wallet"

Tested

  • Unit tests: teen-accounts.spec.ts.
  • End to end against the running stack, in 21 checks:
    • invite, accept and refusals;
    • the family-wallet charge;
    • driver filtering by rating;
    • the PIN gate and the parent's live link;
    • the wallet naming the teen;
    • removal, and the parent's history surviving it.
  • The parent and teen screens were checked on the iOS simulator in Arabic (RTL).
  • The admin card and trip badge were checked in Chrome.
source: docs/us-teen-accounts.md (ships identically in the product zip)