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 CNPJ number is an identification number of Brazilian companies emitted by the Brazilian Ministry of Revenue, which is called "Ministério da Fazenda". CNPJ stands for "Cadastro Nacional de Pessoa Jurídica" (literally, national juridical person registration) as opposed to the CPF number for natural persons. Sometime ago, it was called CGC ("Cadastro Geral de Contribuinte" or general taxpayer registration). The CNPJ registration number has a total of 14 digits. The first 8 digits are the registration number, the following 4 digits identify the entity branch, for example 0001 for headquarters and the following numbers indicate the sequence of branches of a company. The last 2 digits form a checksum of the 12 previous digits.

The CNPJ is linked to information regarding:

  • Opening date
  • Address
  • Entity name and/or Trading name
  • Code and description of economic activities, according to the the CNAE, Brazil’s equivalent to the International Standard Industrial Classification of All Economic Activities
  • Code and description of the legal status
  • Registration status
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
00000000006A5KRRKB2TKFDEBG IDENTIFIER_SCHEMA
^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$
0000000000EN31T9K0QKGKKAB4 Specifies the allowed formats for the CNPJ number (Brazil) IDENTIFIER_FORMAT
^(\.*?\s*?-*?–*?—*?)(\d\s*\.*-*–*—*){8}\/?(\d\s*\.*-*–*—*){4}\-?(\d\s*\.*-*–*—*){2}$

Data quality rules

Rule Informal and comprehensive human-readable definition of a concept. Description nonetheless, we continue to offer the most recent available data., The release status in terms of development progress or maturity.<br/><code>EMPTY</code> (0): No feature considered yet, just a rough idea.<br/><code>IDEA</code> (1): Just an idea, not yet designed in detail.<br/><code>DESIGN</code> (2): Software design ready, development not yet started.<br/><code>DEVELOPMENT</code> (3): Software development in progress.<br/><code>ALPHA</code> (4): First functional release, in terms of a Minimal Viable Product (MVP).<br/><code>BETA</code> (5): Tested by selected users.<br/><code>RC</code> (6): Release candidate, fully tested, not yet used in production by many customers.<br/><code>LIVE</code> (7): Used in production by customers, fully monitored and supported.<br/><code>DEPRECATED</code> (-1): End of life planned, but still available.<br/><code>EOL</code> (-2): End of life, historic service, no longer available.<br/><code>BROKEN</code> (-3): Service was used in production but is currently not available. However, CDQ tries to repair or reactivate it.<br/><code>DISCONTINUED</code> (-4): The data source has ceased providing updates Release status 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
Identifier Qualification (CNPJ number (Brazil), Data source:BR.RF) This data quality rule checks the congruency of the given identifier against the identifier maintained as reference for the CNPJ number (Brazil) RELEASED INFO
Identifier format inaccurate (CNPJ number (Brazil)) This rule checks the syntax, i.e. format of the CNPJ number (Brazil) with respect to the reference format. Any deviation (i.e. white spaces where they are not specified) result in a violation.

The CNPJ consists of a 14-digit number formatted as 00.000.000/0001-00. This rule checks possible whitespaces, hyphens or dots that might be comprised in the identifier value. If there are any whitespaces, hyphens or dots situated in the places where they are not expected to be then the rule is violated.

IDEA INFO
Identifier format invalid (CNPJ number (Brazil)) The CNPJ consists of a 14-digit number formatted as 00.000.000/0001-00 — The first eight digits identify the company, the four digits after the slash identify the branch or subsidiary ("0001" defaults to the headquarters), and the last two are check digits. This rule checks the existence of exactly 14 digits without considering the concrete formatting using ".","/" or "-". RELEASED ERROR
Identifier missing (CNPJ number (Brazil)) Each legal entity in Brazil should have a CNPJ number. RELEASED ERROR
Identifier unknown (CNPJ number (Brazil)) This business rule checks the validity of the CNPJ number against Brazilian Register Receita Federal.

The CNPJ number is valid, when it is available in the Register.

RELEASED ERROR
Invalid checksum of CNPJ (Brazil) The last two digits of a CNPJ are checkdigits which are calculated based on the given digits. The check numbers are calculated by algorithm (modulus 11):
  • From right to left all digits are multiplied by a decreasing sequence starting with 9.
  • The sum of all products is computed.
  • The total sum is taken modulo 11. The remainder is C13.
  • Repeat the first step taking the C13 also.
  • The sum of all products is computed.
  • The total sum is taken modulo 11. The remainder is C14.
RELEASED ERROR
Locality Qualification (CNPJ number (Brazil), Data source:BR.RF) This data quality rule checks the congruency of the given city against the city maintained as reference for the CNPJ number (Brazil) RELEASED INFO
Name Qualification (CNPJ number (Brazil), Data source:BR.RF) This data quality rule checks the congruency of the given name against the name maintained as reference for the CNPJ number (Brazil) RELEASED INFO
Name qualification failed (CNPJ number (Brazil)) The rule checks whether the name registered in the Receita Federal for the given CNPJ number (Brazil) is identical to the input name. ARCHIVED ERROR
Post code Qualification (CNPJ number (Brazil), Data source:BR.RF) This data quality rule checks the congruency of the given post code against the post code maintained as reference for the CNPJ number (Brazil) RELEASED INFO
Thoroughfare Qualification (CNPJ number (Brazil), Data source:BR.RF) This data quality rule checks the congruency of the given street against the street maintained as reference for the CNPJ number (Brazil) RELEASED INFO