Check an EU VAT number
verify_vat_numberChecks an EU VAT number with the EU's VIES service, as the website does before an order. Use it when a quote adds VAT for an entity in another EU country and the user gives its VAT number: a valid number takes the VAT off (reverse charge). Returns the registered name and address VIES has for the number (some countries don't share them): check with the user that it is their entity, then pass vatCountry and vatNumber to get_renewal_quote or get_registration_quote and to the order tool. An invalid number, or VIES being unavailable, is returned as an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vatNumber | Yes | The VAT number, with or without the country prefix, e.g. BE0123456789. | |
| vatCountry | Yes | The 2-letter code of the EU country that issued the VAT number, e.g. BE. |