https://github.com/infirsoft/vat-whitelist-api
PHP wrapper for WhiteList API issued by Ministerstwo Finansów
https://github.com/infirsoft/vat-whitelist-api
api client php vat whitelist wl-api wrapper
Last synced: 5 months ago
JSON representation
PHP wrapper for WhiteList API issued by Ministerstwo Finansów
- Host: GitHub
- URL: https://github.com/infirsoft/vat-whitelist-api
- Owner: infirsoft
- License: mit
- Created: 2021-02-12T22:41:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T10:19:41.000Z (almost 3 years ago)
- Last Synced: 2025-12-23T14:20:50.517Z (6 months ago)
- Topics: api, client, php, vat, whitelist, wl-api, wrapper
- Language: PHP
- Homepage: https://wl-api.mf.gov.pl
- Size: 69.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
API Rejestr WL
==============
[](./LICENSE.md)
[](https://packagist.org/packages/infirsoft/whitelistapi)
[](https://packagist.org/packages/infirsoft/whitelistapi)
[](https://github.styleci.io/repos/338450280?branch=main)
White List API / API Wykazu podatników VAT / Biała lista podatników VAT
API Docs
--------
* https://wl-api.mf.gov.pl/
* https://www.gov.pl/web/kas/api-wykazu-podatnikow-vat
Installation
------------
```bash
composer require infirsoft/whitelistapi
```
Supported Versions
------------------
| Version | PHP version | HTTP client |
|---------|-------------|-------------|
| 2.x | \>= 8.0 | cURL |
| 1.x | \>= 7.1 | cURL |
Methods
------------------
```php
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
searchNip('5252344078', '2021-01-01');
echo $response->result->subject->name; // GOOGLE POLAND SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
```