[BR] — Test Tax IDs

Test CNPJs and CPFs for the Testing Environment, at least one per registration status. They are fictitious companies and people from RFB's test data. Test-only, never use them in production.

In the Testing Environment, only these tax IDs return data. Any other one, real ones included, fails with CNPJ not found or CPF not found.

All of them return status: "succeeded": a tax ID that isn't active is still a successful lookup. Read the status in company_validation_result.registration_status.


CNPJs (companies)

For BASIC and FULL validations.

CNPJregistration_status.statuslocal_code / local_descriptiontax_registrations[].activePartners (FULL)Notes
34238864000168active2 Ativatrue5Numeric
L9J5BYRT000101active2 Ativatrue1Alphanumeric
L9J5BYRTD90R79active2 Ativatrue1Alphanumeric, letters in the branch number
54447820000155suspended3 Suspensafalse4
46768703000165inactive4 Inaptafalse1
10Y7G69E000163cancelled8 Baixadafalse1Alphanumeric. date_of_end 1999-12-21
31151791000184cancelled8 Baixadafalse1date_of_end 1999-12-12
34428654000132annulled1 Nulafalse1

The legal names in the test data are scrambled text, for example UHIEQKX WHNHIWD NH FIXKHUUWPHMVX NH NWNXU (UHIFIX). That's expected.

{
  "locations": ["BR"],
  "validation_type": "FULL",
  "company": {
    "type": "business",
    "tax_registration": {
      "number": "54447820000155",
      "type": "CNPJ",
      "level": "country",
      "location": "BR"
    }
  }
}

CPFs (individuals)

For the CPF validation. Send each CPF with its date of birth in company.date_of_birth, and company.type as person.

CPFcompany.date_of_birthregistration_status.statuslocal_code / local_descriptionNotes
404428201351970-11-14active0 REGULAR
630172859951964-12-26active0 REGULAR
917086352031943-01-03active0 REGULAR
581360533911972-11-20active0 REGULARHas a social name: name is Rodrigues
405321768711982-03-22suspended2 SUSPENSA
471235869641940-05-29suspended2 SUSPENSA
051375187431965-07-05deceased3 TITULAR FALECIDO
088499798781980-03-23deceased3 TITULAR FALECIDO
076918523122000-08-13irregular4 PENDENTE DE REGULARIZACAO
109753846001975-09-01irregular4 PENDENTE DE REGULARIZACAO
016485279491996-02-18cancelled5 CANCELADA POR MULTIPLICIDADENo registration_date
478930625921986-03-21cancelled5 CANCELADA POR MULTIPLICIDADE
983025147051999-10-05annulled8 NULA
180253467902001-07-14annulled8 NULA
649138725911956-04-22cancelled9 CANCELADA DE OFICIO
523890716861942-05-27cancelled9 CANCELADA DE OFICIO
883735710942000-02-02active0 REGULARPartial data: no registration_date
474606090802000-02-02active0 REGULARPartial data: no registration_date
{
  "locations": ["BR"],
  "company": {
    "type": "person",
    "date_of_birth": "1982-03-22",
    "tax_registration": {
      "number": "40532176871",
      "type": "CPF",
      "level": "country",
      "location": "BR"
    }
  }
}

Error cases

RequestResult
CNPJ 12345678000100failed, errors: ["Invalid CNPJ"]
Any real CNPJfailed, errors: ["CNPJ not found"]
CPF 40442820135 with date_of_birth 1970-11-15failed, errors: ["Date of birth does not match the CPF"]
CPF 12345678900400, Invalid CPF
CPF 40442820135 without date_of_birth400, date_of_birth is required for CPF validation in BR
CPF 40442820135 with date_of_birth 14/11/1970400, date_of_birth must be yyyy-mm-dd
CPF 40442820135 with company.type business400, Tax registration type not found

Did this page help you?