Skip to content
VAT validation

vat.verify

Verify an EU or UK VAT number and return audit evidence. Upstream failures are unbilled.

POSThttps://api.kanagu.dev/v1/vat/verify
Price
$0.03 per successful call
Without a key
10 free calls per IP per UTC day, shared by REST and MCP.
MCP tool
vat.verify at https://api.kanagu.dev/mcp
curl https://api.kanagu.dev/v1/vat/verify \
  -H "Content-Type: application/json" \
  -d '{"vatNumber":"DE143454214"}'
curl https://api.kanagu.dev/v1/vat/verify \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vatNumber":"DE143454214"}'
const res = await fetch("https://api.kanagu.dev/v1/vat/verify", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "vatNumber": "DE143454214"
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "vat.verify",
    "arguments": {
      "vatNumber": "DE143454214"
    }
  }
}
Request body
{
  "vatNumber": "DE143454214"
}
Response · illustrative values
{
  "verificationId": "0f8c2a51-6a3e-4c55-9d43-2b6a1f0c9e77",
  "vatNumber": "DE143454214",
  "country": "DE",
  "valid": true,
  "source": "vies",
  "checkedAt": "2026-11-24T09:12:03.512Z",
  "upstreamDate": "2026-11-24",
  "consultationId": "WAPIAAAAZ…",
  "rawStatus": "VALID"
}

Request body

application/json

vatNumberstring (max 40 chars)required
VAT number with country prefix, e.g. DE143454214.
requesterVatstring (max 40 chars)
Your VAT number, to request a consultation ID.

Response

200 · application/json

verificationIdstring (uuid)
Audit ID for an authenticated verification.
vatNumberstringrequired
country"AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | … (29 values)required
validbooleanrequired
source"checksum" | "vies" | "hmrc"required
checkedAtstring (date-time)required
upstreamDatestring
namestring
addressstring
consultationIdstring
rawStatusstringrequired

Try it

vat.verify

$0.03/call

No key needed · 10 free calls per IP per day

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

429trial_limit

The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "vatNumber": {
      "type": "string",
      "minLength": 3,
      "maxLength": 40,
      "description": "VAT number with country prefix, e.g. DE143454214."
    },
    "requesterVat": {
      "description": "Your VAT number, to request a consultation ID.",
      "type": "string",
      "minLength": 3,
      "maxLength": 40
    }
  },
  "required": [
    "vatNumber"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "vatNumber": "DE143454214"
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "verificationId": {
      "description": "Audit ID for an authenticated verification.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "vatNumber": {
      "type": "string"
    },
    "country": {
      "type": "string",
      "enum": [
        "AT",
        "BE",
        "BG",
        "CY",
        "CZ",
        "DE",
        "DK",
        "EE",
        "EL",
        "ES",
        "FI",
        "FR",
        "GB",
        "HR",
        "HU",
        "IE",
        "IT",
        "LT",
        "LU",
        "LV",
        "MT",
        "NL",
        "PL",
        "PT",
        "RO",
        "SE",
        "SI",
        "SK",
        "XI"
      ]
    },
    "valid": {
      "type": "boolean"
    },
    "source": {
      "type": "string",
      "enum": [
        "checksum",
        "vies",
        "hmrc"
      ]
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    },
    "upstreamDate": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "consultationId": {
      "type": "string"
    },
    "rawStatus": {
      "type": "string"
    }
  },
  "required": [
    "vatNumber",
    "country",
    "valid",
    "source",
    "checkedAt",
    "rawStatus"
  ],
  "additionalProperties": false
}