RideKit
Docs/Reference/Brazil: cancellation accountability

Brazil: cancellation accountability

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

Cancellations are the top consumer complaint about ride apps in Brazil. The complaints are about drivers who cancel and about cancellation fees charged wrongly:

  • Senacon (Ministry of Justice) notified Uber and 99.
  • Procon-RJ and Procon Carioca fined both apps.

RideKit already had cancellation fees with a free window, fee waivers by staff, refunds from the trip page, and a complaint desk with response times. This adds the rest.

No fee when the driver is at fault

A rider who cancels after the free window, before the driver arrives, pays nothing when the driver's own track shows that the driver was:

  • running late: past the expected arrival by more than the grace (default 5 minutes). The expected arrival is the driver's distance at acceptance at city speed (25 km/h), and at least 1 minute;
  • heading away: farther from the pickup than at acceptance by more than the set distance (default 500 m).

The track starts where the driver was when they accepted, then follows their location fixes on the way. With no track, the usual fee stands.

  • The rider's cancel sheet says so before they confirm: "No fee: your driver is running late" or "…heading away from you".
  • The ride records the outcome (driver_late, driver_moved_away).

Markets → Brazil → Payments → No fee when the driver is at fault turns this on or off and sets the minutes and metres. It is on by default in Brazil and off elsewhere.

Contest a charge (rider app)

On a trip's receipt, or a cancelled ride that cost a fee, the rider taps Contest this charge and picks a reason:

  • the route was longer than needed;
  • they were charged more than the estimate;
  • the driver never came;
  • they should not have paid a cancellation fee;
  • something else (a note is required).

It reaches support as a charge complaint on that ride, in Safety & SOS, with the complaint desk's response times. Support answers it and refunds from the trip page (docs/trip-disputes.md).

The report (Admin → Reports → Cancellations and charge complaints)

For the chosen period, the report shows:

  • Totals:

    • driver cancellations and their rate (of accepted trips);
    • rider cancellations;
    • fees charged;
    • fees waived because the driver was at fault, and fees waived by staff;
    • refunds;
    • charge complaints (open and total).
  • Where and when drivers cancel: by region and local hour.

  • Drivers who cancel most, with their rate.

  • Why riders cancelled, from the reason they picked.

  • What riders' cancellations cost, by outcome.

  • Download for Procon (CSV). It lists every cancellation fee (charged or not), refund and charge complaint, one per row, with these columns:

    • date and time;
    • type;
    • ride;
    • rider's name and phone;
    • amount;
    • reason;
    • detail;
    • outcome.

    The file is semicolon-separated with a BOM, so it opens in Brazilian Excel. It contains personal data, so it needs the report permission and every export is audited.

For the code

What Where
The waiver rule (pure) backend/src/cancellation/cancel-waiver.ts
Applying it cancellation.service.ts quote() → driverFaultFor(); the approach start is recorded at acceptance (rides.service.ts transitionAndNotify)
Fee outcome on the ride migration 177: rides.cancel_fee_minor, cancel_fee_reason; also on the rider's receipt
Report and CSV cancellation/cancellation-report.service.ts (/admin/reports/cancellations, /csv)
Admin components/reports/CancellationsCard.tsx, components/markets/CancelWaiverCard.tsx
Rider app src/components/ContestCharge.tsx (receipt), CancelSheet.tsx (waiver message)

Check before launch. Confirm the grace and the distance with counsel against the Consumer Defence Code and any Procon agreement. Publish your cancellation policy in the terms.

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