RideKit
Docs/Reference/Brazil: car rental plans for fleet drivers

Brazil: car rental plans for fleet drivers

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

In Brazil the usual fleet model is renting a car to an app driver:

  • Kovi rents by the week with a km allowance, from about R$299 for 100 km up to R$469 for unlimited km.
  • Localiza and Movida rent by the week or the month.
  • A deposit (caução) is standard.
  • A car that breaks down is replaced.

RideKit already charged a fixed rent to the driver's earnings, tracked arrears, recorded rent paid outside the app, and ran rent-to-own. This adds the rest.

What the fleet partner does (partner app)

Rental plans (from the overview): weekly or monthly templates. Each plan has:

  • a name and a rent;
  • the km it includes, or none for unlimited;
  • the price of each extra km;
  • the deposit it asks.

Editing a plan moves every driver on it to the new terms from their next period. Retiring a plan stops new drivers joining it; drivers already on it keep their terms.

A driver's page → Rent:

  • Rental plan → Choose / Change. Putting a driver on a plan puts them on a fixed rent charged to their earnings. Any rent-to-own agreement ends. Choosing "No plan" removes the km terms but keeps the rent until you change it.
  • The km meter shows this period's km against the allowance. Past the allowance it shows the overage so far.
  • Deposit (caução):
    • Record a deposit received by cash, Pix, bank transfer or other.
    • Settle it, now or when the driver leaves. Part goes toward what the driver owes, which clears that much of their debt like a rent payment. Part goes back to the driver. You can never put more toward the debt than the driver owes, or settle more than you hold.
    • Every movement is listed.
  • Rent can now be recorded as paid by Pix in Brazil (UPI in India).

Replacement cars (overview card when any are waiting):

  • A request shows the driver, their car, the reason and their note.
  • Give a car: pick one of your free active cars. It becomes the driver's, and the broken car comes back to the fleet.
  • Decline: give a reason, which the driver sees.
  • The driver is notified either way, in their language.

What the driver sees (driver app → Wallet → Fleet rent)

  • The plan, and a meter of this period's km against the allowance, with any overage so far.
  • The deposit the fleet holds.
  • Ask for a replacement car: choose broken down, accident, in for service or other (other needs a note). Then see the answer, or cancel the request. One request can be open at a time.
  • Overage charges appear in the history, with the km driven and included.

How km and overage are counted

  • Km come from the driver's completed trips in the fleet's cars in the period. They use the GPS odometer's metres where there are any, else the trip's distance, and the market's calendar. Weeks start on Monday; months on the 1st.
  • At the start of each period, the nightly rent run also bills the period that just ended. Only whole km over the allowance are billed (112.9 km on a 100 km plan is 12 km), at the plan's price.
  • Billing happens once per period. Running it again moves no money.
  • The charge goes from the driver's wallet to the fleet's, like rent. A period within the allowance is recorded at zero.
  • Km driven to pickups are not counted. The meter only counts trips.
  • A driver who leaves the fleet mid-period is not billed overage for that last period. Settle it against the deposit.

For the code

What Where
Plans, overage, deposit and settlement rules backend/src/fleet/rent-plans.ts
Monthly period, km driven, overage billing backend/src/fleet/lease-billing.service.ts (kmDriven, chargeOverage, currentPeriodStart)
Plans, assigning, deposit, replacement requests, statement backend/src/fleet/fleet-rent.service.ts
API /fleet/rent-plans, /fleet/drivers/:id/rent-plan, /fleet/drivers/:id/deposit(/settle), /fleet/replacements(/:id/resolve), /driver/rent/replacement
Storage migration 176: fleet_rent_plans, fleet_overage_charges, fleet_deposit_events, fleet_replacement_requests, membership rent_plan_id, lease_km_allowance, lease_overage_per_km_minor
Push replacement_assigned, replacement_declined (11 languages)
Partner app app/(details)/rent-plans.tsx, replacements.tsx, src/components/RentSection.tsx
Driver app app/(app)/rent.tsx, src/components/FleetRent.tsx

Check before launch. Deducting rent from a driver's earnings needs their agreement. Put it in the rental contract the driver signs, along with the deposit, the km allowance and the overage price.

source: docs/brazil-fleet-rental.md (ships identically in the product zip)