RideKit
Docs/Reference/Mexico: casetas, segundos pisos and "sin cuota"

Mexico: casetas, segundos pisos and "sin cuota"

Built: 2026-11-03. Written for operators in Mexico, and for whoever maintains the code.

Highways in Mexico charge at casetas (toll booths), and Mexico City's elevated highways (Autopista Urbana, Supervía Poniente, Viaducto Bicentenario) charge by section and time of day. Riders expect to see these on the fare, and many ask for a route that avoids them ("sin cuota").

What the rider sees

  • The quote includes the tolls on the route. For example: "Includes MX$45.00 in Caseta Norte tolls for this route (gates: 1)".
  • Sin cuota switch on the booking screen. When it is on:
    • the fare is priced on a toll-free route, so it is often a few minutes longer;
    • the rider is charged no toll at all, whichever road the car takes.
  • The receipt lists each toll: booths the app knows, then any the driver added, marked "driver's receipt".

What the driver does

On the trip screen, Add a caseta from its receipt: type the amount and, if they want, the booth's name. Only booths the app missed need this.

  • They can add a receipt from reaching the pickup until the trip ends, and remove one they got wrong.
  • A sin cuota trip tells the driver to take the toll-free route, and that any toll they take is theirs. Receipts are refused.
  • What receipts add is held to a limit per trip (MX$600 by default). The receipt that goes over the limit is cut to what is left.

Admin

Markets → Mexico → Pricing → Tolls: sin cuota and drivers' receipts:

  • the switch offers sin cuota and takes receipts;
  • Most a trip can add from receipts sets the limit.

Booths the app charges on its own are drawn in Zones as toll gates, each a thin shape across the road, with:

  • a network name and a price;
  • optional time windows (days, from, to, price). Draw each section of a segundo piso as a gate, with its peak and off-peak prices as windows.

A booth is charged when the car's GPS crosses it, at the price for that moment. With no GPS track the quoted toll stands.

How a fare is settled

Trip Tolls charged
Normal The gates the car crossed + the driver's receipts, up to the limit
No GPS track The quoted toll + the driver's receipts, up to the limit
Sin cuota None

Tolls are charged as they were paid. The driver's receipts are kept on the trip's toll lines and in the settlement record (receipt: true).

Code

  • backend/src/geo/toll-receipts.ts: the market setting, the receipt check and the limit (no I/O);
  • geo/geo-routing.service.ts: avoidTolls (Google routeModifiers, OSRM exclude=toll);
  • pricing/pricing.service.ts: no gate tolls on a sin cuota quote;
  • rides/toll-receipts.service.ts: GET/POST/DELETE /api/driver/rides/:id/toll-receipts;
  • rides/dispatch.service.ts: settleTolls and tollChoices;
  • migration 1700000159000-Casetas: rides.avoid_tolls, ride_toll_receipts;
  • rider app: app/(app)/confirm.tsx (switch) and trip/[id].tsx (receipt lines);
  • driver app: src/components/TollReceipts.tsx;
  • admin: components/markets/TollReceiptsCard.tsx.

The rider, driver and partner apps now re-read the market each time they come back to the foreground (at most once a minute). A change made in admin, such as turning sin cuota off, reaches riders without a restart.

Check locally

  • Toll prices. CAPUFE and the concessionaires change toll prices, usually in January. Keep the toll gates' prices current.
  • Who pays tolls. Confirm with your counsel that passing tolls on to the rider at cost, as the receipt shows, fits PROFECO's rules on disclosing the full price.
source: docs/casetas-mexico.md (ships identically in the product zip)