List VAT codes
Lists the code and name of all VAT codes of the company, or of the VAT codes that match a pattern.
search() uses the Finder type VAT and gives VatCodeSummary results with code and name. all() fetches page after page while you iterate. Use get() for the type, the percentages and the accounts (see Read VAT code).
$twinfield = Example::twinfield();
foreach ($twinfield->vatCodes()->search($pattern)->all() as $vatCode) { echo $vatCode->code, ' ', $vatCode->name, PHP_EOL;}php examples/vat-codes/list-vat-codes/example.phpphp examples/vat-codes/list-vat-codes/example.php 'V*'EXP_BEU Export Buiten EUICP Intra Communitaire PrestatiesICV-H IC verwervingen binnnen EUICV-L IC verwervingen binnnen EUIH I HoogIL I LaagIN I NulPRIVE-H Prive gebruik 19%PRIVE-L Prive gebruik 9%VH BTW HoogVL BTW 9%VN BTW 0%Source
Section titled “Source”View examples/vat-codes/list-vat-codes/example.php on GitHub.
Twinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.