---
title: "VatIdVerification – API-Referenz · Quittio"
description: "Result of an online VAT identifier check. $valid is null if no statement is possible: the service was not reachable or answered with an error, or it does not cover the identifier ($supported = false)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Validation/Plausibility/VatIdVerification"
locale: de
meta:
  "og:description": "Result of an online VAT identifier check. $valid is null if no statement is possible: the service was not reachable or answered with an error, or it does not cover the identifier ($supported = false)."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "VatIdVerification – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Validation](https://quittio.dev/docs/api/Quittio/Core/Validation) \\ [Plausibility](https://quittio.dev/docs/api/Quittio/Core/Validation/Plausibility)

# VatIdVerification

final readonly class in quittio/core

`Quittio\Core\Validation\Plausibility\VatIdVerification` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Validation/Plausibility/VatIdVerification.php#L12)

Result of an online VAT identifier check. $valid is null if no statement is possible: the service was not reachable or answered with an error, or it does not cover the identifier ($supported = false).

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$address` readonly | `?string` | |
| `$error` readonly | `?string` | |
| `$name` readonly | `?string` | |
| `$supported` readonly | `bool` | |
| `$valid` readonly | `?bool` | |
| `$vatId` readonly | `string` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `::notSupported()` | The verifier does not cover this identifier (e.g. a Swiss VAT number for VIES). |
| `->toArray()` | |

### `__construct()`#

```
public function __construct(
    string $vatId,
    ?bool $valid,
    ?string $name = null,
    ?string $address = null,
    ?string $error = null,
    bool $supported = true,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$vatId` | `string` | |
| `$valid` | `?bool` | |
| `$name` | `?string` = `null` | |
| `$address` | `?string` = `null` | |
| `$error` | `?string` = `null` | |
| `$supported` | `bool` = `true` | |

### `notSupported()`#

```
public static function notSupported(string $vatId, ?string $reason = null): self
```

static

The verifier does not cover this identifier (e.g. a Swiss VAT number for VIES).

| Parameter | Type | Description |
| --- | --- | --- |
| `$vatId` | `string` | |
| `$reason` | `?string` = `null` | |

<dl><dt>Returns</dt>
<dd><code>self</code></dd>
</dl>

### `toArray()`#

```
public function toArray(): array{vatId: string, valid: ?bool, name: ?string, address: ?string, error: ?string, supported: bool}
```

<dl><dt>Returns</dt>
<dd><code>array{vatId: string, valid: ?bool, name: ?string, address: ?string, error: ?string, supported: bool}</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Validation/Plausibility/VatIdVerification#webpage","@type":"WebPage","description":"Result of an online VAT identifier check. $valid is null if no statement is possible: the service was not reachable or answered with an error, or it does not cover the identifier ($supported = false).","name":"VatIdVerification – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Validation/Plausibility/VatIdVerification","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Validation/Plausibility/VatIdVerification"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```