Created
April 17, 2018 22:19
-
-
Save IonBazan/384d477b2ac9b0f247033d25d46e876e to your computer and use it in GitHub Desktop.
Sprawdzanie statusu płatnika VAT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nip = '7740001454'; | |
$client = new SoapClient('https://sprawdz-status-vat.mf.gov.pl/?wsdl'); | |
$result = $client->SprawdzNIP($nip); | |
var_dump($result); | |
// Result: | |
// object(stdClass)#2 (2) { | |
// ["Kod"]=> | |
// string(1) "C" | |
// ["Komunikat"]=> | |
// string(93) "Podmiot o podanym identyfikatorze podatkowym NIP jest zarejestrowany jako podatnik VAT czynny" | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment