· 7 min read

B2B CRM with CNPJ lookup: what to look for

Nearly every CRM sold in Brazil says it looks up the CNPJ, the company number the Receita Federal issues. The difference shows in what happens around the lookup: the wrong number, the company that already exists, the Receita being down and the spreadsheet with two thousand customers.

The short answer

Look for a CRM that does five things: fills the account with the Receita Federal's public data from the 14 digits, refuses a CNPJ with a wrong check digit before looking it up, warns you on the spot when the company is already on file, lets you fill it in by hand when the lookup does not answer, and applies the same rules when you import a spreadsheet.

If your team splits customers by region or line of business, add a sixth: the state, municipality, CNAE and size that came from the Receita should decide on their own who gets the account.

What the lookup should bring

Creating an account from the CNPJ is there to take copying off the salesperson's plate. They type the number and the account comes up with legal name, trade name, the full address with CEP (the postal code), state and municipality, the main CNAE and the company's size. This is public data, the same as on the Receita's registration certificate.

Check two things when you try one. First, whether the CRM lets you review before saving, because the trade name on file is not always the name the market uses. Second, whether the address arrives split into fields rather than as one block of text. Reports by region, filters by city and the map only work with state and municipality in fields of their own.

CNPJ validation before the lookup

A CNPJ has two check digits, worked out from the first twelve. That simple sum catches nearly every typo: a swapped number, a missing digit, a 1 that became a 7. Numbers with every digit the same, such as 11.111.111/1111-11, slip past a lazy check and have to be refused separately.

CNPJ validation has to happen before any lookup and before saving. If the CRM accepts an invalid number, it ends up on the invoice, the boleto and the ERP integration, and someone finds the error weeks later. Try typing a CNPJ with the last digit changed. The right behaviour is a warning on the spot and no save.

Duplicate customers: the warning that prevents the fight

Two accounts for the same company look like a data problem, but they turn into a team problem. Two salespeople call the same buyer, the history is split between the two accounts and nobody knows whose customer it is.

The CNPJ is the best key against duplicate customers, because each company has exactly one. So look for three things:

  • The warning while the number is typed, not just an error on save. The salesperson needs to know the company exists before filling in everything else.
  • Archived accounts counting too. The customer who stopped buying two years ago still has the same CNPJ, and their history should carry on where it was.
  • Respect for other people's books. If the account belongs to someone the salesperson cannot see, the warning should say the CNPJ is already on file in the company without revealing the owner or the account's details.

And if the duplicate already happened, someone has to merge the two accounts. Merging touches history, so it is best kept to a few people, with the rest of the team only able to archive.

When the lookup is down

The lookup depends on an outside service, and outside services are sometimes slow, refuse or vanish. That cannot stop the sale. The least you should expect is for the CRM to say clearly what happened and open the fields for manual entry.

Ask the vendor how it tells the cases apart. "CNPJ not found" and "lookup unavailable" are different situations: the first says something about the number, the second says something about the connection. A CRM that treats them the same confuses the salesperson.

Ask too how long the answer is kept. Keeping the Receita's answer for a while makes the lookup faster and less dependent on the service, but it means an address that changed yesterday may show up old for a few days. That is normal, as long as the salesperson can always correct the field.

Import has to follow the same rules

Most of a new CRM's accounts arrive in a spreadsheet, and that is where the problems hide. If validation and the duplicate check only apply to people entering data on screen, the import brings in every wrong CNPJ and every repeated company at once.

What to look for: a preview before anything is written, with each refused row and the reason; the CNPJ as the first key for finding a company that already exists, with e-mail and phone after it; and the choice between skipping and updating the account it finds. A row with an invalid CNPJ should be refused in the preview, not let into the system for someone to clean up later.

The CNPJ also says who handles it

The Receita's data is good for more than saving keystrokes. State and municipality say where the customer is, the CNAE says the line of business and the size says how big it is. If your team splits the book by region, line of business or size, these fields can decide on their own who gets the new account, with nobody reading the record and picking a salesperson by hand.

For that to work, the rule has to run when the account is created and not on every edit, so that fixing an address never takes the customer away from whoever was already talking to them.

How Colin Sales does it

In Colin Sales, on a legal-entity account, you type the 14 digits and Colin checks the check digits. If the CNPJ is right, it looks it up at the Receita Federal and fills in legal name, trade name, address, CEP, state, municipality, CNAE and size, and you review before saving. An invalid CNPJ is not looked up and the account does not save.

If the CNPJ is already on another account of your company, active or archived, the warning shows right there, with a link to the account when you can see it. When it belongs to someone outside your reach, the warning only says the CNPJ is already on file. The database itself refuses a second record with the same CNPJ in your company, so two identical accounts cannot get in by different routes. Merging accounts is for administrators; the rest of the team archives.

When the lookup does not find the CNPJ or does not answer, Colin says which of the two happened and you fill it in by hand. A found answer is kept for 30 days, a not-found one for a day, and a failed lookup is never kept. There is no charge per lookup.

On a spreadsheet import, every CNPJ goes through the same validation, an invalid row shows as refused in the preview, and a company already on file is found first by CNPJ, then by e-mail and phone. The details are on the account from CNPJ page.

And the state, municipality, CNAE and size that came from the Receita can feed the territory rules, which give the account an owner the moment it is created. See how on the lead distribution by territory and round-robin page.

Where this is in Colin

Account from the CNPJ

Type the CNPJ and Colin Sales pulls the legal name, trade name, address, CNAE and company size from Brazil's Receita Federal. It checks the digits, tells you when the company is already there and lets you fill it in by hand when the lookup is down.

Territories and round-robin

Build territories by state, municipality, CNAE, company size or an area drawn on the map. Each new account lands in the right territory and goes to the next salesperson on the team, in turn. Editing the account never changes its owner.

Start today, nothing charged for 7 days.

Register a card, pick the apps and how many seats you want, and nothing is charged until the trial ends. Or we'll show you Colin with your company's boards and pipeline in 30 minutes.