Skip to content

Instantly share code, notes, and snippets.

@MrZ-777
Forked from kgaughan/checkeuvat.py
Created June 15, 2019 12:14
Show Gist options
  • Select an option

  • Save MrZ-777/5e8a3fd641682011b4c05b2a49d48c61 to your computer and use it in GitHub Desktop.

Select an option

Save MrZ-777/5e8a3fd641682011b4c05b2a49d48c61 to your computer and use it in GitHub Desktop.

Revisions

  1. Keith Gaughan created this gist Apr 14, 2011.
    7 changes: 7 additions & 0 deletions checkeuvat.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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')