MX_RFC (MX - Fed. Taxpayer Reg. Code)

From CDQ Wiki
DataModel:CDQ/Business Partner/Identifier/MX RFC
Jump to navigation Jump to search
Property Value
A technical identifier, unique in a certain context. Technical key MX_RFC
The country a linked concept is active or generally relevant for. Country scope MX (Mexico)
Language-specific name. Monolingual name Registro Federal de Contribuyentes (es), Federal Taxpayer Registry Code (en)
Language-specific short name. Monolingual short name MX - Fed. Taxpayer Reg. Code (en)
Informal and comprehensive human-readable definition of a concept. Description The Registro Federal de Contribuyentes (RFC) is the Mexican federal taxpayer registry code that the tax administration service assigns to everyone enrolled in the registry, with a different structure for natural and legal persons. It must be quoted on invoices, in tax returns and in electronic invoicing, and registration is possible online or at a local taxpayer service office.
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/MX RFC/format Validates the format of the Mexican RFC number, the federal taxpayer registry code that the tax administration assigns to every registered taxpayer. The pattern accepts the twelve-character code of a company with three name letters and the thirteen-character code of a natural person with four name letters, in both cases followed by a valid date of registration or birth and a three-character check group. IDENTIFIER_FORMAT
^([A-Z|a-z]{3})(([0-9]{2})([0][13456789]|[1][012])([0][1-9]|[12][\d]|[3][0])|([0-9]{2})([0][13578]|[1][02])([0][1-9]|[12][\d]|[3][01])|([02468][048]|[13579][26])([0][2])([0][1-9]|[12][\d])|([0-9]{2})(02)(0[1-9]|1[0-9]|2[0-8])|([1-9]{2})([0][2])([0][1-9]|[12][0-8]))(\w{2}[A|a|0-9]{1})$|^([A-Z|a-z]{4})(([0-9]{2})([0][13456789]|[1][012])([0][1-9]|[12][\d]|[3][0])|([0-9]{2})([0][13578]|[1][02])([0][1-9]|[12][\d]|[3][01])|([02468][048]|[13579][26])([0][2])([0][1-9]|[12][\d])|([0-9]{2})(02)(0[1-9]|1[0-9]|2[0-8])|([1-9]{2})([0][2])([0][1-9]|[12][0-8]))((\w{2})([A|a|0-9]{1})){0,3}$

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 format invalid (RFC number (Mexico))
REPRESENTATIONAL_CONSISTENCY
MX (Mexico) The Mexican tax identification number, the clave RFC, is issued by the Mexican Tax Administration Service, the Servicio de Administración Tributaria, RFC stands for Registro Federal de Contribuyentes. This rule checks that three letters are followed by six numerical digits and three further characters, disregarding the delimiting hyphens as well as whitespaces and other separators such as dots.

The structure of the RFC depends on the type of taxpayer. For individuals it consists of thirteen characters, namely four letters followed by six digits and three alphanumeric characters. For legal entities, and for certain legal arrangements, it consists of twelve characters, namely three letters followed by six digits and three alphanumeric characters.

For a legal entity the first three letters are derived from the legal name of the company, excluding the corporation type at the end of the name and the stop words de, del, los, las, el, la, en, y and e. If the company name has three or more words, the three letters are the first letter of each of the first three words, so El Gato Azul Restaurante, S.A. de C.V. yields GAR. If the name has two words, the three letters are the first letter of the first word and the first two letters of the second, so Gato Azul, S.A. de C.V. yields GAZ. If the name has one word, the three letters are the first three letters of that word, so Gato, S.A. de C.V. yields GAT. The next six digits are the incorporation date of the company in the order year, month and day, and the last three characters are a check value assigned by the Tax Administration Service.

For an individual the first four letters are derived from the legal name: the first letter and the first internal vowel of the paternal surname, whereby the second letter of the paternal surname is used if it has no internal vowel and the first two letters of the paternal surname are used if the person has no second surname, then the first letter of the maternal surname, or the first letter of the given name if the person has no second surname, and then the first letter of the given name, or its second letter if the person has no second surname. The following six digits are the date of birth in the order year, month and day, and the last three characters are a checksum assigned by the Tax Administration Service.

ERROR RELEASED(2020-12-28)