stdnum.no.mva

MVA (Merverdiavgift, Norwegian VAT number).

The VAT number is the standard Norwegian organisation number (Organisasjonsnummer) with ‘MVA’ as suffix.

>>> validate('NO 995 525 828 MVA')
'995525828MVA'
>>> validate('NO 995 525 829 MVA')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
>>> format('995525828MVA')
'NO 995 525 828 MVA'
stdnum.no.mva.compact(number)

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

stdnum.no.mva.format(number)

Reformat the passed number to the standard format.

stdnum.no.mva.is_valid(number)

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

stdnum.no.mva.validate(number)

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