Check a vat id by the finanzonline UidAbfrage webservice.
Requirements for this service:
Return codes
| Method | Return | Description |
|---|---|---|
| __construct | Constructor. | |
| check | VatIdCheckInvalid | VatIdCheckValidLevelOne | VatIdCheckValidLevelTwo | Check an uid (vat id). |
public function __construct(SessionWs $sessionWs, array<string,mixed> $soapOptions=[]): Constructor.
| Parameter | Type | Default | Description |
|---|---|---|---|
| $sessionWs | SessionWs | Session webservice | |
| $soapOptions | array |
[] | PHP SOAP client options |
public function check(string $uid, int $level=1): VatIdCheckInvalid|VatIdCheckValidLevelOne|VatIdCheckValidLevelTwoCheck an uid (vat id).
| Parameter | Type | Default | Description |
|---|---|---|---|
| $uid | string | Vat id to check | |
| $level | int | 1 | Choose level 1 or 2. With 2 you will also get some company name and address. |