RideKit
Docs/Reference/Earnings advances for drivers

Earnings advances for drivers

Built: 2026-11-03. Written for operators (Mexico first, any market), their finance and legal teams, and whoever maintains the code.

DiDi's "adelanto de ganancias" and Uber's partner loans let a driver draw part of what they reliably earn, for one fee shown up front, and pay it back from their next trips. RideKit now offers the same. It is off everywhere until the operator switches it on, because lending is regulated.

What the driver sees (Wallet → Earnings advance)

  • Get up to MX$2,500 of your coming earnings today, with three amounts to choose from: a quarter, half, or all of it.
  • Before they accept: the one-time fee and the total they will pay back. There is no interest.
  • Get MX$1,250 now: the money is in the wallet at once.
  • With an advance open: what is left to pay, a progress bar, and Pay back now, which takes what the wallet holds.
  • When it is not available, why:
    • the driver has not been driving long enough;
    • not enough trips in the last 30 days;
    • no recent earnings;
    • the balance is below zero (a fleet's rent, cash commission owed), which would swallow the advance;
    • an advance is already open.

The rules the server keeps

Default
Limit 50% of the driver's average week of earnings (fares and tips over the last 4 weeks ÷ 4), whole currency units, under a cap of MX$5,000
Fee 5% of the amount, flat, booked as platform revenue when drawn
Repayment 20% of each trip's earnings, never more than the wallet holds
On withdrawal The advance is paid first from the balance. Asking for more than what is free is refused, with how much is free.
Eligibility 30 days on the platform and 40 trips in 30 days
At a time One open advance per driver (enforced by the database)

Admin

Markets → Mexico → Earnings advances sets the switch and every figure above. A refused value, such as a fee over 20%, is rejected by the server.

The list below the settings shows open advances, or all of them, with what has been paid. An advance that will not come back (the driver left) can be written off. What is still owed leaves the receivable as a loss to platform revenue. Write-offs need payout.approve and are in the audit log.

Accounting

Event Debit Credit
Drawn Advance receivable (amount + fee) Driver wallet (amount), platform revenue (fee)
Repaid (trip, withdrawal, early) Driver wallet Advance receivable
Written off Platform revenue Advance receivable

Each repayment entry is counted once, even if its posting is replayed (driver_advance_collections). The driver's wallet lists "Earnings advance" and "Advance paid back" in their language.

Code

  • backend/src/payouts/earnings-advance.ts: the limit, the fee, the collection (no I/O);
  • payouts/earnings-advance.service.ts:
    • /api/driver/advance (view, draw, repay);
    • /api/admin/advances (list, write off);
  • rides/dispatch.service.ts: collection after each settled trip;
  • payouts/payout.service.ts: paid first on withdrawal;
  • migration 1700000164000-EarningsAdvance;
  • driver app: src/components/AdvanceCard.tsx on the wallet;
  • admin: components/markets/EarningsAdvanceCard.tsx.

Not built: interest on wallet balances

Paying a return on money held in drivers' wallets makes the operator a deposit-taker, a banking activity. It is left to a licensed partner.

Check locally

  • Mexico: lending to the public needs a SOFOM (the operator's own or a partner's), and CONDUSEF requires the total annual cost (CAT) to be shown before the driver accepts. Have your counsel confirm the fee, the disclosure text and the contract. Under the 2025 platform-worker reform, the driver's net income for IMSS is computed before this repayment.
  • Brazil: lending needs an institution authorised by the Banco Central, and the total effective cost (CET) shown.
  • India: through an RBI-registered NBFC or bank, under the digital-lending guidelines.
source: docs/earnings-advance.md (ships identically in the product zip)