VAT VIES API

Simple API to validate VAT numbers. Cloudflare Workers and Cloudflare KV to offload the official European Union API. This solution guarantees that within 24 hours, only one request per unique VAT number to EU servers. SOAP conversion to JSON. VAT numbers are format validated before calling VIES API to check deductibility status.




Demo API



🛠️ Usage


https://vat.adaptive.workers.dev/


Request

  GET /:country/:number


Examples:

Request

    GET https://vat.adaptive.workers.dev/es/W0184081H


  Response

    application/json

    {"country":"ES","vat":"W0184081H","status":true}


Request

    GET https://vat.adaptive.workers.dev/pt/515486817


  Response

    application/json

    {"country":"PT","vat":"515486817","status":true}


🥰 Cloudflare Workers®

Cloudflare Workers provides a serverless execution environment that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure.


🌟 Cloudflare Developer Summer Challenge


Cloudflare Workers

Cloudflare KV

Cloudflare Pages

Durable Objects