Skip to content
/ tin Public

Confirmation of foreign VAT identification numbers in EU

License

Notifications You must be signed in to change notification settings

someson/tin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confirmation of foreign VAT identification numbers

Build Status GitHub PHP from Travis config codecov

API Documentation

https://evatr.bff-online.de/eVatR/xmlrpc/

API opening hours :D

German:

Über diese Schnittstelle können Sie sich täglich, in der Zeit zwischen 05:00 Uhr und 23:00 Uhr,
die Gültigkeit einer ausländischen Umsatzsteuer-Identifikationsnummer (USt-IdNr.) bestätigen lassen.

English:

Via this interface you can check the validity of a VAT identification numbers daily,
between 05:00 and 23:00 hours.

Expenses of using an API

German:

Die Nutzung der Schnittstelle ist durch keine Registrierung reglementiert, die Nutzung ist kostenfrei.

English:

The use of the interface is not regulated by any registration, the use is free of charge.

Use

$client = new Client();
$response = $client->verify(new Params([
    'UstId_1' => 'DE12345678',
    'UstId_2' => 'AT98765432',
]));
echo $response->isValid() ? 'succeed' : 'failed';

// $message = $response->getMessage();
// $details = $response->getDetails();

Tests

$ ./vendor/bin/codecept run

Static analyzer

$ ./vendor/bin/phpstan analyse src --level max

Useful links

About

Confirmation of foreign VAT identification numbers in EU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages