# stdnum.eu.excise

European Excise Number

The excise duty identification number assigned to businesses authorised to operate with excise goods (e.g. alcohol, tobacco, energy products, etc.).

The number is issued by the national customs or tax authority of the Member State where the business is established. The number consists of a two-letter country code followed by up to 13 alphanumeric characters.

More information:

- https://ec.europa.eu/taxation_customs/dds2/seed/

    >>> validate('LU 987ABC')
    'LU00000987ABC'

stdnum.eu.excise.compact(number: str) → str

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

stdnum.eu.excise.is_valid(number: str) → bool

  Check if the number is a valid excise number.

stdnum.eu.excise.validate(number: str) → str

  Check if the number is a valid Excise number.