validate_vat v0.2.0 Vat View Source
Check if VAT number has valid format. This library is a super light weight and has a simple responsibility of checking if provided VAT numbers have valid VAT format(structure). It doesn’t make any external calls to do the check.
If you need to check if a business is registered to trade cross-border within the EU with the EU’s VIES on the web tool. VIES (VAT Information Exchange System) is a search engine (not a database) owned by the European Commission. The data is retrieved from national VAT databases when a search is made from the VIES tool.
Link to this section Summary
Functions
Validate VAT number
Link to this section Functions
Link to this function
valid_format?(arg1, vat_number)
View Source
valid_format?(binary, binary) :: boolean
Validate VAT number
Examples
iex> Vat.valid_format?("AT", "U123456789")
true