Skip to main content

Python SDK for the Giltiq VAT Validation API

Project description

giltiq

Python SDK for the Giltiq VAT Validation API.

Installation

pip install giltiq

Usage

Synchronous

from giltiq import Giltiq

with Giltiq(api_key="your-api-key") as client:
    # Validate a VAT ID
    result = client.validate("DE123456789")
    print(result.valid, result.company_name)

    # Check usage
    usage = client.usage()
    print(usage.used, usage.remaining)

    # Check API status
    status = client.status()
    print(status.vies_status, status.bzst_status)

Async

from giltiq import AsyncGiltiq

async with AsyncGiltiq(api_key="your-api-key") as client:
    result = await client.validate("DE123456789")
    print(result.valid)

Qualified Confirmation (German BZSt)

from giltiq import Giltiq, ValidateOptions

with Giltiq(api_key="your-api-key") as client:
    result = client.validate(
        "DE123456789",
        options=ValidateOptions(
            requester_vat_id="DE987654321",
            company_name="Example GmbH",
            company_city="Berlin",
            company_zip="10115",
        ),
    )
    if result.qualified_confirmation:
        print(result.qualified_confirmation.company_name)

Error Handling

from giltiq import Giltiq, GiltiqApiError

with Giltiq(api_key="your-api-key") as client:
    try:
        result = client.validate("INVALID")
    except GiltiqApiError as e:
        print(e.code, e.status, str(e))

Configuration

client = Giltiq(
    api_key="your-api-key",
    base_url="https://api.giltiq.de",  # default
    timeout=15.0,  # seconds, default
    retries=2,  # default
)

Documentation

Full API documentation at giltiq.de/docs.

License

MIT

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

giltiq-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giltiq-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file giltiq-0.1.0.tar.gz.

File metadata

  • Download URL: giltiq-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for giltiq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97dcf1b8d5acc0d145f6e4f6fc81322d815194579933fb866a513e13d4d0d966
MD5 4017fedcaeb43e66704e47e1965ec40a
BLAKE2b-256 34611ad51be93831d191b8df50d7235eff322ea5ffba7f569b5b83ed5a7ad7a2

See more details on using hashes here.

File details

Details for the file giltiq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: giltiq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for giltiq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a190e0894d80f06f2fdf9af070a3133f640b2a6494c0dbeb1097d1979acf10
MD5 eed912684d2becfc8f63cebd40332eff
BLAKE2b-256 d926741456711a228614df13014d24759547035886b9a2b1c8b20890370062f1

See more details on using hashes here.

Supported by

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