Toolrail Vat API

The Vat API from Toolrail — 3 operation(s) for vat.

GitHub OpenAPI

Operations 3

GET /vat/rates Current VAT rates for supported European countries (EU-27 + UK, CH, NO #
POST /vat/validate Validate an EU VAT number against the official European Commission VIES… #
POST /vat/price VAT price calculator for supported European countries: net-to-gross or… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/toolrail-dev:toolrail-dev-vat-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

toolrail-dev-vat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Toolrail Vat API
  version: 1.0.0
  description: 'Pay-per-call utility API for AI agents: PDF generation, global holidays/business days, EU VAT, ECB FX rates, IBAN/phone validation, QR codes, Chilean operational data. x402/USDC on Base & Solana.'
  contact:
    name: Toolrail support
    email: roberto.mena.rodriguez@gmail.com
servers:
- url: https://toolrail.dev
tags:
- name: Vat
paths:
  /vat/rates:
    get:
      operationId: get_vat_rates
      summary: Current VAT rates for supported European countries (EU-27 + UK, CH, NO
      description: 'Current VAT rates for supported European countries (EU-27 + UK, CH, NO...). Standard, reduced and super-reduced rates, provided through the third-party vatnode dataset; verify applicability for your transaction. Latin American codes (CL, MX, PE...) are answered from the /latam/iva dataset. Use when pricing, invoicing or checking tax for a customer in Europe and you need that country''s VAT rate. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.002
      x-payment-protocol: x402
      x-example: curl "https://toolrail.dev/vat/rates?country=DE"
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      parameters:
      - name: country
        in: query
        required: false
        schema:
          type: string
        example: DE
      tags:
      - Vat
  /vat/validate:
    post:
      operationId: post_vat_validate
      summary: Validate an EU VAT number against the official European Commission VIES…
      description: 'Validate an EU VAT number against the official European Commission VIES registry, with retries and caching for reliability. Returns validity, company name and address. Use when onboarding or invoicing an EU business and you must confirm its VAT number is registered. Price: $0.003 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.003
      x-payment-protocol: x402
      x-example: 'curl -X POST https://toolrail.dev/vat/validate -H "Content-Type: application/json" -d ''{"countryCode":"IE","vatNumber":"6388047V"}'''
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                countryCode:
                  type: string
                vatNumber:
                  type: string
            example:
              countryCode: IE
              vatNumber: 6388047V
      tags:
      - Vat
  /vat/price:
    post:
      operationId: post_vat_price
      summary: 'VAT price calculator for supported European countries: net-to-gross or…'
      description: 'VAT price calculator for supported European countries: net-to-gross or gross-to-net with the current standard or reduced rate. Returns net, VAT amount and gross. Use when you have a price and a European country and need the amount with or without VAT. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.002
      x-payment-protocol: x402
      x-example: 'curl -X POST https://toolrail.dev/vat/price -H "Content-Type: application/json" -d ''{"amount":100,"country":"DE","direction":"net-to-gross"}'''
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: integer
                country:
                  type: string
                direction:
                  type: string
            example:
              amount: 100
              country: DE
              direction: net-to-gross
      tags:
      - Vat