RideKit
Docs/Reference/Brazil: city compliance profiles and São Paulo's road-use fee

Brazil: city compliance profiles and São Paulo's road-use fee

Built: 2026-11-03. Written for operators in Brazil, their legal team, and whoever maintains the code.

In Brazil the federal law (Lei 12.587/2012, as changed by Lei 13.640/2018) leaves app transport to each municipality. The big cities each set:

  • who licenses the platform;
  • the papers a driver needs;
  • how old a car may be;
  • a city registry for drivers and cars;
  • in São Paulo, a per-km charge for using the roads.

RideKit already applies rules per region (city → state → country). It now ships a starting profile for nine cities, and the São Paulo road charge.

Starting a city from its profile

Admin → Zones → New zone → Type: Region → Start from a city profile fills the region with the city's known rules:

City Licensing Driver papers (beyond the market's) Oldest car Other
São Paulo SMT / DTP (CMUV) criminal record, APP insurance, vehicle registration, city registry, course 8 years CSVAPP per car; R$0.10/km road-use fee
Rio de Janeiro SMTR criminal record, APP insurance, vehicle registration, city registry 8
Belo Horizonte BHTRANS same 10
Brasília SEMOB-DF same, plus course 8
Curitiba Setran criminal record, APP insurance, vehicle registration, city registry 8
Porto Alegre EPTC same, plus course 8
Recife, Fortaleza, Salvador CTTU, ETUFOR, SEMOB criminal record, APP insurance, vehicle registration 8

The name and code come with it. A note says what to check or set by hand: for example, São Paulo's municipal ban on app moto-taxi is in court, so switch your moto ride type off under Ride types not offered here if it stands. Draw the city's boundary and save.

These are starting points, not the law. Check every figure against the city's current decree.

Once saved, the rules apply as for any region. A driver missing a required paper, or with a car past the age limit or without its city registration, cannot go online there, and is told why in their language.

São Paulo's road-use fee

Decreto 56.981/2016: each platform buys km credits for its trips' use of the city's roads. A region can now carry a City road-use fee:

  • who is paid;
  • the price per km.

For each trip starting in the region, RideKit records:

  • the km driven (or the quoted distance when there is no GPS track), rounded up to the next 100 m;
  • the price;
  • the fee.

It is the platform's cost. The rider's fare and the driver's earnings do not change.

Admin → Tax → City road-use fees shows the trips, km and amount owed per authority and month, with a CSV export, for buying the credits.

Code

  • backend/src/geo/municipal-profiles.ts: the profiles (no I/O);
  • GET /api/admin/regions/profiles;
  • geo/region-rules.ts: roadUseFee and roadUseFeeAt;
  • payouts/municipal-fee.service.ts: the record per trip and the report (GET /api/admin/reports/road-use-fees);
  • migration 1700000165000-MunicipalRoadFees;
  • admin:
    • zones/page.tsx (profile picker);
    • RegionFields.tsx and region-form.ts (the fee);
    • components/tax/RoadUseFeesReport.tsx.

Check locally

  • Each city's current decree: what papers it needs, the age limit, whether it keeps a registry, and any fee per trip or km and its price.
  • São Paulo: the km-credit price in force, and the state of the moto-taxi litigation.
source: docs/brazil-city-profiles.md (ships identically in the product zip)