1.0.2 • Published 1 year ago

@digigov-oss/validate-vatid-vies v1.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

validateVatID

Validate VAT ID's from different countries via VIES (VAT Information Exchange System).

* known issues

VIES advertises wrong endpoints(!) for the checkVat service on test and on production WSDL, it uses http while the server redirects always at https protocol. So, you have to use (override) the endpoints. You can do that by setting the endpoint property on the overrides object.

i.e. for test use:

const overrides = {
    endpoint: 'https://ec.europa.eu/taxation_customs/vies/test-services/checkVatTestService',
}

and for production use:

    const overrides = {
        prod: true,
        endpoint: 'https://ec.europa.eu/taxation_customs/vies/services/checkVatService'
    }
1.0.2

1 year ago