Skip to content

omnistate/vies API reference

Floor
Provider · Omnistate
Version
1.x
Conformance suite
runs, no CI read
Verified for real
Its README does not say
Licence
MIT
composer require omnistate/vies:1.x-dev

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.

Omnistate\Vies

  • Vies class

    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.

    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(): string

Vies::supports()

public function supports(string $number): bool

Vies::check()

public function check(string $number, ?string $requester = null): VatCheck