infirsoft/whitelistapi

API Rejestr WL (wl-api.mf.gov.pl) client

2.0.1 2022-06-18 11:12 UTC

This package is auto-updated.

Last update: 2024-04-28 13:20:47 UTC


README

License Version Downloads StyleCI

White List API / API Wykazu podatników VAT / Biała lista podatników VAT

API Docs

Installation

composer require infirsoft/whitelistapi

Supported Versions

Version PHP version HTTP client
2.x >= 8.0 cURL
1.x >= 7.1 cURL

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Ą