Identifier checkdigit (rule category)
| Property | Value |
|---|---|
| The human-friendly name shown for this concept in the user interface, used instead of the technical name to improve readability and understanding. Display name | Identifier checkdigit |
| Informal and comprehensive human-readable definition of a concept. Description | When we know for a certain identifier that it comprises a checksum or checkdigit, we validate whether the identifier is consistent with respect to this checksum or checkdigit. |
| Dimensional categorization of a concept, e.g., a data quality dimension of a data quality rule. Dimension | Accuracy |
| Hierachical parent concept of a concept. Parent | Checkdigit (rule category) |
Data quality rules
| Rule | Country | Description | Criticality |
|---|---|---|---|
| Checkdigit of state tax number (Brasil - Acre (AC)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Acre in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Alagoas (AL)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Alagoas in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Amapa (AP)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Amapa in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Amazonas (AM)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Amazonas in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Bahia (BA)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Bahia in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Ceara (CE)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Ceara in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Espirito Santo (ES)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Espirito Santo in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Federal District (DF)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Federal District in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Goias (GO)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Goias in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Maranhao (MA)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Maranhao in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Mato Grosso (MT)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Mato Grosso in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Mato Grosso do Sul (MS)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Mato Grosso do Sul in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Minas Gerais (MG)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Minas Gerais in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Para (PA)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Para in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Paraiba (PB)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Paraiba in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Parana (PR)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Parana in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Pernambuco (PE)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Pernambuco in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Piaui (PI)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Piaui in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Rio Grande do Norte (RN)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Rio Grande do Norte in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Rio Grande do Sul (RS)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Rio Grande do Sul in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Rio de Janeiro (RJ)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Rio de Janeiro in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Rondonia (RO)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Rondonia in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Roraima (RR)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Roraima in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Santa Catarina (SC)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Santa Catarina in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Sao Paulo (SP)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Sao Paulo in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Sergipe (SE)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Sergipe in Brazil | INFO |
| Checkdigit of state tax number (Brasil - Tocantins (TO)) | BR (Brazil) | This rule checks the checkdigit of the state tax number as defined for the administrative area Tocantins in Brazil | INFO |
| Identifier checkdigit invalid (CPF number (Brazil)) | BR (Brazil) | This rule checks the checkdigit of CPF number (Brazil). | ERROR |
| Identifier checkdigit invalid (CVR number (Denmark)) | DK (Denmark) | This rule checks the checkdigit of CVR number (Denmark). | ERROR |
| Identifier checkdigit invalid (Company identification number (Switzerland)) | CH (Switzerland) | The last digit is a MOD11 checksum digit build with weighting pattern: 5,4,3,2,7,6,5,4. The rule allows for any valid formatted CH UID, in case of an invalid format (see Identifier format invalid (Company identification number (Switzerland))) the rule will fail directly. | ERROR |
| Identifier checkdigit invalid (DEA Registration Number (United States)) | US (United States of America) | This rule checks the checkdigit of DEA Registration Number (United States) according to the following the logic:
DEA number without checkdigit: AL455178 To find the checkdigit the following steps are required:
| ERROR |
| Identifier checkdigit invalid (DIC number (Czech Republic)) | CZ (Czechia) | This rule checks the checkdigit of the DIC number (Czech Republic). | ERROR |
| Identifier checkdigit invalid (European value added tax identifier (Czech Republic)) | CZ (Czechia) | This rule checks the checkdigit of the European value added tax identifier (Czech Republic). | ERROR |
| Identifier checkdigit invalid (GST number (India)) | IN (India) | This rule checks the check digit of the Goods and Services Tax number (GST) in India. The first fourteen digits of the GST are the GST number (India).
calculate a hash of each digit of GST number. Steps for calculation of hash are mentioned below: a) Obtain corresponding code [C] for each alphanumeric digit of GST number. The codes for each alphanumeric characters are as following:
b) Multiply “code” with a number called Multiplier [M], which will be 1 for odd digits and 2 or even digits of GST Number. c) So on multiplication of “code” with “multiplier” [ C x M ] we get a number called Product [P]. d) Divide “product” with 36 [ P ÷ 36]. This division yields us a Quotient [Q] & a Remainder ['R]. e) Add “quotient” and “remainder” [ Q + R ] to get Hash of that digit of GST number. Repeat the above steps for each digit of GST number, and obtain corresponding hash. After that, derive the checksum digit with below-mentioned steps: For these 14 digits the check digit is calculated, in the following way:
| ERROR |
| Identifier checkdigit invalid (Global location number) | WORLD (World) | This rule checks the checkdigit of Global location number. | ERROR |
| Identifier checkdigit invalid (ICO number (Czech Republic)) | CZ (Czechia) | This rule checks the checkdigit of the ICO number (Czech Republic). | ERROR |
| Identifier checkdigit invalid (NIF number (Portugal)) | PT (Portugal) | This rule checks the checkdigit of NIF number (Portugal). | ERROR |
| Identifier checkdigit invalid (NIP number (Poland)) | PL (Poland) | This rule describes the algorithm for checksum digit (the last 10th digit) for NIP number (Poland) using the following logic:
1) multiply the fist 9 digits of the NIP by the corresponding wages: 6, 5, 7, 2, 3, 4, 5, 6, 7 2) sum up the result of the multiplication from step one 3) calculate modulo 11. | ERROR |
| Identifier checkdigit invalid (NIT number (Colombia)) | CO (Colombia) | This rule checks the checkdigit of NIT number (Colombia). | ERROR |
| Identifier checkdigit invalid (National Provider Identifier (United States)) | US (United States of America) | This rule checks the checkdigit of National Provider Identifier (United States) according to the following the logic:
| ERROR |
| Identifier checkdigit invalid (National business register identifier (Austria)) | AT (Austria) | This rule checks the checkdigit of National business register identifier (Austria) according to the following the logic:
Any difference result in a rule violation. | ERROR |
| Identifier checkdigit invalid (Organization Number (Norway)) | NO (Norway) | This rule checks the checkdigit of Organization Number (Norway). | ERROR |
| Identifier checkdigit invalid (Organization Registration Number (Sweden)) | SE (Sweden) | This rule checks the checkdigit of the Organization registration number (Sweden). The checksum is calculated according to the Luhn algorithm. | ERROR |
| Identifier checkdigit invalid (Quebec Sales Tax number (Canada)) | CA (Canada) | This rule checks the checkdigit of the Quebec Sales Tax number (Canada). The checksum is done in the following way:
| ERROR |
| Identifier checkdigit invalid (REGON (Poland)) | PL (Poland) | This rule describes the algorithm for checksum digit (the last digit) for REGON identifier. Logic for 9-digits identifier:
1) multiply each of the first 8 digits by the gidit-wages: 8 9 2 3 4 5 6 7 | ERROR |
| Identifier checkdigit invalid (RIF number (Venezuela)) | VE (Venezuela) | This rule checks the checkdigit of RIF number (Venezuela). The number consists of 10 digit with one leading letter, 8 random numbers and check digit. The first letter is the RIF kind that represents the kind of entity this RIF belongs to. This rule checks whether the identifier is valid with respect to the checkdigit.
Format of RIF number (Venezuela) is: [ C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 ], where:
The set of weightings is:
| ERROR |
| Identifier checkdigit invalid (RUC number (Ecuador)) | EC (Ecuador) | This rule checks the checkdigit of RUC number (Ecuador). | ERROR |
| Identifier checkdigit invalid (RUC number (Paraguay)) | PY (Paraguay) | This rule checks the checkdigit of RUC number (Paraguay). | ERROR |
| Identifier checkdigit invalid (RUC number (Peru)) | PE (Peru) | This rule checks the checkdigit of RUC number in Peru
[C1,C2, C3, C4, C5, C6, C7, C8, C9, C10] - Every single digit in 10 digit input number has its corresponding weight: [5, 4, 3, 2, 7, 6, 5, 4, 3, 2] 1. Multiply every element from input number by corresponding weight: - C1 * 5 - C2 * 4 - C3 * 3 - C4 * 2 - C5 * 7 - C6 * 6 - C7 * 5 - C8 * 4 - C9 * 3 - C10 * 2 2. Sum up all of results (sumproduct) 3. The reminder of the modulo 11 4. Subtract restults from 11 5. Checkdigit = the reminder of modulo 10 | ERROR |
| Identifier checkdigit invalid (RUT number (Chile)) | CL (Chile) | This rule checks the checkdigit of RUT number (Chile). | ERROR |
| Identifier checkdigit invalid (RUT number (Uruguay)) | UY (Uruguay) | This rule checks the checkdigit of RUT number (Uruguay). | ERROR |
| Identifier checkdigit invalid (Tax Identification Number (Serbia)) | RS (Serbia) | 9 digits (ex. 123456788) of which the first 8 are the actual ID number, and the last digit is a checksum digit, calculated according to ISO 7064, MOD 11-10 | ERROR |
| Identifier checkdigit invalid (Tax Identification Number (Vietnam)) | VN (Viet Nam) | This rule checks the checkdigit of Tax Identification Number (Vietnam). | ERROR |
| Identifier checkdigit invalid (Tax Registration Number (Belarus)) | BY (Byelorussian SSR) | This rule checks the checkdigit of Tax Registration Number (Belarus)
The number consists of 9 digits (numeric for organisations, alphanumeric for individuals). [C1,C2, C3, C4, C5, C6, C7, C8, CheckDigit] - Every single digit in 8 digit input number has its corresponding weight: weights = (29, 23, 19, 17, 13, 7, 5, 3) 1. Multiply every element from input number by corresponding weight: - C1 * 29 - C2 * 23 - C3 * 19 - C4 * 17 - C5 * 13 - C6 * 7 - C7 * 5 - C8 * 3 2. Sum up all of results (sumproduct) 3. Checdigit - The reminder of the modulo 11 | ERROR |
| Identifier checkdigit invalid (Tax identification number (South Africa)) | ZA (South Africa) | This rule describes the algorithm for checksum digit (the last digit) for Tax identification number (South Africa). Logic for 10-digits identifier:
The last character is a check digit, calculated by applying the following algorithm:
Digit 10: Check digit
| ERROR |
| Identifier checkdigit invalid (Tax number (Romania)) | RO (Romania) | This rule checks the checksum of the Tax number in Romania.
To calculate the checksum digit, every digit from CNP is multiplied with the corresponding digit in number 279146358279 If the remainder is 10 then the checksum digit is 1, otherwise it's the remainder itself. Any difference result in a rule violation. | ERROR |
| Identifier checkdigit invalid (Tax number (Turkey)) | TR (Turkey) | This rule checks the checkdigit of Tax number (Turkey). | ERROR |
| Identifier checkdigit invalid (VAT number (Norway)) | NO (Norway) | This rule checks the checkdigit of VAT number (Norway). | ERROR |
| Identifier checkdigit invalid (VAT registration number (Israel)) | IL (Israel) | The rightmost digit is a check digit (using Luhn algorithm (https://en.wikipedia.org/wiki/Luhn_algorithm) ). | ERROR |
| Identifier checkdigit invalid (VAT registration number (Switzerland)) | CH (Switzerland) | The last digit is a MOD11 checksum digit build with weighting pattern: 5,4,3,2,7,6,5,4. The rule allows for any valid formatted CH VAT ID, in case of an invalid format (see Identifier format invalid (VAT registration number (Switzerland))) the rule will fail directly. | ERROR |
| Invalid checksum of ABN AU (Australia) | AU (Australia) | The 11 digit ABN is structured as a 9 digit identifier with two leading check digits. This rule checks whether the ABN is valid with respect to the checkdigits. The leading check digits are derived using a modulus 89 (remainder after dividing by 89) calculation.
Format of the BNA looks like this: [ C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 ] M11 ( C1 - 1 ) + M10 x C2 + M9 x C3 + M8 x C4 + M7 x C5 + M6 x C6 + M5 x C7 + M4 x C8 + M3 x C9 + M2 x C10 + M1 x C11 MOD89=0 The set of weightings are: M11...M1 = (10,1,3,5,7,9,1113,15,17,19) | ERROR |
| Invalid checksum of ACN AU (Australia) | AU (Australia) | This rule checks the checksum of the Australian Company Number. The ACN is a nine digit number with the last digit being a check digit calculated using a modified modulus 10 calculation. | ERROR |
| Invalid checksum of AR CUIT (Argentina) | AR (Argentina) | This rule checks the checksum of the CUIT number in Argentina. The last digit of the in total 11 digits of the CUIT is a check digit validated according the algorithm established by AFIP (Federal Tax Agency). This rule double checks whether the check digit is correct. | ERROR |
| Invalid checksum of BN CA (Canada) | CA (Canada) | The Canadian Business number consists of exactly 9 digits. It is important to be correct as it is used as part of the GST/HST number as well. For these 9 digits the checkdigit is calculated in the following way:
| ERROR |
| Invalid checksum of BTW NUMBER (Belgium) | BE (Belgium) | This rule checks the checksum of the BTW number in Belgium. The checksum calculations is done using modulo 97. | ERROR |
| Invalid checksum of CIF number (Spain) | ES (Spain) | This rule describes the algorithm for checksum letter for CIF number (Spain) using the following logic:
| ERROR |
| Invalid checksum of CNPJ (Brazil) | BR (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):
| ERROR |
| Invalid checksum of EU VAT ID BE (Belgium) | BE (Belgium) | This rule checks the checksum of the European VAT number in Belgium. The checksum calculations for the last 2 digits ([C9 C10]) is done using modulo 97:
| ERROR |
| Invalid checksum of EU VAT ID DE (Germany) | DE (Germany) | This rule checks the checksum of the European VAT number in Germany. An interactive procedure involving each of the digits C1…C8 in turn used to calculate C9.
P = 10 For N = 1…8 (N = character position i.e. C1)
R = 11 – P If R = 10 then: C9 = 0 else: C9 =R | ERROR |
| Invalid checksum of EU VAT ID DK (Denmark) | DK (Denmark) | This rule validates the checksum of the European VAT number in Denmark.
The calculation is as follows: First a dividend R is calculated by multiplying the different digits (C1 to C8) of the VAT number with the following factors:
| ERROR |
| Invalid checksum of EU VAT ID EE (Estonia) | EE (Estonia) | This rule checks the checksum of the European VAT number in Estonia, which has a format:
[C1 C2 C3 C4 C5 C6 C7 C8 C9] where C9 is achecksum digit. The checksum digit is validated usung the algorythm:
C9 = A2 - A1 | ERROR |
| Invalid checksum of EU VAT ID EL (Greece) | GR (Greece) | This rule checks the checksum of the European VAT number in Greece.
Check digit (C9) = A2 modulo 10
A1 = 256*C1 + 128*C2 + 64*C3 + 32*C4 + 16*C5 + 8*C6 + 4*C7 + 2*C8 | ERROR |
| Invalid checksum of EU VAT ID FI (Finland) | FI (Finland) | This rule checks the checksum of the European VAT number in Finland. The last digit is a check digit calculated with Mod 11-2 algorithm.
| ERROR |
| Invalid checksum of EU VAT ID FR (France) | FR (France) | This rule checks the checksum of the European VAT number in France which consists of 11 digits in a format:
[ C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 ] The check rules are different for old style and for a new style:
S1 = Check Character (C1) S2 = Check Character (C2)
Check Character: 0-0, 1-1, 2-2, 3-3, 4-4, 5-5, 6-6, 7-7, 8-8, 9-9, 10-A, 11-B, 12-C, 13-D, 14-E, 15-F, 16-G, 17-H, 18-J, 19-K, 20-L, 21-M, 22-N, 23-P, 24-Q, 25-R, 26-S, 27-T, 28-U, 29-V, 30-W, 31-X, 32-Y, 33-Z. | ERROR |
| Invalid checksum of EU VAT ID HR (Croatia) | HR (Croatia) | 2) The sum integer is divided by 10, and the rest is kept if that number is 0 it gets replaced by number 10 (this latter number is called subtotal) 3) The obtained subtotal is multiplied by 2 4) The obtained number is divided by 11, and the rest is kept this number mathematically cannot be 0 because the result of the previous step is always an even number 5) The next digit is summed with the rest from the previous step Steps 2, 3, 4 and 5 are repeated until all digits are expanded If the rest of the final step is equal to 1, the check digit is 0. Otherwise, the check digit is a difference between 11 and the rest in the last step. This rule validates the checksum of the European VAT number in Croatia. The checksum is calculated according to this algorithm (international standard ISO 7064 (MOD 11, 10)): 1) The first digit is summed with 10 | ERROR |
| Invalid checksum of EU VAT ID HU (Hungary) | HU (Hungary) | This rule checks the validity of the checkdigit of the European VAT number in Hungary. The VAT identifier consists of 8 digits (C1-C8) whereby C8 is the checkdigit which is calculated based on the values of C1-C7. The calculation is as follows:
| ERROR |
| Invalid checksum of EU VAT ID IE (Ireland) | IE (Ireland) | This rule checks the checksum of the European VAT number in Ireland. Identifier's format is:
[C1, C2, C3, C4, C5, C6, C7, C8, C9] where C1 to C7 are number. C8 - checksum letter, C9 is optional and can be a letter in the range [A-I], or “W”.
“A”=1, “B”=2, “C”=3, “D”=4, “E”=5, “F”=6, “G”=7, “H”=8, “I”=9 A “W” or absence of character in position 9 is allocated a numeric value of 0.
| ERROR |
| Invalid checksum of EU VAT ID IT (Italy) | IT (Italy) | This rule checks the checksum of the European VAT number in Italy using the following logic:
where:
| ERROR |
| Invalid checksum of EU VAT ID LU (Luxembourg) | LU (Luxembourg) | This rule checks the checksum of the European VAT number in Luxembourg using the following formula:
[C7 C8] = ([C1 C2 C3 C4 C5 C6]) Modulo 89 | ERROR |
| Invalid checksum of EU VAT ID LV (Latvia) | LV (Latvia) | This rule checks the checksum of the European VAT number in Latvia where the last digit [C11] is validated with the following logic:
| ERROR |
| Invalid checksum of EU VAT ID MT (Malta) | MT (Malta) | This rule checks the checksum of the European VAT number in Malta, where the last 2 digits are validated using the following logic:
| ERROR |
| Invalid checksum of EU VAT ID NL (The Netherlands) | NL (Netherlands) | This rule checks the checksum of the European VAT number in The Netherlands. The checksum validation is done following modulo 11:
| ERROR |
| Invalid checksum of EU VAT ID PL (Poland) | PL (Poland) | This rule checks the checksum of the European VAT number in Poland using the following logic:
| ERROR |
| Invalid checksum of EU VAT ID PT (Portugal) | PT (Portugal) | This rule checks the checksum of the European VAT number in Portugal following the logic:
| ERROR |
| Invalid checksum of EU VAT ID RO (Romania) | RO (Romania) | This rule checks the checksum of the European VAT number in Romania. Note that if the length is less than 10 digits, leading zeros must be assumed to perform the computation.
Checksum validation logic:
| ERROR |
| Invalid checksum of EU VAT ID SE (Sweden) | SE (Sweden) | This rule checks the checksum of the European VAT number in Sweden. The checksum digit is the 10th digit [C10]. The logic is the following:
| ERROR |
| Invalid checksum of EU VAT ID SI (Slovenia) | SI (Slovenia) | This rule checks the checksum of the European VAT number in Slovenia using the following logic:
| ERROR |
| Invalid checksum of EU VAT ID SK (Slovakia) | SK (the Slovak Republic) | This rule checks the checksum of the European VAT number in Slovakia using modulo 11:
| ERROR |
| Invalid checksum of EU VAT ID UK (United Kingdom) | GB (United Kingdom of Great Britain and Northern Ireland) | This rule checks the checksum of the European VAT number in the United Kingdom. For the standard identifier format (9 characters) validation of the 8th and 9th checksum digits follows the logic:
The following restrictions should be considered: MOD97 (R1):
MOD9755 (R2):
| ERROR |
| Invalid checksum of FR SIREN (France) | FR (France) | This rule checks the checkdigit of the SIREN in France. The check digit (9th digit of the SIREN, C9) indicates the validity of the SIREN and is validated using modulus 10. | ERROR |
| Invalid checksum of FR SIRET (France) | FR (France) | This rule checks the checksum of the SIRET in France. For more information on how the checksum is calculated, please have a look in the additional information tab. The check digit is calculated by Modulus 10 or Luhn algorithm. | ERROR |
| Invalid checksum of Fiscal code (Italy) | IT (Italy) | This rule checks the checkdigit of the Fiscal code (Italy). This checksum rule should be applied only for the identifier which is 16 characters long. In case of 11 digits the same logic as here shoule be applied: https://meta.cdq.ch/Invalid_checksum_of_EU_VAT_ID_IT_(Italy) for checking the checksum.
The checksum is done in the following way. Starting from the preceding 15 characters, a check digit is determined as follows:
| ERROR |
| Invalid checksum of GST CA (Canada) | CA (Canada) |
| ERROR |
| Invalid checksum of INN (Russia) | RU (Russian Federation) | This rule describes the algorithm for checksum digits for INN (Russia).
Here there is an algorithm for INN checking – 10 digits:
Here there is an algorithm for INN checking – 12 digits:
| ERROR |
| Invalid checksum of NIF number (Spain) | ES (Spain) | This rule describes the algorithm for checksum digits for NIF number (Spain) using the following logic:
File:NIF.PNG | ERROR |
| Invalid checksum of National business register identifier (Austria) | AT (Austria) | This rule checks the checksum of the National business register identifier (Austria) following the logic:
Any difference result in a rule violation. | ERROR |
| Invalid checksum of Numero de Identificacion de Extranjero (Spain) | ES (Spain) | This rule describes the algorithm for checksum digits for Numero de Identificacion de Extranjero (Spain) using the following logic:
To calculate the check digit, each letter is replaced by a number: - replace the first letter accordingly: X → 0 Y → 1 Z → 2- the number (8 digits) is divided by 23 - the remainder is replaced by a letter determined by the following table: | ERROR |
| Invalid checksum of Polish Tax Identifier | PL (Poland) | This rule describes the algorithm for checksum digit (the last 11th digit) for Polish Tax Identifier using the following logic:
1) 9×a + 7×b + 3×c + 1×d + 9×e + 7×f + 3×g + 1×h + 9×i + 7×j 2) apply modulo 10 to the sum from step 1 3) the rest of the modulo 10 is a check-sum digit. | ERROR |