Gem Version build

RedTape

Finanzamt-compliant VAT ID validation

RedTape provides a Ruby wrapper fpr extended EU VAT ID validation using the German Bundeszentralamt für Steuern XML RPC API

Installation

In your Gemfile:

gem 'red_tape'

Usage


# quick syntax
RedTape.valid?('DE123456789', 'ATU33864707') => true

# if you want detailed error messages from the Bundeszentralamt
validator = RedTape.validator('DE123456789', 'FOO', company_name: 'Red Bull GmbH', city: 'Fuschl am See')

validator.valid?
=> false

validator.status
=> :invalid_country