SIREN et autres traitements autour dont la validation VIES (TVA intracommunautaire)
✓ Published0🌍 Public
TThomasG77
Last edited Jun 18, 2022
Created on Jun 18, 2022
This example demonstrates how to convert a French SIREN number into a European intra-community VAT number using a modulo-97 formula, then validate that VAT number through the European Commission’s VIES SOAP web service. It presents code in both Python and JavaScript, using libraries such as `zeep` and `requests` with `xmltodict` in Python, and `request`, `node-fetch`, and `xml2js` in JavaScript. The gist shows the full workflow, including building the SOAP XML envelope manually and parsing the response to verify a company’s VAT registration status.
AI-generated description