-
-
Save MrZ-777/5e8a3fd641682011b4c05b2a49d48c61 to your computer and use it in GitHub Desktop.
Checking an EU VAT number using the VIES SOAP interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from suds.client import Client | |
| client = Client('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl') | |
| # Returns a dict-like object with the fields 'countryCode', 'vatNumber', | |
| # 'requestDate', 'valid' (boolean), 'name', and 'address'. | |
| result = client.service.checkVat('IE', '6390845P') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment