RideKit
Docs/Reference/Brazil: driver perks (partner offers)

Brazil: driver perks (partner offers)

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

Ride apps in Brazil give drivers partner discounts: fuel at Ipiranga (Km de Vantagens) and Shell (Shell Box), oil changes and tyres, insurance and phone plans. The partner runs the discount. The platform hands over the code or the sign-up link, and tells the partner how many drivers took it. That count is what the partner pays for.

What the operator does (Admin → Driver perks)

Add an offer with:

  • the partner and a category: fuel, maintenance, tyres, insurance, phone, food or other;
  • a title and what drivers get, for example "R$0,20 off a litre";
  • how to use it, for example "Show the code at the till at any Ipiranga";
  • a code, a link (https only), or both;
  • optionally a tier. Only drivers at that tier or above can take it (see driver tiers). With tiers off in the market, a tier-limited offer is shown locked to everyone, never open to everyone;
  • optionally dates, and the offer can be switched off.

The list shows, for each offer:

  • whether it is live, outside its dates or off;
  • its claims, in total and in the last 30 days;
  • a claims file for the partner: the date and a driver reference (the first 8 characters of the driver's id), with no names.

Creating and editing are audited.

What the driver sees (driver app → Menu → Partner offers)

  • Their tier, if the market has tiers.
  • Each live offer: partner, title, what they get, how to use it, and the end date if it has one.
  • Get the code: the code is shown once claimed, as large selectable text, and the claim is counted. A driver who claims again is counted once.
  • Open (partner): opens the link. An offer with only a link counts the claim when the driver opens it.
  • An offer for a higher tier is shown locked: "For Ouro drivers and up". The server refuses to claim it too.

Tested end to end

  • API (perks-e2e.mjs, 19 checks):
    • an offer with no code or link is refused, and drivers and riders cannot add one;
    • offers added: Ipiranga with a code, Shell Box with a link, an Ouro-only tyres offer, a switched-off one and an expired one;
    • the driver sees only the live ones, and their tier;
    • no code before claiming; claiming shows the code, and claiming again counts once;
    • the Ouro offer is locked, and refused when claimed;
    • riders cannot see driver offers;
    • admin claim counts and the claims file have no names;
    • editing works.
  • Admin in Chrome (admin-perks.mjs): adding an offer, a missing code or link refused, and the new row listed.
  • Driver app on the iOS simulator:
    • the three live offers and "Your tier: Azul";
    • claiming Ipiranga showed RIDEKIT25;
    • the Ouro tyres offer was locked.

For the code

What Where
Rules: categories, validation, live dates, tier check backend/src/drivers/driver-perks.ts (+ spec)
Admin and driver APIs, claims file backend/src/drivers/driver-perks.service.ts
API GET/POST/PUT /admin/driver-perks, GET /admin/driver-perks/:id/claims.csv, GET /driver/perks, POST /driver/perks/:id/claim
Storage migration 181: driver_perks, driver_perk_claims
Admin app/(dashboard)/driver-perks/page.tsx, 15 languages
Driver app app/(app)/perks.tsx, a menu entry, 14 languages

Check before launch. Each partner offer needs an agreement with the partner covering the code, how claims are reported, and what the partner pays. Fuel cashback programmes such as Km de Vantagens and Shell Box run in the partner's own app: RideKit passes on the code or link and counts claims. It does not pay cashback itself.

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