Read from the package's own PHP files at the commit 146a5fd92821: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
ViesclassThe European Commission's VIES: every member state's VAT register behind one door. Its REST API - no SOAP extension needed. Given your own VAT number, it answers a consultation number: the proof you checked your client's number that day, to keep with a reverse-charge invoice.
4 methods · 1 constant
Omnistate\Vies
Vies class
final class Vies implements VatRegistryInterface Vies.php:24
The European Commission's VIES: every member state's VAT register behind one door. Its REST API - no SOAP extension needed. Given your own VAT number, it answers a consultation number: the proof you checked your client's number that day, to keep with a reverse-charge invoice.
VIES only relays: a member state's service down (they have their hours) is not a number that does not exist - that is an UnavailableException. A check VIES refuses (a requester it does not accept...) is an OmnistateException: only VIES's "valid" says whether a number exists.
const URL = 'https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number'
Vies::__construct()
public function __construct(readonly HttpClientInterface $http, readonly float $timeout = 10)Vies::name()
public function name(): stringVies::supports()
public function supports(string $number): boolVies::check()
public function check(string $number, ?string $requester = null): VatCheck