RideKit
Docs/Reference/Mexico: SAT's read-only access to platform data

Mexico: SAT's read-only access to platform data

Built: 2026-11-03. Written for operators in Mexico, their legal and tax teams, and whoever maintains the code.

Since 2025 the Federal Tax Code (CFF art. 30-B) obliges digital platforms to give SAT permanent, real-time online access to the information they hold about the people who earn through them. RideKit gives SAT a key that can read, and only read, drivers' income and withholdings.

What SAT can read

With Authorization: Bearer sat_… at https://<your-api>/api/tax-authority/v1:

Request Answer
GET /withholdings?period=2026-11 That month's totals per driver RFC: trips, base income, ISR and IVA withheld
GET /drivers/{RFC}?from=2026-01&to=2026-11 One RFC, month by month (twelve months at most)
GET /drivers/{RFC}/trips?period=2026-11 That RFC's trips in a month, each with its date, base, rates and amounts withheld

Amounts are in centavos (minor units), as strings. The key opens nothing else: every other route refuses it. A malformed RFC or month is refused.

Admin → Tax → SAT access

  • Legal contact. The name, email and phone SAT should write to. Stored on the Mexico market.
  • Issue a key. The key is shown once, in a dialog: give it to SAT straight away. Only its fingerprint (SHA-256) is kept, so nobody can read it back, not even an admin.
  • Keys. Each key's name, prefix, date issued, last use and state. Revoke stops a key at once.
  • What SAT read. Every request: when, which key, the path and parameters, how many rows went out, and from which address.

Issuing and revoking keys needs tax.issue; seeing them needs tax.view. Both are recorded in the audit log.

Code

  • backend/src/tax/authority-access.ts: keys, RFC and month checks, the legal contact (no I/O);
  • tax/authority-access.service.ts: the three reads, the access log, and the admin routes;
  • migration 1700000158000-TaxAuthorityAccess;
  • admin: components/tax/SatAccessCard.tsx.

Check locally

SAT publishes the technical rules for this access (format, schedule, authentication) in its administrative rules (RMF). Confirm with your tax advisor what SAT currently asks for, and adapt the response if SAT specifies a format. The data and the access log are already here.

source: docs/sat-access-mexico.md (ships identically in the product zip)