Project

red_tape

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
Extended validation using the German Bundeszentralamt für Steuern XML RPC API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0
 Project Readme

Gem Version build

RedTape

Finanzamt-compliant VAT ID validation

RedTape provides a Ruby wrapper for extended EU VAT ID validation using the German Bundeszentralamt für Steuern REST 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
=> :own_vat_id_invalid