yolk / valvat

Validates european vat numbers. Standalone or as a ActiveModel validator.
MIT License
322 stars 80 forks source link

Lookup Returns false positive for cross border transactions #62

Closed vincvan closed 5 years ago

vincvan commented 5 years ago

I used the lookup for the VAT number AT 28631905. It returned true and the detailed info did not contain any warnings. When checking manually under http://ec.europa.eu/taxation_customs/vies/vatResponse.html , I get the error:

No, invalid VAT number for cross border transactions within the EU (please refer to FAQ, questions 7, 11, 12, 13 and 20 for more information).

So the VAT ID is valid, but cross border transactions are not allowed. Is there a way of adding this to the detailed response or include in the VAT check?

vincvan commented 5 years ago

Sorry, was a mistake with missing the U in the Austrian VAT Number. Feel free to delete this.