infirsoft / whitelistapi
API Rejestr WL (wl-api.mf.gov.pl) client
2.0.1
2022-06-18 11:12 UTC
Requires
- php: ^8.0
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^9.3
README
White List API / API Wykazu podatników VAT / Biała lista podatników VAT
API Docs
Installation
composer require infirsoft/whitelistapi
Supported Versions
Methods
searchNip( string $nip , string $date ) : EntityResponse|Error searchNips( array $nips , string $date ) : EntryListResponse|Error searchRegon( string $regon , string $date ) : EntityResponse|Error searchRegons( array $regons , string $date ) : EntryListResponse|Error searchBankAccount( string $bankAccount , string $date ) : EntityListResponse|Error searchBankAccounts( array $bankAccounts , string $date ) : EntryListResponse|Error checkNipBankAccount( string $nip , string $bankAccount , string $date ) : EntityCheckResponse|Error checkRegonBankAccount( string $regon , string $bankAccount , string $date ) : EntityCheckResponse|Error
Usage
<?php require_once './vendor/autoload.php'; $client = new \WhiteListApi\WhiteListApiClient; $response = $client->searchNip('5252344078', '2021-01-01'); echo $response->result->subject->name; // GOOGLE POLAND SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ