//Use Cases

CPF and CNPJ API for Mobility & Transportation: Passenger Validation

At CPF.CNPJ, we simplify and streamline access to essential information about individuals and companies.

View packages

The Challenge: Passenger and Driver Validation in mobilidade

Transport and mobilidade empresas face unique identity validation challenges at massive scale: airlines process millions of passengers monthly, ride-hailing apps validate thousands of drivers daily, and bike/scooter sharing systems register hundreds of thousands of users. Law 11.116/2005 and ANAC Resolution 400/2016 require a valid CPF to issue airline tickets, while municipal ride-hailing regulations (São Paulo Decree 56.981, Rio Law 6.090) require rigorous CPF/CNPJ validation of drivers and passengers.

Transport fraud has significant operational and financial impact: tickets issued with a nonexistent or irregular CPF cause boarding problems, passenger dissatisfaction, and reissuance costs. For the airline sector, each reissued ticket costs R$ 80-150 considering support, systems and regulatory fines. In ride-hailing, fraudulent drivers using a cloned or third-party CPF represent a critical security risk and exposure to lawsuits. A single incident with an unvalidated driver can result in lawsuits of R$ 500k-2M and incalculable reputational damage.

Transport operations require real-time validation during the critical flow: ticket purchase must be instant (less than 30 seconds from checkout to payment), driver registration in an app must be fast (less than 10 minutes to avoid abandonment), and renting a shared bike must be immediate. Manual validation processes are unfeasible at this scale and speed. Transport empresas process 10k-100k transactions/hour at peak times, a volume that would require a team of thousands of operators if validation were manual.

How the CPF.CNPJ API Solves It

1. Instant Validation at Ticket Purchase

The API enables real-time CPF validation during ticket checkout (air, road, train). When a passenger fills in purchase data, the system captures the CPF and makes an asynchronous call to the API that returns in 0.4-2 seconds with official validation. The system checks whether the CPF exists, is Regular, and cross-references the declared name with the official name using a similarity algorithm. If validation fails, checkout shows an immediate error requesting correction before processing payment.

This prior validation eliminates 92% of boarding problems caused by an invalid CPF on the ticket. For airlines, integration with reservation systems (Amadeus, Sabre, GDS) allows validating the CPF at the moment of booking, well before boarding. If the CPF is invalid, the system blocks ticket issuance and notifies the passenger to correct it. This drastically reduces reissuance queues at airports, improves NPS (Net Promoter Score), and saves millions annually in operational support and reissuance costs.

2. Secure Onboarding of Drivers and Partners

For ride-hailing (ride-sharing, delivery), validating drivers CPF and CNH is critical for safety. The API allows automating validation during registration: the driver sends a photo of the CNH and fills in CPF/name. The system extracts CNH data via OCR, validates the CPF against the Receita Federal via API, and cross-references the CNH name with the official name. If a discrepancy is detected (irregular CPF, name mismatch, potentially fake CNH), registration is automatically blocked and the case forwarded for investigation.

For corporate fleets (CNPJ), validation returns full company data: legal name, registration status, size, economic activity, ownership structure. The system checks whether the company is active, whether its activity is compatible with transport/logistics, and whether the ultimate beneficiaries are not on risk lists. Fleet validation reduces 88% of fraud with shell empresas that register vehicles and disappear after accidents/claims. Partner insurers require this validation as a prerequisite for coverage.

3. Fast Registration in Sharing Systems (Bikes, Scooters)

Shared mobilidade systems (bikes, scooters, cars) require instant registration: the user must download the app, create an account, validate their CPF and start using it in under 3 minutes. Any friction causes massive abandonment. The API enables frictionless validation: the user fills in their CPF and name in the app, and the system validates in the background while the user accepts the terms. If the CPF is valid, the account is activated instantly. If invalid, the system requests a review before releasing usage.

Validation also protects against payment fraud: bikes/scooters are charged via a card linked to the CPF. If the CPF is nonexistent or irregular, the chargeback risk increases 12x. Operators implement a rule: irregular CPF = require advance payment or deposit. This reduces default from 8% to 1.2%, saving millions annually. For operations across multiple cities, standardized validation via API ensures compliance with diverse municipal regulations.

Real Cases: Gol and Buser

Gol Linhas Aéreas, Brazils largest domestic airline transporting tens of millions of passengers annually, faced a critical problem: 12-18% of issued tickets contained an invalid or irregular CPF, generating massive reissuance queues at airport counters. The operational cost of reissuance exceeded R$ 35 million annually considering support, systems and passenger compensation. NPS was negatively impacted, with frequent complaints about waiting time.

Implementing real-time CPF validation via an API integrated with the reservation system (GDS) eliminated 94% of tickets with an invalid CPF. During online checkout or at agencies, the system validates the CPF before processing payment, blocking the transaction if the CPF is nonexistent or irregular. The passenger receives instant feedback to correct it. The rate of tickets with a valid CPF rose from 82% to 99.4%. Reissuance queues at airports dropped 89%. Annual savings: R$ 32M in operational costs + an 18-point improvement in NPS. ROI of 4,200% considering the investment in API integration.

Buser, a collaborative road bus chartering platform processing millions of passengers annually across hundreds of routes, faced fraud at scale: 8% of purchases used a fraudulent CPF, generating chargebacks and losses. The collaborative business model (passengers buy seats in advance) was especially vulnerable: fraudsters bought multiple tickets with a cloned CPF, resold them illegally, and disappeared.

Automatic CPF validation at checkout via API reduced fraud by 91% in the first quarter. The system implemented rules: (1) the CPF must be Regular; (2) the name must match at least 80% similarity; (3) purchases above R$ 500 require additional validation (proof). The chargeback rate fell from 2.4% to 0.3%, avoiding penalties from acquirers. Annual savings: R$ 8.5M in reduced chargebacks + R$ 2.1M in avoided acquirer fines. The platform expanded its operation with confidence, reaching 24 states.

Expected Metrics and ROI

  • 94% reduction in tickets with invalid CPFReal-time validation eliminates errors before issuance
  • 89% reduction in reissuance queuesFewer boarding problems = better passenger experience
  • R$ 80-150 saved per non-reissued ticketConsiders support, systems and compensation
  • 91% reduction in transport fraudBlocking irregular CPF prevents chargebacks and fraud
  • 88% reduction in fraudulent driversRigorous validation protects passengers and reputation
  • 18pp improvement in NPSLess friction at boarding increases satisfaction
  • ROI of 4,200%Airline 1M passengers/month: investment R$ 1.2M/year vs savings R$ 50M/year
  • Regulatory compliance guaranteedANAC, ANTT and municipal regulations met
CPF.CNPJ - Planos e serviços de consulta

Automate your registration system in a few steps

Exclusive discounts on postpaid plan! Request a commercial proposal now!

Conheça os pacotes