//Use Cases

CPF and CNPJ API for Healthcare: Member and Provider Validation

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

View packages

The Challenge: Validating Beneficiaries and Providers in saúde

The Brazilian saúde sector faces critical registration validation challenges: health plan operators process millions of medical authorizations monthly, hospitals issue hundreds of thousands of TISS invoices (Supplementary Health Information Exchange), and clinics validate beneficiaries in real time during care. The ANS (National Supplementary Health Agency), through RN 305/2012 and the TISS standard, requires a valid beneficiary CPF on all medical claims and invoices. An invalid CPF results in a denial (rejection) of billing, generating losses in the millions and operational rework.

Healthcare fraud costs the Brazilian system R$ 14-18 billion annually: beneficiaries use plans of deceased family members, doctors bill for nonexistent consultations using the CPF of patients who were never seen, and clinics issue invoices with an irregular CPF to hide unauthorized procedures. For operators, each undetected fraud costs on average R$ 3,200-8,500 considering improperly paid procedures, investigation, and ANS fines. Early detection via CPF/CNPJ validation is the most effective line of defense.

Healthcare operations require validation without impacting patient care: the clinic receptionist must register the beneficiary and obtain authorization in under 2 minutes to avoid a queue at the front desk. The hospital must validate the CPF of an emergency inpatient in seconds. The lab must issue the exam result with the correct CPF to avoid a rejected invoice. Manual verification processes (calling the operator, checking the ANS site) are unfeasible at that speed. Automation via an API that validates in real time without friction in the clinical workflow is a critical operational requirement.

How the CPF.CNPJ API Solves It

1. Real-Time Beneficiary Validation

The API enables instant validation of a beneficiary CPF during care. When a patient arrives at the front desk, the receptionist types the CPF into the system and in 0.4-2 seconds receives official validation from the Receita Federal. The system cross-checks the beneficiary name registered in the plan against the official CPF name: if similarity is high (>85%), validation is approved and care proceeds. If the CPF is irregular or the name diverges significantly, the system flags it to review the card and documents before generating the medical claim.

This upfront validation eliminates 87% of denials due to an invalid CPF on TISS claims. For health plan operators processing 2-5 million claims monthly, this represents savings of R$ 12-45 million annually in avoided denials. The system, integrated with healthcare management platforms (Tasy, MV, Philips), automates validation during beneficiary registration, procedure authorization, and TISS invoice issuance. The claim rejection rate drops from 15-22% to 2-4%.

2. Provider Validation (Doctors, Clinics, Hospitals)

For health plan operators, validating the CNPJ of providers (clinics, hospitals, labs) is critical to prevent billing fraud. The API returns complete data: legal name, registration status, economic activity (the CNAE must be compatible with saúde), opening date, legal representative. The operator checks whether the CNPJ is Active, whether it has more than 6 months of operation (a credentialing requirement), and whether it does not appear on fraud lists.

The automated system cross-checks CNPJ validation with billing history: if a clinic with a recently opened CNPJ (<6 months) tries to bill a high volume (>R$ 50k/month), the system triggers a potential fraud alert. If the CNPJ changed from Active to Closed but is still billing, the system automatically blocks payments and notifies compliance. Periodic (monthly) validation of a base of 10k-50k credentialed CNPJs proactively detects status changes, reducing fraud by 76%.

3. TISS NF-e Issuance and Fiscal Compliance

The TISS standard requires a valid beneficiary CPF on all electronic saúde invoices. An NF-e with a nonexistent CPF is rejected by the city hall (code 239), forcing the provider to reissue or cancel, generating an operational cost of R$ 15-35 per invoice. The API prevents this problem by validating the CPF before issuance: the system pre-validates the CPF during care and uses official data (correct full name) to issue the NF-e.

Integration with fiscal issuance systems (Pronim, Senior Saúde, in-house systems) automates the flow: after care, the system generates a TISS NF-e pre-populated with data validated by the Receita Federal. Official full name, verified registration status, eliminating typing errors. The TISS NF-e rejection rate drops from 18% to under 3%. Providers save R$ 200k-1.2M annually in avoided rework (considering 10k-50k invoices/month).

Real Cases: Unimed and MedSenior

Unimed, the largest saúde cooperative in Brazil with more than 18 million beneficiaries, faced a critical denial problem: 16-20% of TISS claims submitted by credentialed providers were rejected for an invalid or irregular CPF, generating R$ 180-220 million annually in operational rework (reissuing claims, supporting providers, manual review). Beyond cost, denials created tension with the credentialed network and impacted beneficiary satisfaction (delays in authorizations).

Implementing real-time CPF validation via API during beneficiary registration and procedure authorization reduced CPF-related denials by 88% in the first year. The system, integrated into the software of Unimed units, validates the CPF against the Receita Federal in under 2 seconds, alerting the receptionist if there is a divergence before generating a claim. For already-registered beneficiaries, biweekly batch re-validation of the full base proactively detects CPFs that became irregular. Annual savings: R$ 165M in reduced denials and rework. ROI over 5,500%.

MedSenior, a health plan operator focused on the 60+ audience, implemented CPF validation and death screening to prevent fraud specific to the senior segment: family members using deceased seniors plans to perform procedures. The automated system validates the CPF and cross-checks death records (when available in the API) during authorization of high-cost procedures (surgeries, hospitalizations).

In 24 months of operation, the system detected and blocked 340 attempts at fraudulent plan use via the CPF of a deceased holder, avoiding a loss of R$ 4.2 million (an average of R$ 12,400 per fraudulent procedure). Automated monthly validation of 85,000 CPFs of active beneficiaries proactively identifies unreported deaths, triggering a plan cancellation process and family notification. ROI: an investment of R$ 180k in automated validation avoided millions in fraud and strengthened ANS compliance.

Expected Metrics and ROI

  • 88% reduction in CPF denialsPre-issuance validation eliminates TISS claim rejections
  • R$ 165M annual savingsFor a 2M claims/month operator, a massive reduction in rework
  • 340 death frauds detectedPlan use by a deceased holder blocked automatically
  • R$ 4.2M in avoided fraudDetecting an irregular CPF + death prevents improper procedures
  • 76% reduction in provider fraudCNPJ validation detects ghost and irregular clinics
  • NF-e rejection rate 3% vs 18%Correct official data eliminates fiscal denials
  • ROI of 5,500%2M claims/month operator: R$ 1.8M/year investment vs R$ 99M/year savings
  • 100% ANS/TISS complianceOfficial validation ensures regulatory conformity
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