# stdnum.mc.tva

n° TVA (taxe sur la valeur ajoutée, Monacan VAT number).

For VAT purposes Monaco is treated as territory of France. The number is also validated the same as the French TVA, except that it is not based on a French SIREN.

    >>> compact('53 0000 04605')
    'FR53000004605'
    >>> validate('53 0000 04605')
    'FR53000004605'
    >>> validate('FR 61 954 506 077')  # French numbers are invalid
    Traceback (most recent call last):
        ...
    InvalidComponent: ...

stdnum.mc.tva.compact(number)

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

stdnum.mc.tva.is_valid(number)

  Check if the number is a valid VAT number.

stdnum.mc.tva.validate(number)

  Check if the number is a valid VAT number. This checks the length, formatting and check digit.