Portugal

Validate tax registration numbers as per Portugal's validation rule. All businesses in Portugal are assigned a 14-digit global unique identifier called Portugal PT VAT.

Ensure that the following details are correct for Portugal PT VAT:

  • Validation Type: ORA_PT_VAT

  • Description: Portugal PT VAT

  • Number of digits: 14

  • Format:

    Two character Country code(PT) + 9 digit numeric PT999999999

    Two character Country code then 123456789 (9 characters)

    14 characters: A(1-2)+ N(1-8)+C(1) N(1)>0 A(1-2) = {PT}

  • Check digits: Yes, 14th Digit (last digit)

  • Check Digit Validation: Coefficient - 98765432 Modulo 11 ( S=9*N(1)+8*N(2)+7*N(3)+6*N(4)+5*N(5)+4*N(6)+3*N(7)+2*N(8) C(1)=11 - (Mod11 of the Sum above) ) if C(1)=10, C(1)=0 if C(1)=11, C(1)=0

  • Default Validation: ORA_PT_VAT

Example:

Good:

  • PT123456789

Bad:

  • PB123456789 (Invalid country code)

  • 123456789 (Missing country code)

  • PT12345678 (Invalid format - too short)

  • PT1234567899 (Invalid format - too long)

  • PT123456788 (Invalid check digit)