stdnum.gr.vat

FPA, ΦΠΑ (Foros Prostithemenis Aksias, the Greek VAT number).

The FPA is a 9-digit number with a simple checksum.

>>> compact('GR 23456783')
'023456783'
>>> is_valid('EL 094259216 ')
True
>>> is_valid('EL 123456781')
False
stdnum.gr.vat.calc_check_digit(number)

Calculate the check digit. The number passed should not have the check digit included.

stdnum.gr.vat.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.gr.vat.is_valid(number)

Checks to see if the number provided is a valid VAT number. This checks the length, formatting and check digit.

Previous topic

stdnum.gb.vat

Next topic

stdnum.grid