sj_royd/mf_vat_status

VAT status checker

v1.0.0 2019-10-09 08:28 UTC

This package is not auto-updated.

Last update: 2024-05-22 06:28:02 UTC


README

The library allows you to check the taxpayer's VAT status using the official API of the Ministry of Finance in Poland

Usage

<?php

use SJRoyd\MF\VATStatus\VAT;

include '../vendor/autoload.php';

$status = (new VAT)->checkByNip('4658741012');

echo 'Code: '.$status->getCode().PHP_EOL;
echo 'Message: '.$status->getMessage().PHP_EOL;
echo 'Error: '.($status->isError() ? 'true' : 'false');

The meaning of codes:

  • N - The entity with the provided tax ID NIP is not registered as a VAT taxpayer
  • C - The entity with the tax ID provided is registered as an active VAT taxpayer
  • Z - The entity with the provided tax ID number is registered as an exempt VAT taxpayer
  • I - Inquiry error - Invalid Tax Identification Number
  • D - Query error - Date outside of the specified range
  • X - Service inactive