BR_CNPJ (BR - juridical person Reg.)

From CDQ Wiki
DataModel:CDQ/Business Partner/Identifier/BR CNPJ
Jump to navigation Jump to search
Property Value
A technical identifier, unique in a certain context. Technical key BR_CNPJ
The country a linked concept is active or generally relevant for. Country scope BR (Brazil)
Language-specific name. Monolingual name Cadastro Nacional de Pessoa Jurídica (pt), juridical person registration (en)
Language-specific short name. Monolingual short name BR - juridical person Reg. (en)
Informal and comprehensive human-readable definition of a concept. Description The Cadastro Nacional da Pessoa Jurídica (CNPJ) is the Brazilian national register of legal entities kept by the federal revenue service. Its fourteen characters consist of an eight-character root for the company, a four-digit number for the establishment and two check digits, and the number must appear on invoices, contracts and tax filings of every Brazilian company and branch.
Category of business identifiers. Identifier category Tax Number
Legacy property. A technical SAP code. SAP mapping STCD1

Formal definition

Details Informal and comprehensive human-readable definition of a concept. Description The type in terms of a categorization of regular expressions. Regular expression type TThe formal expression of a regular expression. Regular expression
Regular expression/BR CNPJ/format Validates the format of the Brazilian CNPJ number, the national register of legal entities issued by the Ministry of Revenue to every company and branch. The pattern accepts the fourteen-character number made up of an eight-character root, a four-digit branch number and two check digits, written with or without the usual dots, slash and hyphen. IDENTIFIER_FORMAT
^[0-9A-Za-z]{2}(\.)?[0-9A-Za-z]{3}(\.)?[0-9A-Za-z]{3}(\/)?[0-9A-Za-z]{4}(-)?[0-9]{2}$
Regular expression/BR CNPJ/reference schema Defines the reference format in which the Brazilian CNPJ number is stored, namely two digits, a dot, three digits, a dot, three digits, a slash, the four-digit branch number, a hyphen and the two check digits. Used to bring values into a single canonical notation. IDENTIFIER_SCHEMA
^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$

Data quality rules

Data quality rule The country a linked concept is active or generally relevant for. Country scope Informal and comprehensive human-readable definition of a concept. Description Criticality<br/>Specifies how critical of the violation of a data quality rule.<br/>ERROR: Indicates a critical data quality rule violation that requires correction.<br/>WARNING: Indicates a potential data quality issue that should be reviewed.<br/>INFO: Indicates an informational finding with no immediate impact on data quality. Criticality Rule release status<br/>The release status in terms of development progress or maturity of a data quality rule.<br/>IDEA: Initial rule definition that documents a business requirement but is not yet active in services.<br/>PLANNED: Rule is specified and scheduled for implementation, but not yet active in services.<br/>DRAFT: Rule concept is being prepared or refined but is not yet finalized for implementation or execution.<br/>HYPERCARE: Rule is newly released and under increased observation to ensure stable behaviour and correct results.<br/>RELEASED: Rule has passed verification and is actively executed in productive CDQ services.<br/>DEACTIVATED: Rule is temporarily removed from the active rule set because it needs correction or clarification before re release.<br/>BLOCKED: Rule cannot be released because something it depends on is missing, for example a data source or a clarification.<br/>ARCHIVED: Rule is permanently retired and no longer maintained or intended for future activation. Rule release status
Identifier Qualification (CNPJ number (Brazil), Data source:BR.RF)
ACCURACY
BR (Brazil) This rule compares the Brazilian CNPJ number in the business partner record with the identifier held as reference in the register of the Receita Federal. A value that does not match is flagged. INFO RELEASED(2025-06-25)
Identifier format inaccurate (CNPJ number (Brazil))
REPRESENTATIONAL_CONSISTENCY
BR (Brazil) The Brazilian CNPJ is a fourteen-digit number written in the form 00.000.000/0001-00. This rule checks whether the value follows that reference format and flags any whitespace, hyphen or dot that appears in a position where it is not expected. INFO IDEA
Identifier format invalid (CNPJ number (Brazil))
REPRESENTATIONAL_CONSISTENCY
BR (Brazil) The Brazilian CNPJ is a fourteen-digit number written in the form 00.000.000/0001-00. The first eight digits identify the company, the four digits after the slash identify the branch or subsidiary, with 0001 standing for the headquarters by default, and the last two are check digits. This rule checks that exactly fourteen digits are present, disregarding the concrete formatting with dots, slashes or hyphens. ERROR RELEASED(2020-01-01)
Identifier missing (CNPJ number (Brazil))
COMPLETENESS
BR (Brazil) Every legal entity in Brazil is expected to hold a CNPJ number, and this rule reports records in which it is missing. ERROR RELEASED(2021-07-01)
Identifier unknown (CNPJ number (Brazil))
ACCURACY
BR (Brazil) This rule validates the Brazilian CNPJ number against the register of the Receita Federal. The CNPJ counts as valid when it is available in that register, otherwise the record is flagged. ERROR RELEASED(2024-04-16)
Invalid checksum of CNPJ (Brazil)
ACCURACY
BR (Brazil) The last two digits of a Brazilian CNPJ are check digits derived from the preceding digits with a modulus 11 algorithm. This rule recalculates them and flags a CNPJ whose check digits do not match.

For the first check digit, the digits are multiplied from right to left by a decreasing sequence starting at 9, the products are added up and the total is taken modulo 11, the remainder is the thirteenth character. The same step is then repeated including that thirteenth character, the products are added up again and the total is taken modulo 11, and this remainder is the fourteenth character.

ERROR RELEASED(2020-10-12)
Locality Qualification (CNPJ number (Brazil), Data source:BR.RF)
ACCURACY
BR (Brazil) This rule compares the city of a Brazilian business partner with the city that the register of the Receita Federal holds as reference for its CNPJ number. A deviating city is flagged. INFO RELEASED(2024-04-16)
Name Qualification (CNPJ number (Brazil), Data source:BR.RF)
ACCURACY
BR (Brazil) This rule compares the name of a Brazilian business partner with the name that the register of the Receita Federal holds as reference for its CNPJ number. A deviating name is flagged. INFO RELEASED(2024-04-16)
Name qualification failed (CNPJ number (Brazil))
ACCURACY
BR (Brazil) This rule checks whether the name registered in the Receita Federal for the given Brazilian CNPJ number is identical to the name in the record, and flags any difference. ERROR ARCHIVED(2020-08-20)
Post code Qualification (CNPJ number (Brazil), Data source:BR.RF)
ACCURACY
BR (Brazil) This rule compares the post code of a Brazilian business partner with the post code that the register of the Receita Federal holds as reference for its CNPJ number. A deviating post code is flagged. INFO RELEASED(2024-04-16)
Thoroughfare Qualification (CNPJ number (Brazil), Data source:BR.RF)
ACCURACY
BR (Brazil) This rule compares the street of a Brazilian business partner with the street that the register of the Receita Federal holds as reference for its CNPJ number. A deviating street is flagged. INFO RELEASED(2024-04-16)