Zum Inhalt springen

API reference / Quittio \ Core \ Validation \ Plausibility

VatIdVerifier

interface in quittio/core

Quittio\Core\Validation\Plausibility\VatIdVerifier · Source

Online check of VAT identifiers (e.g. EU VIES). Implementations must never throw because a service is unavailable; they return a result with $valid = null instead.

Methods#

MethodDescription
->verify()Checks $vatId with the online service; returns $valid = null instead of throwing when no statement is possible, and supported = false when the service does not cover the identifier.

verify()#

public function verify(string $vatId): VatIdVerification

Checks $vatId with the online service; returns $valid = null instead of throwing when no statement is possible, and supported = false when the service does not cover the identifier.

ParameterTypeDescription
$vatIdstring
Returns
VatIdVerification

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.