@digigov-oss/validate-vatid-vies
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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'
    }

Readme

Keywords

Package Sidebar

Install

npm i @digigov-oss/validate-vatid-vies

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

25 kB

Total Files

31

Last publish

Collaborators

  • dmassaad-grnet
  • dmichail
  • pskarvelis