src/Web/Service.php
public function getVatInfo($countryCode, $date = '')
    {
        if (empty($date)) {
            $date = date(API::DateFormat_Iso);
        }
        $message = array(
            'vatdate' => $date,
            'vatcountry' => $countryCode,
        );
        return $this->communicator->callApiFunction('lookups/lookup_vatinfo', $message)->setMainResponseKey('vatinfo', true);
    }
public function getVatInfo($countryCode, $date = '')
    {
        if (empty($date)) {
            $date = date(API::DateFormat_Iso);
        }
        $message = array(
            'vatdate' => $date,
            'vatcountry' => $countryCode,
        );
        return $this->communicator->callApiFunction('lookups/lookup_vatinfo', $message)->setMainResponseKey('vatinfo', true);
    }
public function getVatInfo ( $ countryCode , $ date = '' ) { if ( empty ( $ date ) ) { $ date = date ( API :: DateFormat_Iso ) ; } $ message = array ( 'vatdate' => $ date , 'vatcountry' => $ countryCode , ) ; return $ this -> communicator -> callApiFunction ( 'lookups/lookup_vatinfo' , $ message ) -> setMainResponseKey ( 'vatinfo' , true ) ; }
Retrieves a list of VAT rates for the given country at the given date.

@param string $countryCode
Country code of the country to retrieve the VAT info for.
@param string $date
ISO date string (yyyy-mm-dd) for the date to retrieve the VAT info for.

@return \Siel\Acumulus\Web\Result
The result of the webservice call. The structured response will contain
a non-keyed array of "vatinfo" arrays, each 'vatinfo' array being a
keyed array with keys:
- vattype
- vatrate

@see https://www.siel.nl/acumulus/API/Picklists/VAT_Info/
for more information about the contents of the returned array.
Retrieves a list of VAT rates for the given country at the given date .