Skip to main content

Tax ID Validation Library for Python

Project description

Tax ID Validation Library

Tax ID Pro allows you to quickly integrate tax ID validation into your existing applications and workflows. You can validate over 200 different tax ID formats for over 100 countries. Tax ID Pro ensures your system can handle the diverse tax identification needs of your international users.

Lookup is available for VAT Numbers from the European Union (EU), plus the United Kingdom and Australia. Tax ID Pro provides a simple way to check the validity of VAT numbers and ensure compliance with EU regulations.

Install

pip install taxidpro

Usage

Provide your API key to the TaxIDPro class. You can obtain an API key by signing up at Tax ID Pro.

from taxidpro import TaxIDPro

taxidpro = TaxIDPro('YOUR_API_KEY')

taxidpro.validate(
  country='au',
  tin='92873837267',
  type='entity'
)

# Output:
#
# {
#   "is_valid": True,
#   "message": None,
#   "country_name": "Australia",
#   "format_name": "Business Number"
#   "tin_compact": "92873837267",
#   "tin_standard": "92 873 837 267",
# }

taxidpro.lookup(
  country='au',
  tin='49004028077'
)

# Output:
#
# {
#   "is_valid": True,
#   "message": None,
#   "country_name": "Australia",
#   "format_name": "Business Number",
#   "tin_compact": "49004028077",
#   "tin_standard": "49 004 028 077",
#   "lookup_data": { "name": "BHP GROUP LIMITED", "address": "3000 VIC" }
# }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxidpro-0.0.6.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

taxidpro-0.0.6-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page