Skip to main content

A python package for dealing with VAT

Project description

Build Status

What is this?

It’s a package of useful Python code relating to VAT, that’s what. It includes

  • Tables mapping ISO alpha 2 country codes to VAT codes and vice-versa

  • Tables of VAT number formats

  • Tables of VAT rates, thresholds and registration periods

  • Support for querying the VIES VAT database system (to check VAT details), including fuzzy matching support for names and addresses

  • Utility functions for UK VAT (in the vat.gb package), including

    • EC sales list XML generation

    • Mini One Stop Shop (MOSS) return generation

A few words about VAT

In the European Union, companies are expected to charge and account for Value Added Tax (VAT). This has a variety of other names (IVA, TVA, MwSt., USt., BTW, ДДС, ΦΠΑ, DPH, PDV, Moms, km, ALV, ÁFA, CBL, PVN, PVM, PTU, DDV, IGIC and TAW), but it’s the same basic idea, and the rules are—to some extent—harmonised.

From the consumer’s perspective, VAT is a sales tax. However, from a business’ perspective, it is not; unlike a sales tax, businesses charge VAT to everybody, whether or not they are a business customer, and are able to offset the VAT they have to pay over to the tax authority against the VAT they have themselves paid.

Sounds simple? Hah! You have no idea.

The first problem is that all of the different countries have their own rates for VAT, and most of them have at least two rates that apply to different categories of goods and services. The second problem is cross-border transactions; depending on the nature of the transaction, the supplier may or may not be expected to charge VAT to the purchaser, and when they do not, the purchaser will generally be expected to account for VAT under the “reverse charge” rules (essentially by charging himself VAT, which will normally result in no payment to the tax authority because the amount to be paid will be offset entirely by itself).

There are all kinds of additional complications—some member states operate registration thresholds, others don’t; some provide a grace period for registration, in others you’ve broken the law if you make a supply that takes you over the threshold; some allow you to register and submit returns yourself, others require that you hire people to do it for you; and so on.

One further niggle is that suppliers of electronic services outside of the European Union are expected to charge VAT to their European customers. Many don’t, with the result that their products can be priced more competitively than would be possible for a company operating within the European Union.

DISCLAIMER

It is YOUR RESPONSIBILITY if you use this code to check that the rates and thresholds you are using are the correct ones. The author cannot be held liable for errors in this material, particularly as much of it comes from documents on the EU website that may be out of date and that themselves include disclaimers.

Documentation

The documentation for this package is available on Read the Docs.

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

vat-0.3.3.tar.gz (119.6 kB view details)

Uploaded Source

File details

Details for the file vat-0.3.3.tar.gz.

File metadata

  • Download URL: vat-0.3.3.tar.gz
  • Upload date:
  • Size: 119.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vat-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b2a7dddb5d24e3a04452f26cdf9608768cf49d57d112ff110e4a99fe7ff23c63
MD5 8d54f6e89ff6b525001a84246f0f58f3
BLAKE2b-256 2f6256235bea8d13b11b1e794c4a23061bcd09e732f00e92dbc41e7e29fe6279

See more details on using hashes here.

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