[BR] Tax ID Validation

Validate Brazilian tax IDs against Receita Federal (RFB). Send locations: ["BR"] and pick the validation_type that fits what you need:

Guidevalidation_typeTax IDWhat you get
CNPJ Validation — BASICBASIC (the default)CNPJRegistration status, legal and trade name, legal form, opening and closing dates, address, email and phone.
CNPJ Validation — FULLFULLCNPJEverything in BASIC, plus the partners (QSA) and the tax regime (MEI or Simples Nacional).
Test CNPJsCNPJTest data for the Testing Environment: one CNPJ per registration status.
📚

New to tax ID validations? Start with the generic guide.


BASIC or FULL?

  • BASIC when you need to know that the CNPJ exists and is active, or want the company's registration data. It's the default when you leave out validation_type.
  • FULL when you also need who owns or runs the company (KYC, onboarding), or whether it's under MEI or Simples Nacional.

Both return succeeded for any CNPJ that RFB knows, active or not. Read the result in company_validation_result.registration_status.status, or in company.tax_registrations[].active.

What's the same for every BR validation

  • Tax ID: company.tax_registration with type: "CNPJ", level: "country" and location: "BR". Dots, slash and dash are optional. Alphanumeric CNPJs (issued since July 2026) work as they are.
  • Existing companies: send company_id instead of company. With update_company: true, a successful validation saves RFB's data on the company.
  • Result: the POST answers with in_process. Read the result with GET /tax-id-validations/{id} or wait for the validation webhook.
  • Authority: every result comes with authority: "RFB".

Did this page help you?