Mexico: platform workers, net income and IMSS
Built: 2026-11-03. Written for operators in Mexico and for whoever maintains the code.
Since 22 June 2025, Mexico's Federal Labour Law (LFT, Chapter IX Bis) treats drivers on ride-hailing apps as platform workers. Each month the platform must work out every driver's net income (ingreso neto). A driver whose net income for the month reaches one monthly minimum wage gets full social security with IMSS for that month. Below it, the driver is still covered for occupational risks (riesgos de trabajo) while connected.
How net income is worked out
net income = gross − exclusion
exclusion = each earning × the factor for the vehicle it was earned in
Gross is what the driver earned through the platform in the month, read from the ledger:
- each completed trip's driver share, without tolls repaid;
- cancellation fees paid to the driver;
- platform bonuses (incentives, the weekly share top-up);
- riders' tips, only if the market counts them (off by default).
Exclusion factor (STPS rules in force since 1 January 2026), set by the vehicle the trip was made in:
Vehicle Factor Car (4+ wheels, petrol or electric) 48% Motorcycle (and three-wheelers) 32% Bicycle / no motor 3% A ride type's vehicle comes from its icon:
bike,autoandscooterare motorcycles,bicyclehas no motor, everything else is a car. Bonuses carry no vehicle, so they take the factor of the vehicle the driver used most that month.Threshold: MXN 9,582.00 net a month (the CDMX monthly minimum wage for 2026).
Daily contribution base (SBC) = net income ÷ days in the month. The IMSS registration needs it.
Months before 2026 are not worked out unless an operator adds their periods. Robotaxi cars are never counted.
Where to find it
Admin → Markets → Mexico → Tax → Platform workers (Mexico).
- Turn the calculation on or off (on by default in Mexico).
- Exclusion factors and thresholds are lists of dated periods. When STPS publishes next year's numbers, add a line starting 1 January and keep the old ones: past months keep their own rates.
- Choose whether tips count as income.
Admin → Platform workers (needs report.view; marking reviewed needs
driver.verify):
- pick a month and see the drivers with income, how many have full IMSS cover and how many have occupational risk only;
- per driver: trips, gross, exclusion, net income, daily base and cover. Rows for the current month show "so far";
- Export CSV for the IMSS registration;
- Recompute now (the system also does it every hour).
The bell in the admin top bar counts drivers who reached full cover and are not reviewed yet. Register them with IMSS for that month, using the daily base shown, then press Mark reviewed.
The driver sees a "Social security (IMSS) this month" card on the Earnings screen:
- net income so far against the threshold, with a progress bar;
- how much more they need to earn this month for full cover, or that they have it;
- the factor applied to their vehicle;
- how last month ended.
When a driver first reaches the threshold in a month, they get a push in their language: "Full IMSS cover for {month}".
How it runs
- Every hour the current month is recomputed for every driver who earned in it. The month just ended is closed once after it ends and is never changed again.
- One row per driver per month in
driver_monthly_income.crossed_atis set the first time the month reaches full cover, andreviewed_atis set by "Mark reviewed". - Code:
backend/src/labor/ingreso-neto.ts: the rules, no I/O;platform-income.service.ts: the hourly job, the driver view, the report and review;platform-income.controller.ts: the endpoints;- migration
1700000145000-PlatformIncome.
- The IMSS registration export and the connected-time log build on this (next items in the Mexico plan).
Weekly statements and pay at least weekly
Built: 2026-11-03. The law also asks the platform to record each worker's hours (worked and waiting), give a receipt for each payment period, and pay no later than weekly.
After each market week (Monday 00:00 to Monday 00:00, Mexico City time), every driver who earned or was online gets a weekly statement:
- trips, what riders paid, the platform's commission, fleet share, fare income, tips, bonuses, anything withheld (ISR/IVA, filled in once the SAT withholding is built), and what was earned;
- hours online, hours worked (from accepting a trip to its end) and hours waiting (online, not on a trip), from the driver status log;
- a fingerprint (SHA-256 of the figures). A closed statement can never be changed or deleted: the database refuses it. A correction is a ledger adjustment that lands in a later week.
Weekly pay. Right after the week closes, each driver's withdrawable balance is paid to their saved account through the ordinary withdrawal path (same limits, fees and ledger). A driver is skipped when:
- they already withdrew in the last 7 days ("already paid");
- the balance is under the market's payout minimum, or there is nothing to pay;
- they have no account. They get a push asking them to add one: any withdrawal or the nightly cash-out saves it.
The driver gets a push when the payment is on its way. The job runs every hour and also closes any of the last four weeks that are still open, so a week the server was down for still closes and is paid.
Where to find it
- Admin → Markets → Mexico → Tax → Weekly statements and pay (Mexico): turn the statements on, and turn the weekly payout on (both on by default in Mexico).
- Admin → Platform workers → Weekly statements:
- pick any day of the week;
- see each driver's trips, earnings, hours online / worked / waiting, and what the payout did (paid, no account, already paid, below minimum, failed — hover for the reason);
- Close last week now (needs
payout.approve) and Export CSV.
- Driver app → Menu → Weekly statements:
- this week so far, live;
- each closed week with its pay status;
- tap a week for the full figures, its fingerprint and Share receipt: a CSV receipt in the market's language (Spanish in Mexico).
Code: backend/src/labor/weekly-pay.ts (rules, no I/O),
weekly-statement.service.ts, weekly-statement.controller.ts, and
migration 1700000146000-WeeklyStatements. The figures use the same ledger
reader as the monthly income statements
(payouts/income-statement.service.ts). The hours come from
drivers/driver-hours.ts.
IMSS registration: IDs and the monthly report
Built: 2026-11-03.
The driver's IDs. In the driver app, Menu → Tax and social security IDs (also linked from the IMSS card on Earnings while anything is missing), the driver enters:
- CURP: 18 characters, checked against RENAPO's check digit and the state code;
- NSS: 11 digits, checked with its Luhn check digit;
- RFC: 13 characters for a person. Its first ten must match the CURP's;
- tax address postal code: 5 digits, for their tax receipts.
Any of them can be left for later, but nothing invalid is saved. Only the platform and the authorities it reports to see them.
The platform as employer. Admin → Markets → Mexico → Tax → Platform workers (Mexico) now also holds the IMSS employer registration (registro patronal, 11 characters), the company RFC (12) and the legal name.
The monthly IMSS report. Admin → Platform workers → pick the month → IMSS report (CSV). One line per driver with income, with Spanish column names:
- employer registration and RFC, period, CURP, NSS, RFC, name;
- days in the month, gross, exclusion, net income, the daily contribution base (SBC);
- cover (
completaorriesgos_de_trabajo); - hours connected and worked, trips;
- which IDs are missing.
The Missing IDs tile counts drivers with full cover but no CURP or NSS: their registration cannot be filed until they add them. Each such row says which ID is missing.
The file is made for filing through the IMSS platform-workers channel (or by your payroll provider). Confirm the exact layout with your IMSS adviser: IMSS may publish its own upload format, and this export has every field it needs.
Also fixed: a driver's hours for a period that has not ended (this month)
counted the future until the period's end. They now stop at the present
(drivers/driver-hours.service.ts). CSV exports from the server now defuse
spreadsheet formulas in names (common/csv-cell.ts).
Also fixed while building this
Market settings saved through Admin → Markets were silently dropped for any
section missing from the update's merge list. The admin said "saved" and
nothing changed. A new test (markets/config-merge-coverage.spec.ts) now
fails if a section is validated but not merged.
Local and legal checks
The factors, the threshold and whether tips count come from the STPS rules as reported in December 2025. They are settings, not code. Confirm them with Mexican labour counsel each year, and confirm with your IMSS adviser how the registration and the monthly report should be made.
ISR and IVA withheld from drivers (SAT)
Built: 2026-11-03. Mexican law (LISR art. 113-A, LIVA art. 18-J) has the platform withhold tax from drivers on what riders pay, without IVA:
| With an RFC | Without an RFC | |
|---|---|---|
| ISR | 2.1% | 20% |
| IVA | 8% (half of 16%) | 16% |
On every completed trip:
- the base is the fare (before any platform-funded promo) minus the IVA on the trip's invoice;
- ISR and IVA are worked out on it (rounded half up);
- the total moves from the driver's wallet to the withholding payable account (the same ledger path as India's TDS; the driver's wallet shows it as "Tax deducted");
- one row per trip is kept in
sat_withholdings.
Robotaxi cars are not withheld from.
Every month (once the month has ended, hourly job) each driver withheld from gets a CFDI de Retenciones 2.0 with the Plataformas Tecnológicas complement:
- withholding key 26, the month, totals, ISR and IVA withheld, the number of services;
- the platform as issuer (company RFC and legal name from the market card), the driver as receiver (their RFC, or the generic RFC, and their CURP).
Its issue date (FechaExp) is the Mexico City time it was issued, and its
place of issue (LugarExpRetenc) is the platform's tax address postal code
from Markets → Mexico → Tax → Riders' own invoices.
With a PAC connected (Admin → Providers → CFDI: base URL, user, password) it
is sent to POST {base}/retenciones and stamped. Otherwise it is kept as a
local document with a stand-in folio, marked "not stamped".
Where to find it
- Admin → Markets → Mexico → Tax → ISR / IVA withheld from drivers: on or off, and the four rates.
- Admin → Platform workers → ISR / IVA withheld (SAT):
- pick a month for each driver's RFC (or a "No RFC" warning with the higher rates), trips, income without IVA, ISR, IVA and certificate status;
- Informative return (CSV) gives the month's lines for SAT;
- Issue certificates issues a finished month now. The running month is refused, so no certificate is ever partial.
- Driver app → Menu → Tax withheld (ISR / IVA):
- the rates, and a warning with a link to add an RFC when it is missing;
- this month so far;
- each month's certificate with its folio and status, to share.
- Weekly statements now carry the week's ISR + IVA as "Withheld".
Code: backend/src/payouts/sat-withholding.ts (rates, the computation and
the certificate document; no I/O), sat-withholding.service.ts,
sat-withholding.controller.ts, and migration 1700000148000-SatWithholding.
The hook is in DispatchService.complete, next to TDS.
Check with your advisers:
- the rates;
- the withholding key and the complement's catalog codes (service type 02, subtype 05 for passenger transport);
- your PAC's exact endpoint;
- how SAT wants the informative return filed.