Page tree
Skip to end of metadata
Go to start of metadata

PT0 VAT Registration Number.

VAT format:

[C1 C2 C3 C4 C5 C6 C7 C8 C9]

Where C1 to C9 are numeric.

Range:

C1 > 0

Numeric from 0 to 9.

Rules:

C9

R = 11 – (9*C1 + 8*C2 + 7*C3 + 6*C4 +   5*C5 + 4*C6 + 3*C7 + 2*C8) modulo 11

If R=   10 or R= 11, Then R = 0

C9 = R

Sample:

502757191

Calculate check digit:

C9 = 11 – (9*5 + 8*0 + 7*2 + 6*7 +   5*5 + 4*7 + 3*1 + 2*9)modulo11

11 – (45 + 0 + 14 + 42 + 25 +   28 + 3 + 18)modulo11

11 – (175)modulo11 = 11 – 10 = 1 Check digit

VAT details:http://ec.europa.eu/taxation_customs/vies/faq.html

 PT1 NIF Number is callled Número de Identificação Fiscal.

NIF format:

[ C1 C2 C3 C4 C5 C6 C7 C8 C9 ]

Where C1 to C9 are numeric.

Range:C1...C9Numbers from 0 to 9.
Rules: C1
  • Natural person: 1-3.
  • Legal person: 5.
C9 Check digit
Sample:136695973

Calculate check digit:

Multiply each number by the secuence: 9 8 7 6 5 4 3 2

  •  1*9, 3*8, 6*7, 6*6, 9*5, 5*4, 9*3, 7*2

Then sum up the results:

  • R = 217

Divide by 11:

  • 217 / 11 = 8

Take the integer.

  • 11 - 8 = 3 Check digit.
NIF details:https://ec.europa.eu/taxation_customs/business/tax-cooperation-control/administrative-cooperation/tax-identification-numbers-tin_fr
  • No labels