[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.
| CNPJ | registration_status.status | local_code / local_description | tax_registrations[].active | Partners (FULL) | Notes |
|---|---|---|---|---|---|
34238864000168 | active | 2 Ativa | true | 5 | Numeric |
L9J5BYRT000101 | active | 2 Ativa | true | 1 | Alphanumeric |
L9J5BYRTD90R79 | active | 2 Ativa | true | 1 | Alphanumeric, letters in the branch number |
54447820000155 | suspended | 3 Suspensa | false | 4 | |
46768703000165 | inactive | 4 Inapta | false | 1 | |
10Y7G69E000163 | cancelled | 8 Baixada | false | 1 | Alphanumeric. date_of_end 1999-12-21 |
31151791000184 | cancelled | 8 Baixada | false | 1 | date_of_end 1999-12-12 |
34428654000132 | annulled | 1 Nula | false | 1 |
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.
| CPF | company.date_of_birth | registration_status.status | local_code / local_description | Notes |
|---|---|---|---|---|
40442820135 | 1970-11-14 | active | 0 REGULAR | |
63017285995 | 1964-12-26 | active | 0 REGULAR | |
91708635203 | 1943-01-03 | active | 0 REGULAR | |
58136053391 | 1972-11-20 | active | 0 REGULAR | Has a social name: name is Rodrigues |
40532176871 | 1982-03-22 | suspended | 2 SUSPENSA | |
47123586964 | 1940-05-29 | suspended | 2 SUSPENSA | |
05137518743 | 1965-07-05 | deceased | 3 TITULAR FALECIDO | |
08849979878 | 1980-03-23 | deceased | 3 TITULAR FALECIDO | |
07691852312 | 2000-08-13 | irregular | 4 PENDENTE DE REGULARIZACAO | |
10975384600 | 1975-09-01 | irregular | 4 PENDENTE DE REGULARIZACAO | |
01648527949 | 1996-02-18 | cancelled | 5 CANCELADA POR MULTIPLICIDADE | No registration_date |
47893062592 | 1986-03-21 | cancelled | 5 CANCELADA POR MULTIPLICIDADE | |
98302514705 | 1999-10-05 | annulled | 8 NULA | |
18025346790 | 2001-07-14 | annulled | 8 NULA | |
64913872591 | 1956-04-22 | cancelled | 9 CANCELADA DE OFICIO | |
52389071686 | 1942-05-27 | cancelled | 9 CANCELADA DE OFICIO | |
88373571094 | 2000-02-02 | active | 0 REGULAR | Partial data: no registration_date |
47460609080 | 2000-02-02 | active | 0 REGULAR | Partial 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
| Request | Result |
|---|---|
CNPJ 12345678000100 | failed, errors: ["Invalid CNPJ"] |
| Any real CNPJ | failed, errors: ["CNPJ not found"] |
CPF 40442820135 with date_of_birth 1970-11-15 | failed, errors: ["Date of birth does not match the CPF"] |
CPF 12345678900 | 400, Invalid CPF |
CPF 40442820135 without date_of_birth | 400, date_of_birth is required for CPF validation in BR |
CPF 40442820135 with date_of_birth 14/11/1970 | 400, date_of_birth must be yyyy-mm-dd |
CPF 40442820135 with company.type business | 400, Tax registration type not found |
Updated about 21 hours ago
